/* Mezyan — placeholder site. Few colours: ink, warm white, one accent (provisional Majorelle blue, D-023). */

@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2190-2199, U+2212, U+221E;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2190-2199, U+2212, U+221E;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2190-2199, U+2212, U+221E;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-ext-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-ext-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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: "Plex Arabic";
  src: url("fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  font-weight: 700 800;
  font-display: swap;
  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;
}

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #eeece6;
  --ink: #0b1020;
  --muted: #545b6b;
  --line: #e2dfd7;
  --accent: #2a44c9;
  --accent-2: #7b5cff;
  --accent-3: #d6409f;
  --accent-soft: #e6eafc;
  --on-accent: #ffffff;
  --low: #c2410c;
  --mid: #b45309;
  --good: #15803d;
  --shadow: 0 1px 2px rgb(11 16 32 / 0.04), 0 12px 32px rgb(11 16 32 / 0.08);
  --shadow-lg: 0 2px 4px rgb(11 16 32 / 0.04), 0 30px 80px rgb(11 16 32 / 0.16);
  --radius: 20px;
  --font: "Jakarta", "Plex Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Always-dark sections (story, dashboard frame, honest) */
  --night: #0b1020;
  --night-2: #121a2e;
  --night-line: #243050;
  --night-ink: #f2f3f7;
  --night-muted: #a3a9b8;
  --night-accent: #8fa2ff;
}

:root[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #121a2e;
  --surface-2: #10172a;
  --ink: #f2f3f7;
  --muted: #a3a9b8;
  --line: #243050;
  --accent: #8fa2ff;
  --accent-2: #b4a5ff;
  --accent-3: #f472b6;
  --accent-soft: #1d2952;
  --on-accent: #0b1020;
  --low: #fb923c;
  --mid: #fbbf24;
  --good: #4ade80;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px rgb(0 0 0 / 0.35);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 30px 80px rgb(0 0 0 / 0.5);
  --night: #060a16;
  --night-2: #101830;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020;
    --surface: #121a2e;
    --surface-2: #10172a;
    --ink: #f2f3f7;
    --muted: #a3a9b8;
    --line: #243050;
    --accent: #8fa2ff;
    --accent-2: #b4a5ff;
    --accent-3: #f472b6;
    --accent-soft: #1d2952;
    --on-accent: #0b1020;
    --low: #fb923c;
    --mid: #fbbf24;
    --good: #4ade80;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 30px 80px rgb(0 0 0 / 0.5);
    --night: #060a16;
    --night-2: #101830;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -48px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  z-index: 20;
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Scroll progress */
.progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 30;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
[dir="rtl"] .progress {
  transform-origin: right;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.topbar.is-scrolled {
  border-bottom-color: var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
}
.brand__word {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.brand--small .brand__word {
  font-size: 18px;
}
.topbar__nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}
.topbar__nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.topbar__nav a:hover {
  color: var(--ink);
}
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang {
  position: relative;
}
.lang__btn,
.theme {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.login-btn {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.login-btn:hover {
  border-color: var(--accent);
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}
.lang__btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.lang__btn .lang__chev {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
  transition: transform 0.2s;
}
.lang__btn[aria-expanded="true"] .lang__chev {
  transform: rotate(180deg);
}
.lang__list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 48px rgb(11 16 32 / 0.18);
}
.lang__list .lang__group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.lang__list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.lang__list button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.lang__list button:hover,
.lang__list button:focus-visible,
.lang__list button[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}
.lang__list button[aria-current="true"]::after {
  content: "✓";
  font-weight: 800;
}
.theme {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.theme svg {
  width: 18px;
  height: 18px;
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 88px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
    circle at 1px 1px,
    color-mix(in srgb, var(--ink) 9%, transparent) 1px,
    transparent 0
  );
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero__bg span {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__bg span:first-child {
  background: var(--accent);
  top: -160px;
  inset-inline-end: -120px;
}
.hero__bg span:last-child {
  background: var(--accent-2);
  bottom: -220px;
  inset-inline-start: 20%;
  opacity: 0.22;
  animation-delay: -9s;
}
@keyframes drift {
  to {
    transform: translate(-60px, 50px) scale(1.15);
  }
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}
h1 {
  margin-top: 22px;
  font-size: clamp(42px, 6.6vw, 84px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  word-spacing: 0.05em;
}
h1 span {
  display: block;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 5%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}
.lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.btn--ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.scrollcue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.scrollcue:hover {
  transform: translateY(-2px);
}
.scrollcue__arrow {
  display: inline-block;
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(4px);
  }
}
.trust {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--muted);
}
.trust li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.trust li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

/* Hero visual: auto-playing story */
.hero__visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.phone {
  position: relative;
  width: 280px;
  height: 560px;
  padding: 14px;
  border-radius: 46px;
  background: #0b1020;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 2px #2a3350;
  transform: rotateY(-12deg) rotateX(6deg) rotate(-2deg);
  transform-style: preserve-3d;
  transition: transform 0.6s ease-out;
}
.hero__visual:hover .phone {
  transform: rotateY(-4deg) rotateX(2deg);
}
[dir="rtl"] .phone {
  transform: rotateY(12deg) rotateX(6deg) rotate(2deg);
}
.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 92px;
  height: 24px;
  border-radius: 0 0 16px 16px;
  background: #0b1020;
  transform: translateX(-50%);
  z-index: 2;
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  background: #ffffff;
  color: #0b1020;
  overflow: hidden;
}
.g-form,
.g-thanks {
  position: absolute;
  inset: 0;
  padding: 50px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.g-thanks {
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(20px);
}
.g-heart {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fde2e2;
  color: #e11d48;
  font-size: 28px;
}
.g-logo {
  align-self: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f1efe9;
  font-size: 13px;
  font-weight: 800;
}
.g-q {
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.g-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.g-scale span {
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e2dfd7;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s;
}
.g-field {
  padding: 12px;
  min-height: 78px;
  border-radius: 12px;
  border: 1px solid #e2dfd7;
  font-size: 13px;
  color: #545b6b;
}
.g-typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  max-width: 0;
  transition: max-width 1.2s steps(22);
}
.g-send {
  margin-top: auto;
  padding: 13px;
  border-radius: 999px;
  background: #0b1020;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s;
}
/* play states */
.hero__visual[data-play="1"] .pick,
.hero__visual[data-play="2"] .pick,
.hero__visual[data-play="3"] .pick,
.hero__visual[data-play="4"] .pick,
.hero__visual[data-play="5"] .pick {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
  transform: scale(1.12);
}
.hero__visual[data-play="2"] .g-typed,
.hero__visual[data-play="3"] .g-typed,
.hero__visual[data-play="4"] .g-typed,
.hero__visual[data-play="5"] .g-typed {
  max-width: 220px;
}
.hero__visual[data-play="3"] .g-send {
  transform: scale(0.95);
}
.hero__visual[data-play="4"] .g-form,
.hero__visual[data-play="5"] .g-form {
  opacity: 0;
  transform: translateY(-20px);
}
.hero__visual[data-play="4"] .g-thanks,
.hero__visual[data-play="5"] .g-thanks {
  opacity: 1;
  transform: none;
}
.alert,
.trend {
  position: absolute;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.alert {
  top: 40px;
  inset-inline-end: -12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(-14px) scale(0.96);
  transition:
    opacity 0.5s,
    transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.hero__visual[data-play="4"] .alert,
.hero__visual[data-play="5"] .alert {
  opacity: 1;
  transform: none;
}
.alert__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--low);
  color: #fff;
  font-weight: 800;
  transition: background 0.4s;
}
.hero__visual[data-play="5"] .alert__icon {
  background: var(--good);
}
.alert__title {
  font-weight: 800;
  font-size: 14px;
}
.alert__meta {
  font-size: 13px;
  color: var(--muted);
}
.alert__meta strong {
  color: var(--low);
}
.alert .pill {
  grid-column: 2;
  justify-self: start;
}
.alert .pill--done,
.hero__visual[data-play="5"] .alert .pill--new {
  display: none;
}
.hero__visual[data-play="5"] .alert .pill--done {
  display: inline-block;
  animation: pop 0.4s ease-out;
}
@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  white-space: nowrap;
}
.pill--new {
  background: color-mix(in srgb, var(--low) 15%, transparent);
  color: var(--low);
}
.pill--read {
  background: color-mix(in srgb, var(--muted) 15%, transparent);
  color: var(--muted);
}
.pill--done {
  background: color-mix(in srgb, var(--good) 16%, transparent);
  color: var(--good);
}
.trend {
  bottom: 50px;
  inset-inline-start: -16px;
  animation: float 6s ease-in-out infinite;
}
.trend__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.trend__value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  direction: ltr;
  unicode-bidi: isolate;
}
.trend__value span {
  color: var(--muted);
}
.trend__value strong {
  color: var(--good);
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  direction: ltr;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__list {
  display: flex;
  gap: 48px;
  padding: 0 24px;
  list-style: none;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee__list li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.marquee__lang {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Stats */
.stats-sec {
  padding: 56px 0 80px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.chips li:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: center;
}
.stat__n {
  font-size: clamp(44px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  direction: ltr;
  unicode-bidi: isolate;
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p:last-child {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

/* Section titles */
.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
h2 {
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 900px;
}

/* Scroll story (always dark) */
.story {
  padding: 112px 0 40px;
  background: var(--night);
  color: var(--night-ink);
}
.story .eyebrow {
  color: var(--night-accent);
}
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 40px;
}
.story__stage {
  position: sticky;
  top: 96px;
  height: calc(100vh - 140px);
  max-height: 620px;
  display: grid;
  place-items: center;
}
.stage {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--night-accent) 22%, transparent), transparent 60%),
    var(--night-2);
  border: 1px solid var(--night-line);
  overflow: hidden;
}
.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition:
    opacity 0.6s,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.story__stage[data-step="1"] .scene--1,
.story__stage[data-step="2"] .scene--2,
.story__stage[data-step="3"] .scene--3,
.story__stage[data-step="4"] .scene--4 {
  opacity: 1;
  transform: none;
}
.stage__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.stage__dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--night-line);
  transition:
    width 0.3s,
    background 0.3s;
}
.story__stage[data-step="1"] .stage__dots i:nth-child(1),
.story__stage[data-step="2"] .stage__dots i:nth-child(2),
.story__stage[data-step="3"] .stage__dots i:nth-child(3),
.story__stage[data-step="4"] .stage__dots i:nth-child(4) {
  width: 26px;
  background: var(--night-accent);
}
/* scene 1: QR card */
.qrcard {
  position: relative;
  width: min(300px, 100%);
  padding: 26px 24px;
  border-radius: 24px;
  background: #fff;
  color: #0b1020;
  text-align: center;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
  overflow: hidden;
}
.qrcard__biz {
  font-size: 13px;
  font-weight: 800;
  color: #545b6b;
}
.qrcard__q {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.qr {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 18px auto 12px;
}
/* Real QR codes (tools/make_qr.py, error correction H) with the Mezyan mark in the centre. */
.qr__img,
.tag__qr img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.qr__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 20%; /* ≤ 20 % of the code: safe with error correction H */
  aspect-ratio: 1;
  padding: 2%;
  border-radius: 22%;
  background: #fff;
  color: var(--accent);
  transform: translate(-50%, -50%);
}
.qr__mark svg {
  width: 100%;
  height: 100%;
}
.qrcard__cta {
  font-size: 13px;
  font-weight: 700;
  color: #2a44c9;
}
.scanline {
  position: absolute;
  inset-inline: 10%;
  top: 30%;
  height: 3px;
  border-radius: 3px;
  background: #2a44c9;
  box-shadow: 0 0 18px 4px rgb(42 68 201 / 0.5);
  animation: scan 2.2s ease-in-out infinite alternate;
}
@keyframes scan {
  to {
    top: 72%;
  }
}
/* scene 2 */
.mini-form {
  width: min(340px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  color: #0b1020;
  display: grid;
  gap: 14px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}
.mini-form__q {
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  line-height: 1.25;
}
.g-scale--row {
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}
.g-scale--row span {
  height: 32px;
  font-size: 12px;
}
.scene--2 .pick {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
}
.mini-form__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.mini-form__langs span {
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef0fb;
  color: #2a44c9;
  font-size: 12px;
  font-weight: 800;
}
/* scene 3 */
.scene--3 {
  gap: 18px;
  align-content: center;
}
.notif {
  width: min(360px, 100%);
  padding: 16px 18px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.96);
  color: #0b1020;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}
.notif__head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #545b6b;
}
.notif__app {
  font-weight: 800;
  color: #2a44c9;
}
.notif__title {
  margin-top: 6px;
  font-weight: 800;
}
.notif__body {
  font-size: 14px;
  color: #545b6b;
}
.notif__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.notif__actions span {
  padding: 8px;
  border-radius: 12px;
  background: #f1efe9;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.notif__actions .on {
  background: #15803d;
  color: #fff;
}
.reply {
  width: min(320px, 90%);
  justify-self: end;
  padding: 12px 16px;
  border-radius: 18px 18px 4px 18px;
  background: var(--night-accent);
  color: #0b1020;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(14px);
  opacity: 0;
  transition:
    opacity 0.5s 0.5s,
    transform 0.5s 0.5s;
}
.story__stage[data-step="3"] .reply {
  opacity: 1;
  transform: none;
}
/* scene 4 */
.report {
  width: min(360px, 100%);
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  color: #0b1020;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}
.report__title {
  font-size: 14px;
  font-weight: 800;
  color: #545b6b;
}
.report__bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  margin-top: 16px;
  direction: ltr;
}
.report__bars span {
  flex: 1;
  height: 4%;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #7b5cff, #2a44c9);
  transition: height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.report__bars span:nth-child(n + 4) {
  background: linear-gradient(180deg, #4ade80, #15803d);
}
.report__value {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  direction: ltr;
  unicode-bidi: isolate;
}
.report__value span {
  color: #545b6b;
}
.report__value strong {
  color: #15803d;
}
/* steps */
.story__steps {
  padding: 0;
  list-style: none;
}
.step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline-start: 28px;
  border-inline-start: 2px solid var(--night-line);
  opacity: 0.35;
  transition:
    opacity 0.4s,
    border-color 0.4s;
}
.step.is-active {
  opacity: 1;
  border-color: var(--night-accent);
}
.step__n {
  font-size: 14px;
  font-weight: 800;
  color: var(--night-accent);
}
.step > h3 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.step > p:last-child {
  margin-top: 14px;
  max-width: 460px;
  font-size: 18px;
  color: var(--night-muted);
}

/* Dashboard preview */
.dash-sec {
  padding: 112px 0;
  background: linear-gradient(180deg, var(--night) 0, var(--bg) 220px);
}
.dash {
  margin-top: 40px;
  border-radius: 24px;
  border: 1px solid var(--night-line);
  background: var(--night-2);
  color: var(--night-ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dash__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--night-line);
  font-size: 14px;
  font-weight: 700;
}
.dash__bar > i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f87171;
}
.dash__bar > i:nth-child(2) {
  background: #fbbf24;
}
.dash__bar > i:nth-child(3) {
  background: #4ade80;
  margin-inline-end: 8px;
}
.dash__tag {
  margin-inline-start: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: var(--night-muted);
  font-size: 12px;
  font-style: normal;
}
.dash__body {
  padding: 20px;
  display: grid;
  gap: 16px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kpi,
.panel,
.tip {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--night-line);
  background: rgb(255 255 255 / 0.03);
}
.kpi p:first-child,
.panel__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.kpi__n {
  margin-top: 6px;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
[dir="rtl"] .kpi__n {
  text-align: end;
}
.kpi__n small {
  font-size: 0.5em;
  color: var(--night-muted);
}
.kpi--warn .kpi__n {
  color: #fb923c;
}
.dash__cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}
.hbars,
.inbox {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.hbars li {
  display: grid;
  grid-template-columns: 110px 1fr 54px;
  gap: 12px;
  align-items: center;
}
.hbars em {
  font-style: normal;
  font-weight: 800;
  text-align: end;
  direction: ltr;
  unicode-bidi: isolate;
}
.hbar {
  height: 10px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.08);
  position: relative;
  overflow: hidden;
}
.hbar::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #2a44c9, #8fa2ff);
  transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.is-in .hbar::after {
  width: var(--w, 0%);
}
.hbar--up::after {
  background: linear-gradient(90deg, #15803d, #4ade80);
}
.hbar--low::after {
  background: linear-gradient(90deg, #c2410c, #fb923c);
}
.flag span,
.flag em {
  color: #fb923c;
}
.inbox li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
}
.r {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-weight: 800;
  color: #fff;
}
.r--low {
  background: #c2410c;
}
.r--mid {
  background: #b45309;
}
.r--top {
  background: #15803d;
}
.tip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  border-color: color-mix(in srgb, #fb923c 45%, transparent);
  background: color-mix(in srgb, #fb923c 8%, transparent);
  font-size: 15px;
}
.tip b {
  color: #fb923c;
}
.tip span {
  color: var(--night-muted);
}

/* Why / compare */
.why {
  padding: 40px 0 112px;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.compare__col {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.compare__col ul {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.compare__col li {
  display: flex;
  gap: 12px;
}
.compare__head {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.compare__col--old {
  color: var(--muted);
}
.compare__col--old li::before {
  content: "–";
  flex: none;
  width: 22px;
  text-align: center;
  font-weight: 800;
}
.compare__col--new {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: var(--shadow-lg);
}
.compare__col--new .compare__head {
  font-size: 26px;
  color: var(--accent);
}
.compare__col--new li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 800;
}
/* spotlight that follows the pointer */
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    400px circle at var(--mx, -999px) var(--my, -999px),
    color-mix(in srgb, var(--accent) 14%, transparent),
    transparent 60%
  );
}

/* Honest */
.honest {
  padding: 0 0 112px;
}
.honest__inner {
  position: relative;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--night-accent) 30%, transparent), transparent 55%),
    var(--night);
  color: var(--night-ink);
  overflow: hidden;
}
.honest__inner h2 {
  margin-top: 0;
}
.honest__inner p {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--night-muted);
}
.honest__inner .honest__launch {
  margin-top: 28px;
  font-weight: 800;
  color: var(--night-accent);
}

/* Footer */
.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer .brand {
  color: var(--ink);
}
.footer__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  flex-basis: 100%;
  order: 3;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer__pay p {
  font-weight: 700;
  color: var(--ink);
}
.footer__pay ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__pay li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.footer__pay svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Arabic */
html:lang(ar) {
  --font: "Plex Arabic", "Jakarta", system-ui, sans-serif;
}
html:lang(ar) h1,
html:lang(ar) h2,
html:lang(ar) h3,
html:lang(ar) .card h3 {
  letter-spacing: 0;
  line-height: 1.3;
}
html:lang(ar) .eyebrow,
html:lang(ar) .kpi p:first-child,
html:lang(ar) .panel__title {
  letter-spacing: 0;
}

/* Scroll reveal (only when JS runs; content stays visible without JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee__track {
    flex-wrap: wrap;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .topbar__nav {
    display: none;
  }
  .hero {
    padding: 36px 0 64px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }
  /* story: stage sticks at the top, steps scroll underneath */
  .story {
    padding-top: 80px;
  }
  .story__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .story__stage {
    top: 76px;
    height: 46vh;
    min-height: 330px;
    max-height: 420px;
    z-index: 2;
  }
  .stage {
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.5);
  }
  .story__stage {
    height: 40vh;
    min-height: 300px;
    max-height: 360px;
  }
  .step {
    min-height: 70vh;
    justify-content: flex-end;
    padding-bottom: 12vh;
  }
  .dash__cols,
  .compare {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .kpis .kpi:last-child {
    grid-column: span 2;
  }
  .hbars li {
    grid-template-columns: 96px 1fr 48px;
  }
  .hero__visual {
    min-height: 520px;
  }
  .phone {
    width: 250px;
    height: 500px;
  }
  .alert {
    inset-inline-end: 0;
    top: 10px;
  }
  .trend {
    inset-inline-start: 0;
    bottom: 20px;
  }
  .brand__word {
    font-size: 20px;
  }
  .lang__btn {
    padding: 0 8px 0 10px;
  }
  .topbar__actions {
    gap: 4px;
  }
  .login-btn {
    padding: 7px 11px;
    font-size: 13px;
  }
  .dash-sec,
  .why {
    padding-bottom: 80px;
  }
  .honest {
    padding-bottom: 80px;
  }
  .scene {
    padding: 18px;
  }
  .qr {
    width: 110px;
    height: 110px;
  }
  .report__bars {
    height: 110px;
  }
}

/* Icons (line icons from the inline sprite) */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
}
.chips .ico {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.3s;
}
.chips li:hover .ico {
  background: var(--accent);
  color: var(--on-accent);
  transform: rotate(-8deg) scale(1.08);
}
.svc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.svc .ico {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.07);
  color: var(--night-accent);
}
.flag .svc .ico {
  color: #fb923c;
  background: color-mix(in srgb, #fb923c 14%, transparent);
}
.hbars li {
  grid-template-columns: 150px 1fr 54px;
}
@media (max-width: 560px) {
  .hbars li {
    grid-template-columns: 128px 1fr 46px;
  }
  .svc .ico {
    display: none;
  }
}

/* Industry colours — playful but soft; each chip has its own hue */
.chips .c1 {
  --hue: #2a44c9;
} /* riads — Majorelle blue */
.chips .c2 {
  --hue: #7b5cff;
} /* hotels — violet */
.chips .c3 {
  --hue: #e0570f;
} /* restaurants — terracotta */
.chips .c4 {
  --hue: #b7791f;
} /* cafés — coffee/saffron */
.chips .c5 {
  --hue: #db2777;
} /* salons & spas — rose */
.chips .c6 {
  --hue: #0d9488;
} /* rentals — teal */
.chips .c7 {
  --hue: #16a34a;
} /* gyms — green */
.chips li[class^="c"] .ico {
  background: color-mix(in srgb, var(--hue) 14%, transparent);
  color: var(--hue);
}
.chips li[class^="c"]:hover {
  border-color: var(--hue);
}
.chips li[class^="c"]:hover .ico {
  background: var(--hue);
  color: #fff;
}
:root[data-theme="dark"] .chips li[class^="c"] .ico {
  color: color-mix(in srgb, var(--hue) 60%, #fff);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chips li[class^="c"] .ico {
    color: color-mix(in srgb, var(--hue) 60%, #fff);
  }
}

/* Top bar over the dark story section */
.topbar.on-dark {
  background: color-mix(in srgb, var(--night) 82%, transparent);
  border-bottom-color: var(--night-line);
}
.topbar.on-dark .brand,
.topbar.on-dark .topbar__nav a:hover {
  color: var(--night-ink);
}
.topbar.on-dark .topbar__nav a {
  color: var(--night-muted);
}
.topbar.on-dark .brand__mark {
  color: var(--night-accent);
}
.topbar.on-dark .lang__btn,
.topbar.on-dark .theme {
  background: var(--night-2);
  border-color: var(--night-line);
  color: var(--night-muted);
}
.topbar.on-dark .lang__btn {
  color: var(--night-ink);
}

/* Colour variant preview: ?variant=safran (D-023 — the owner picks Majorelle or Safran) */
:root[data-variant="safran"] {
  --accent: #b9461a;
  --accent-2: #e08a00;
  --accent-3: #e9a23b;
  --accent-soft: #fbeee3;
  --night-accent: #ffb38a;
}
:root[data-variant="safran"][data-theme="dark"] {
  --accent: #ff9a6b;
  --accent-2: #ffc14d;
  --accent-3: #ffd27a;
  --accent-soft: #3a2418;
}
@media (prefers-color-scheme: dark) {
  :root[data-variant="safran"]:not([data-theme="light"]) {
    --accent: #ff9a6b;
    --accent-2: #ffc14d;
    --accent-3: #ffd27a;
    --accent-soft: #3a2418;
  }
}

/* Hero buttons: try the guest page + scroll cue */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__ctas .scrollcue {
  margin-top: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.trybtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 35%, transparent);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.trybtn::after {
  content: "→";
}
[dir="rtl"] .trybtn::after {
  content: "←";
}
.trybtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Industries: two rows drifting in opposite directions (static wrap with reduced motion) */
.inds {
  display: grid;
  gap: 12px;
}
.inds__row {
  padding-block: 4px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  direction: ltr;
}
.inds__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.inds__row--rev .inds__track {
  animation-direction: reverse;
  animation-duration: 54s;
}
.inds__row:hover .inds__track {
  animation-play-state: paused;
}
.inds .chips {
  flex-wrap: nowrap;
  padding-inline: 5px;
  gap: 10px;
}
.inds .chips li {
  white-space: nowrap;
}
html:lang(ar) .inds .chips li {
  direction: rtl;
}
.chips .c8 {
  --hue: #0891b2;
} /* hammams & spas — cyan */
.chips .c9 {
  --hue: #4f46e5;
} /* car rental — indigo */
.chips .c10 {
  --hue: #ca8a04;
} /* tours — amber */
.chips .c11 {
  --hue: #9333ea;
} /* shops — purple */
.chips .c12 {
  --hue: #0284c7;
} /* surf camps — sky */
.chips .c13 {
  --hue: #545b6b;
} /* and many more */
@media (prefers-reduced-motion: reduce) {
  .inds__row {
    mask-image: none;
  }
  .inds .chips {
    flex-wrap: wrap;
    justify-content: center;
  }
  .inds__track {
    width: auto;
    justify-content: center;
  }
  .inds__track .chips + .chips {
    display: none;
  }
}

/* Story: tighter desktop spacing; on phones every step shows its own scene inline
   (a sticky stage is unreliable on mobile browsers — address bar resize, covered text). */
.step {
  min-height: 58vh;
}
.step__scene {
  display: none;
}
@media (max-width: 960px) {
  .story__stage {
    display: none;
  }
  .story__grid {
    margin-top: 28px;
  }
  .step {
    min-height: 0;
    padding: 0 0 56px;
    border: 0;
    opacity: 1;
    justify-content: flex-start;
  }
  .step__scene {
    display: block;
    position: relative;
    height: 330px;
    margin-bottom: 22px;
    border-radius: 24px;
    border: 1px solid var(--night-line);
    background:
      radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--night-accent) 22%, transparent), transparent 60%),
      var(--night-2);
    overflow: hidden;
  }
  .step__scene .scene {
    opacity: 0.35;
    transform: translateY(16px) scale(0.98);
  }
  .step.is-seen .step__scene .scene {
    opacity: 1;
    transform: none;
  }
  .step.is-seen .step__scene .reply {
    opacity: 1;
    transform: none;
  }
}

/* Hero buttons v3: primary = free trial, secondary = guest page */
.ghostbtn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s;
}
.ghostbtn:hover {
  transform: translateY(-2px);
}
.scrollcue--text {
  margin-top: 18px;
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--muted);
  font-size: 14px;
}
.trybtn--light {
  margin-top: 26px;
  background: #fff;
  color: #0b1020;
  box-shadow: none;
}
.marquee__list a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.marquee__list a:hover {
  color: var(--accent);
}

/* Features bento */
.feat {
  padding: 112px 0 40px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.bcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.bcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.bcard--wide {
  grid-column: span 2;
  grid-row: span 2;
  gap: 24px;
}
.bcard--wide .bcard__text {
  flex: 0 0 auto;
}
.bcard--wide .tags {
  flex: 1;
  gap: 14px;
  padding: 20px;
}
.bcard--wide .tag {
  align-content: center;
}
.bcard--wide .tag__qr {
  width: min(104px, 70%);
}
.bcard--wide .tag b {
  font-size: 14px;
}
.bcard__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.bcard h3 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}
html:lang(ar) .bcard h3 {
  letter-spacing: 0;
}
.bcard p {
  color: var(--muted);
}
.bcard__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 20px;
}
.bcard__ico .ico {
  width: 24px;
  height: 24px;
}
.bcard__ico--alert {
  background: color-mix(in srgb, var(--low) 15%, transparent);
  color: var(--low);
}
.bcard__ico--star {
  background: #fef3c7;
  color: #d97706;
}
.tags {
  position: relative;
  flex: 0 0 46%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-2);
  overflow: hidden;
}
.tag {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 14px;
  background: #fff;
  color: #0b1020;
  box-shadow: 0 1px 3px rgb(11 16 32 / 0.08);
  border: 1.5px solid var(--accent);
}
.tag__qr {
  position: relative;
  width: 64px;
  aspect-ratio: 1;
}
.tag b {
  font-size: 12px;
  white-space: nowrap;
}
.tag__scan {
  position: absolute;
  inset-inline: 8%;
  top: 10%;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 16px 4px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: scan 2.6s ease-in-out infinite alternate;
}
.mchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.mchips span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.mchips .on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.mlangs {
  margin-top: auto;
  font-weight: 800;
  color: var(--accent) !important;
}
.mbars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
  margin-top: auto;
  direction: ltr;
}
.mbars i {
  flex: 1;
  height: 10%;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  transition: height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mbars i:last-child {
  background: linear-gradient(180deg, #4ade80, #15803d);
}
.is-in .mbars i {
  height: var(--h, 10%);
}

/* FAQ */
.faq {
  padding: 0 0 112px;
}
.faq__inner {
  max-width: 860px;
}
.faq__list {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.faq__item[open] {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.25s;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 18px;
}
.faq__item p {
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  .faq__item summary::after {
    transition: none;
  }
}

/* Pricing */
.pricing {
  padding: 40px 0 112px;
}
.pricing__sub {
  margin-top: 12px;
  color: var(--muted);
}
.bill {
  display: inline-flex;
  margin-top: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.bill button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.bill button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.bill em {
  margin-inline-start: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-style: normal;
  font-size: 12px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.plan--hot {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}
.plan__tag {
  position: absolute;
  top: -13px;
  inset-inline-start: 22px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.plan__name {
  font-size: 20px;
  font-weight: 800;
}
.plan__for {
  color: var(--muted);
  font-size: 14px;
  min-height: 42px;
}
.plan__price {
  margin-top: 6px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
[dir="rtl"] .plan__price {
  text-align: end;
}
.plan__price small {
  font-size: 15px;
  letter-spacing: 0;
  color: var(--muted);
}
.plan__bill {
  font-size: 13px;
  color: var(--muted);
}
.plan ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.plan li {
  display: flex;
  gap: 10px;
}
.plan li::before {
  content: "✓";
  flex: none;
  font-weight: 800;
  color: var(--accent);
}
.plan__why {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}
.plan__cta {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s;
}
.plan__cta:hover {
  transform: translateY(-2px);
}
.plan__cta--hot {
  border: 0;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff;
}
.cmp {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.cmp summary {
  cursor: pointer;
  padding: 16px 22px;
  font-weight: 800;
  list-style-position: inside;
}
.cmp__scroll {
  overflow-x: auto;
  padding: 0 12px 14px;
}
.cmp__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cmp__table th,
.cmp__table td {
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}
.cmp__table th[scope="row"],
.cmp__table thead th:first-child {
  text-align: start;
  font-weight: 600;
}
.cmp__table thead th {
  border-top: 0;
  font-weight: 800;
}
.cmp__hot {
  color: var(--accent);
}
.cmp__y {
  color: var(--accent);
  font-weight: 800;
}
.cmp__n {
  color: var(--muted);
}
@media (max-width: 560px) {
  .cmp__table {
    font-size: 12.5px;
  }
  .cmp__table th,
  .cmp__table td {
    padding: 8px 4px;
  }
}
.founders {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  align-items: center;
  margin-top: 22px;
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line));
  background: var(--accent-soft);
}
.founders__badge {
  grid-row: span 2;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 13px;
}
.founders__t {
  font-weight: 800;
  font-size: 18px;
}
.founders__p {
  color: var(--muted);
  font-size: 14px;
}
.pricing__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* Final block loop */
.loop3 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: l;
}
.loop3 li {
  counter-increment: l;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  font-weight: 700;
}
.loop3 li::before {
  content: counter(l);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--night-accent);
  color: #0b1020;
  font-weight: 800;
}

@media (max-width: 960px) {
  .bento,
  .plans {
    grid-template-columns: 1fr;
  }
  .bcard--wide {
    grid-column: auto;
    grid-row: auto;
  }
  .bcard--wide .tags {
    grid-template-columns: 1fr 1fr;
  }
  .plan__for {
    min-height: 0;
  }
  .founders {
    grid-template-columns: 1fr;
  }
  .founders__badge {
    grid-row: auto;
    justify-self: start;
  }
  .feat {
    padding-top: 80px;
  }
}

/* Small phones (≤ 380 px): logo, language, theme and "Se connecter" must fit on one line. */
@media (max-width: 380px) {
  .brand {
    gap: 6px;
  }
  .brand__mark {
    width: 26px;
    height: 26px;
  }
  .brand .brand__word {
    font-size: 18px;
  }
  .login-btn {
    padding: 6px 9px;
  }
  .lang__btn {
    padding: 0 4px;
  }
}

/* Links to the legal pages (site/conditions/, site/confidentialite/). */
.footer__legal a {
  color: inherit;
}

/* WhatsApp section (D-064): text + an example chat that plays once the phone is in view. */
.wa-sec {
  padding: 88px 0;
}
.wa-sec__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.wa-sec__lead {
  margin-top: 18px;
  max-width: 560px;
  font-size: 18px;
  color: var(--muted);
}
.wa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wa-ico {
  width: 22px;
  height: 22px;
  fill: #25d366;
}
.wa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.wa-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 700;
}
.wa-chips li::before {
  content: "✓";
  color: var(--good);
  font-weight: 800;
}
.wa-phone {
  justify-self: center;
  width: min(100%, 340px);
  border-radius: 28px;
  background: #efe7dc;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: #0b1020;
}
.wa-phone__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #075e54;
  color: #ffffff;
  font-weight: 700;
}
.wa-phone__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
}
.wa-phone__avatar svg {
  width: 22px;
  height: 22px;
  fill: #2a44c9;
}
.wa-phone__avatar .wa-phone__tick {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wa-chat {
  display: grid;
  gap: 10px;
  padding: 16px 12px 12px;
  min-height: 420px;
  align-content: start;
}
.wa-msg {
  position: relative;
  max-width: 88%;
  padding: 8px 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.08);
}
.wa-msg--in {
  justify-self: start;
  background: #ffffff;
}
.wa-msg--out {
  justify-self: end;
  background: #d9fdd3;
}
.wa-msg__text {
  margin: 0;
  white-space: pre-line;
}
.wa-msg__time {
  position: absolute;
  bottom: 3px;
  inset-inline-end: 8px;
  font-size: 11px;
  color: #667781;
}
.wa-msg__btns {
  display: grid;
  margin: 10px -10px -18px;
  border-top: 1px solid #e9edef;
}
.wa-msg__btns span {
  padding: 9px;
  text-align: center;
  color: #027eb5;
  font-weight: 700;
}
.wa-msg__btns span + span {
  border-top: 1px solid #e9edef;
}
.wa-guest {
  justify-self: end;
  max-width: 92%;
  padding: 10px 12px;
  border: 1px dashed #128c7e;
  border-radius: 10px;
  background: #ffffff;
  font-size: 13px;
}
.wa-guest p {
  margin: 0;
}
.wa-guest .wa-guest__label {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #128c7e;
}
.wa-phone__tag {
  padding: 0 14px 12px;
  font-size: 11px;
  color: #667781;
}
/* The story plays once the phone is in view (JS adds .is-in); without JS everything is shown. */
.js .wa-phone .wa-m1,
.js .wa-phone .wa-m2,
.js .wa-phone .wa-m3,
.js .wa-phone .wa-m4 {
  opacity: 0;
  transform: translateY(10px);
}
.js .wa-phone.is-in .wa-m1 {
  animation: wa-in 0.5s 0.6s ease-out forwards;
}
.js .wa-phone.is-in .wa-tap {
  animation: wa-tap 0.6s 2.6s ease-out;
}
.js .wa-phone.is-in .wa-m2 {
  animation: wa-in 0.4s 3.2s ease-out forwards;
}
.js .wa-phone.is-in .wa-m3 {
  animation: wa-in 0.5s 4.2s ease-out forwards;
}
.js .wa-phone.is-in .wa-m4 {
  animation: wa-in 0.6s 5.6s ease-out forwards;
}
@keyframes wa-in {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes wa-tap {
  50% {
    background: #e7f3f8;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .wa-phone .wa-m1,
  .js .wa-phone .wa-m2,
  .js .wa-phone .wa-m3,
  .js .wa-phone .wa-m4 {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 900px) {
  .wa-sec {
    padding: 80px 0;
  }
  .wa-sec__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
