/* majali.app, in the soFFer template's visual language (pills, solid primary hero with a wave, flat icons,
   no labels above headings). Colours are the admin's own: Unfold's default violet, its greys, and the
   dashboard's second colour. */
:root {
  --p-50: oklch(97.7% .014 308.299);
  --p-100: oklch(94.6% .033 307.174);
  --p-200: oklch(90.2% .063 306.703);
  --p-300: oklch(82.7% .119 306.383);
  --p-400: oklch(71.4% .203 305.504);
  --p-500: oklch(62.7% .265 303.9);
  --p-600: oklch(55.8% .288 302.321);
  --p-700: oklch(49.6% .265 301.924);
  --p-800: oklch(43.8% .218 303.724);
  --p-900: oklch(38.1% .176 304.987);
  --p-950: oklch(29.1% .149 302.717);
  --s-300: #c1eca2;
  --s-400: #9ae068;
  --s-500: #7bd63a;
  --s-600: #64cf17;
  --s-700: #55b014;
  --b-50: oklch(98.5% .002 247.839);
  --b-100: oklch(96.7% .003 264.542);
  --b-200: oklch(92.8% .006 264.531);
  --b-300: oklch(87.2% .01 258.338);
  --b-400: oklch(70.7% .022 261.325);
  --b-500: oklch(55.1% .027 264.364);
  --b-600: oklch(44.6% .03 256.802);
  --b-700: oklch(37.3% .034 259.733);
  --b-800: oklch(27.8% .033 256.848);
  --b-900: oklch(21% .034 264.665);
  --b-950: oklch(13% .028 261.692);

  --bg: #ffffff;
  --bg-tint: var(--b-50);
  --surface: #ffffff;
  --surface-2: var(--b-50);
  --line: var(--b-200);
  --text: var(--b-900);
  --text-2: var(--b-600);
  --text-3: var(--b-500);
  --icon: var(--p-600);
  --brand-ink: var(--p-700);
  --brand-soft: var(--p-50);
  --ok-ink: var(--s-700);
  --ok-soft: color-mix(in oklab, var(--s-500) 16%, transparent);
  --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 14px 32px -16px rgb(16 24 40 / .22);
  --shadow-soft: 0 0 45px rgb(0 0 0 / .08);
  --shadow-lg: 0 30px 60px -28px rgb(40 4 70 / .6);

  --font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --nav-h: 92px;
  --nav-h-stuck: 70px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--b-950);
    --bg-tint: color-mix(in oklab, var(--b-900) 55%, var(--b-950));
    --surface: var(--b-900);
    --surface-2: color-mix(in oklab, var(--b-800) 45%, var(--b-900));
    --line: var(--b-800);
    --text: var(--b-100);
    --text-2: var(--b-300);
    --text-3: var(--b-400);
    --icon: var(--p-400);
    --brand-ink: var(--p-300);
    --brand-soft: color-mix(in oklab, var(--p-950) 65%, var(--b-950));
    --ok-ink: var(--s-400);
    --ok-soft: color-mix(in oklab, var(--s-600) 22%, transparent);
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 32px -16px rgb(0 0 0 / .7);
    --shadow-soft: 0 0 45px rgb(0 0 0 / .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--b-950);
  --bg-tint: color-mix(in oklab, var(--b-900) 55%, var(--b-950));
  --surface: var(--b-900);
  --surface-2: color-mix(in oklab, var(--b-800) 45%, var(--b-900));
  --line: var(--b-800);
  --text: var(--b-100);
  --text-2: var(--b-300);
  --text-3: var(--b-400);
  --icon: var(--p-400);
  --brand-ink: var(--p-300);
  --brand-soft: color-mix(in oklab, var(--p-950) 65%, var(--b-950));
  --ok-ink: var(--s-400);
  --ok-soft: color-mix(in oklab, var(--s-600) 22%, transparent);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 32px -16px rgb(0 0 0 / .7);
  --shadow-soft: 0 0 45px rgb(0 0 0 / .45);
}
:root:lang(ar) { --font-body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif; }

* { box-sizing: border-box; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; color: var(--text); font-family: var(--font-display); line-height: 1.2; text-wrap: balance; }
:root:lang(ar) :is(h1, h2, h3) { line-height: 1.45; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--p-400); outline-offset: 3px; }
.ms {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
}
.ms--fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
[dir="rtl"] .ms--flip { transform: scaleX(-1); }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(72px, 8vw, 96px); scroll-margin-top: var(--nav-h-stuck); }
.section--tint { background: var(--bg-tint); }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 56px); text-align: center; display: grid; gap: 14px; }
.section-head p, .lead { font-size: 1.05rem; }

/* --- buttons: the template's pills, its .5s transition and its dark glow on hover --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border: 0;
  border-radius: 999px;
  font: 600 .98rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: .5s;
}
.btn:hover { box-shadow: 0 0 10px rgb(0 0 0 / .5); }
.btn--primary { background: var(--p-600); color: #fff; }
.btn--light { background: #fff; color: var(--p-700); }
.btn--lg { padding: 1rem 2.6rem; }

/* --- spinner: the template's growing dot --- */
#spinner {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .5s ease-out, visibility 0s linear .5s;
  animation: spinner-out .4s ease 1.6s forwards;
}
#spinner.is-done { opacity: 0; visibility: hidden; }
@keyframes spinner-out { to { opacity: 0; visibility: hidden; } }
.spinner-grow { width: 3rem; height: 3rem; border-radius: 50%; background: var(--p-600); opacity: 0; animation: grow .75s linear infinite; }
@keyframes grow { 0% { transform: scale(0); } 50% { opacity: 1; transform: none; } }

/* --- navbar: transparent over the hero, white and sticky once the page scrolls --- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  --nav-fg: #fff;
  --nav-fg-soft: rgb(255 255 255 / .86);
  --nav-chip: rgb(255 255 255 / .12);
  --nav-chip-line: rgb(255 255 255 / .28);
  --nav-chip-hover: rgb(255 255 255 / .2);
  transition: background-color .5s, box-shadow .5s;
}
.nav.is-stuck {
  background: var(--surface);
  box-shadow: 0 .125rem .5rem rgb(0 0 0 / .08);
  --nav-fg: var(--text);
  --nav-fg-soft: var(--text-2);
  --nav-chip: var(--bg-tint);
  --nav-chip-line: var(--line);
  --nav-chip-hover: var(--surface-2);
}
.nav__bar { height: var(--nav-h); display: flex; align-items: center; gap: 20px; transition: height .5s; }
.nav.is-stuck .nav__bar { height: var(--nav-h-stuck); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 60px; transition: height .5s; }
.nav.is-stuck .brand img { height: 46px; }
.brand .logo-color { display: none; }
.nav.is-stuck .brand .logo-white { display: none; }
.nav.is-stuck .brand .logo-color { display: block; }
.nav__links { display: flex; gap: clamp(16px, 2vw, 30px); margin-inline: auto; padding: 0; margin-block: 0; list-style: none; }
.nav__links a { display: block; padding-block: 8px; text-decoration: none; font-weight: 500; color: var(--nav-fg-soft); transition: color .5s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--nav-fg); }
.nav.is-stuck .nav__links a:hover, .nav.is-stuck .nav__links a.is-active { color: var(--brand-ink); }
.nav__tools { display: flex; align-items: center; gap: 12px; }
.nav__tools .btn { padding: .65rem 1.5rem; }
.nav.is-stuck .nav__cta { background: var(--p-600); color: #fff; }
.nav__only-small { display: none; }
.nav__links a.btn { color: #fff; background: var(--p-600); justify-content: center; padding: .8rem 1rem; margin-block-start: 8px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
/* language: a dropdown of real links, one per language page */
.lang { position: relative; }
.lang__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding-inline: 12px 10px;
  border-radius: 999px;
  border: 1px solid var(--nav-chip-line, rgb(255 255 255 / .28));
  background: var(--nav-chip, rgb(255 255 255 / .1));
  color: var(--nav-fg, #fff);
  font: 500 .92rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.lang__button:hover { background: var(--nav-chip-hover, rgb(255 255 255 / .2)); }
.lang__button .ms { font-size: 20px; }
.lang__name:lang(ar) { font-family: "IBM Plex Sans Arabic", var(--font-body); }
.lang__chevron { transition: transform .25s ease; }
.lang__button[aria-expanded="true"] .lang__chevron { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 70;
  min-width: 210px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -14px rgb(16 24 40 / .35);
  animation: menu-in .18s ease both;
}
.lang__menu[hidden] { display: none; }
.lang--up .lang__menu { top: auto; bottom: calc(100% + 10px); inset-inline-end: auto; inset-inline-start: 0; }
@keyframes menu-in { from { opacity: 0; translate: 0 -6px; } }
.lang__menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
.lang__menu a:hover, .lang__menu a:focus-visible { background: var(--bg-tint); outline: none; }
.lang__native { flex: 1; }
.lang__menu a:lang(ar) .lang__native { font-family: "IBM Plex Sans Arabic", var(--font-body); }
.lang__code { font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--text-3); }
.lang__check { font-size: 18px; color: var(--icon); visibility: hidden; }
.lang__menu a[aria-checked="true"] { color: var(--brand-ink); }
.lang__menu a[aria-checked="true"] .lang__check { visibility: visible; }

@media (max-width: 991px) {
  :root { --nav-h: 68px; --nav-h-stuck: 68px; }
  .nav, .nav.is-stuck {
    background: var(--surface);
    box-shadow: 0 .125rem .5rem rgb(0 0 0 / .08);
    --nav-fg: var(--text);
    --nav-fg-soft: var(--text-2);
    --nav-chip: var(--bg-tint);
    --nav-chip-line: var(--line);
  }
  .nav { --nav-chip-hover: var(--surface-2); }
  .nav .brand .logo-white { display: none; }
  .nav .brand .logo-color { display: block; }
  .nav .brand img { height: 40px; }
  .menu-btn { display: inline-grid; place-items: center; margin-inline-start: auto; }
  .nav__links {
    position: absolute;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 16px 18px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 24px -18px rgb(0 0 0 / .3);
  }
  .nav__links a { padding-block: 10px; color: var(--text); }
  .nav__links[hidden] { display: none !important; }
  .nav__tools .nav__cta { display: none; }
  .nav__only-small { display: block; }
}
@media (min-width: 992px) { .nav__links[hidden] { display: flex !important; } }

/* --- hero: the template's solid primary block, its wave, and its email pill --- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--p-600) linear-gradient(135deg, var(--p-500), var(--p-600) 45%, var(--p-700));
  padding-block: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) clamp(170px, 17vw, 230px);
}
.skyline { position: absolute; inset-inline: 0; bottom: clamp(48px, 6.5vw, 100px); width: 100%; height: 170px; pointer-events: none; }
.skyline rect, .skyline path { fill: color-mix(in oklab, var(--p-800) 32%, transparent); }
.skyline .win { fill: rgb(255 255 255 / .22); }
.hero__wave { position: absolute; inset-inline: 0; bottom: -1px; width: 100%; height: clamp(54px, 7vw, 110px); display: block; }
.hero__wave path { fill: var(--bg); }
.hero__grid { position: relative; display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
.hero__copy { display: grid; gap: 24px; justify-items: center; text-align: center; }
@media (min-width: 992px) { .hero__copy { justify-items: start; text-align: start; } }
.hero h1 { color: #fff; }
.hero__lead { color: rgb(255 255 255 / .88); font-size: 1.1rem; max-width: 56ch; }
.signup { position: relative; width: min(100%, 520px); margin-block-start: 6px; }
.signup input {
  display: block;
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 999px;
  padding-inline: 24px 168px;
  font: 400 1rem/1 var(--font-body);
  color: var(--b-900);
  background: #fff;
  unicode-bidi: plaintext;
  text-align: start;
}
.signup input::placeholder { color: var(--b-500); }
.signup input:focus { outline: 3px solid rgb(255 255 255 / .5); outline-offset: 2px; }
.signup .btn { position: absolute; inset-block: 8px; inset-inline-end: 8px; padding-inline: 1.4rem; }
.signup .btn:hover { box-shadow: none; background: var(--p-700); }

/* the stage: drawings of the admin, marked as example data */
.stage { position: relative; min-height: 410px; }
.stage__note { position: absolute; z-index: 5; inset-inline-start: 0; top: -10px; font-size: .8rem; color: rgb(255 255 255 / .75); }
.mock { position: absolute; border-radius: 14px; background: #fff; color: var(--b-900); box-shadow: var(--shadow-lg); }
.mock--admin { inset-inline-start: 0; top: 24px; width: min(92%, 540px); display: grid; grid-template-columns: 54px 1fr; overflow: hidden; }
.mock__side { background: var(--p-950); display: grid; align-content: start; justify-items: center; gap: 14px; padding-block: 16px; }
.mock__mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--p-600); color: #fff; }
.mock__mark .ms { font-size: 18px; }
.mock__side > .ms { color: rgb(255 255 255 / .45); font-size: 20px; }
.mock__side > .ms.on { color: #fff; }
.mock__main { padding: 16px 18px 18px; display: grid; gap: 14px; }
.mock__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mock__title { font: 600 1rem/1.2 var(--font-display); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .28rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--p-50); color: var(--p-700); white-space: nowrap; }
.chip--ok { background: color-mix(in oklab, var(--s-500) 18%, #fff); color: var(--s-700); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border: 1px solid var(--b-200); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.tile__label { font-size: .72rem; color: var(--b-500); }
.tile__value { font: 600 1.4rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.tile svg { width: 100%; height: 26px; }
.mapbox { position: relative; border-radius: 12px; overflow: hidden; height: 150px; background: linear-gradient(160deg, #eaf4fb, #dbe9f3); border: 1px solid var(--b-200); }
.mapbox svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapbox .label { position: absolute; inset-inline-start: 10px; top: 8px; font-size: .72rem; font-weight: 600; color: var(--b-600); background: rgb(255 255 255 / .85); padding: .2rem .5rem; border-radius: 6px; }
.ring { transform-box: fill-box; transform-origin: center; animation: ring 2.8s ease-out infinite; }
.ring--b { animation-delay: .9s; }
.ring--c { animation-delay: 1.8s; }
@keyframes ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.mock--listing { inset-inline-end: 0; top: 150px; width: min(42%, 236px); overflow: hidden; z-index: 3; }
.photo { position: relative; height: 128px; background: linear-gradient(180deg, #ffd9b0 0%, #f7b8c4 38%, #a78bfa 100%); overflow: hidden; }
.photo svg { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 100%; }
.photo .badge { position: absolute; inset-inline-start: 10px; top: 10px; background: rgb(255 255 255 / .92); color: var(--p-700); font-size: .72rem; font-weight: 700; padding: .25rem .55rem; border-radius: 6px; }
.photo .langs { position: absolute; inset-inline-end: 10px; top: 10px; background: rgb(17 24 39 / .7); color: #fff; font-size: .68rem; font-weight: 600; padding: .25rem .5rem; border-radius: 6px; letter-spacing: .04em; }
.listing__body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.listing__title { font: 600 .95rem/1.3 var(--font-display); }
.listing__meta { font-size: .78rem; color: var(--b-500); }
.listing__price { font-size: .8rem; font-weight: 600; color: var(--p-700); margin-block-start: 4px; }
.mock--toast { inset-inline-start: -8px; bottom: 16px; width: min(62%, 330px); padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; z-index: 4; }
.toast__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--s-500) 20%, #fff); color: var(--s-700); }
.toast__text { display: grid; gap: 2px; }
.toast__line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.toast__title { font-weight: 600; font-size: .88rem; }
.toast__body { font-size: .78rem; color: var(--b-500); }
.toast__time { font-size: .72rem; color: var(--b-400); white-space: nowrap; }
@media (max-width: 991px) { .stage { max-width: 560px; margin-inline: auto; width: 100%; } }
@media (max-width: 520px) {
  .stage { min-height: 540px; }
  .mock--admin { top: 180px; width: 94%; }
  .mock--listing { top: 0; width: 54%; }
  .mock--toast { width: 86%; inset-inline-start: 0; bottom: 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile:nth-child(2) { display: none; }
}

/* --- starter areas: a slow marquee under the wave --- */
.strip { padding-block: 4px 0; display: grid; gap: 18px; }
.strip__title { text-align: center; color: var(--text-3); font-size: .95rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: marquee 70s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { translate: -50% 0; } }
@keyframes marquee-rtl { to { translate: 50% 0; } }
.place { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: 12px; padding: .6rem 1.1rem; border-radius: 999px; background: var(--bg-tint); white-space: nowrap; font-weight: 500; color: var(--text); }
.place .ms { font-size: 18px; color: var(--icon); }
.place small { color: var(--text-3); font-weight: 400; font-size: .85rem; }

/* --- features: light cards, big flat icons, the template's 15px rise --- */
.cards-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.feature { height: 100%; border-radius: 10px; background: var(--bg-tint); padding: 48px 32px; text-align: center; display: grid; gap: 14px; justify-items: center; align-content: start; transition: transform .5s; }
.feature:hover { transform: translateY(-15px); }
.feature > .ms { font-size: 64px; color: var(--icon); margin-block-end: 8px; }

/* --- about --- */
.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.split__copy { display: grid; gap: 22px; }
.split__copy > .btn { justify-self: start; margin-block-start: 8px; }
.points { display: grid; gap: 24px; }
.point { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.point h3 { margin-block-end: 6px; }
.round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--p-600); color: #fff; }
.round .ms { font-size: 22px; }
.about-visual { position: relative; padding: 18px; }
.villa { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 5 / 4; max-width: 100%; box-shadow: var(--shadow); }
.villa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.float-card { position: absolute; background: var(--surface); color: var(--text); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: .86rem; max-width: 78%; line-height: 1.35; }
.float-card strong { display: block; font-size: .9rem; }
.float-card small { color: var(--text-3); }
.float-card .ms { color: var(--icon); }
.float-card--a { inset-inline-start: -2%; bottom: 10%; }
.float-card--b { inset-inline-end: -2%; top: 9%; }

/* --- overview: the template's "01 ── title" rows --- */
.rows { display: grid; gap: clamp(64px, 8vw, 96px); }
.row { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .row--flip .row__visual { order: 2; } }
.row__copy { display: grid; gap: 20px; }
.row__head { display: flex; align-items: center; gap: 12px; }
.row__num { font: 700 clamp(2.6rem, 4.5vw, 3.4rem)/1 var(--font-display); color: var(--text); direction: ltr; }
.row__bar { width: 30px; height: 2px; flex-shrink: 0; background: var(--p-600); }
.row__head h3 { font-size: 1.25rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; color: var(--text); font-weight: 500; }
.checks .ms { color: var(--icon); font-size: 22px; }
.mock-note { display: block; margin-block-end: 10px; font-size: .8rem; color: var(--text-3); }
.code-card { border-radius: 14px; background: var(--b-950); color: var(--b-200); box-shadow: var(--shadow-lg); overflow: hidden; }
.code-card__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: color-mix(in oklab, var(--p-950) 55%, var(--b-950)); font: 500 .8rem/1 var(--font-mono); color: var(--b-300); }
.code-card__bar .verb { color: var(--s-400); font-weight: 700; margin-inline-start: 6px; }
.code-card__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--b-700); display: inline-block; flex-shrink: 0; }
.code-card__bar .path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-card pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font: 400 .84rem/1.7 var(--font-mono); direction: ltr; text-align: left; }
.code-card .k { color: var(--p-300); }
.code-card .s { color: var(--s-300); unicode-bidi: isolate; }
.code-card [lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font-mono); }
.code-card .n { color: #fbbf77; }
.code-card .p { color: var(--b-500); }
.team-card { border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; }
.team-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg-tint); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 .85rem/1 var(--font-display); color: #fff; }
.team-row strong { display: block; font-size: .92rem; color: var(--text); }
.team-row small { color: var(--text-3); font-size: .78rem; }
.role { font-size: .74rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; }
.otp { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--brand-soft); }
.otp__label { font-size: .82rem; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.otp__label .ms { font-size: 20px; color: var(--brand-ink); }
.otp__digits { display: flex; gap: 8px; direction: ltr; }
.otp__digits span { width: 38px; height: 46px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font: 600 1.2rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--text); }
.otp__digits span.caret { border-color: var(--p-500); box-shadow: 0 0 0 3px color-mix(in oklab, var(--p-500) 25%, transparent); }
.inbox { border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.inbox__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); font: 600 1rem/1.2 var(--font-display); color: var(--text); }
.inbox__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.inbox__row:last-child { border-bottom: 0; }
.inbox__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font: 600 .9rem/1 var(--font-display); }
.inbox__who { min-width: 0; }
.inbox__who strong { display: block; color: var(--text); font-size: .92rem; }
.inbox__who small { display: block; color: var(--text-3); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox__meta { display: grid; justify-items: end; gap: 6px; }
.status { font-size: .72rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.status--new { background: var(--ok-soft); color: var(--ok-ink); }
.masked { font: 500 .76rem/1 var(--font-mono); color: var(--text-3); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

/* --- advanced features: shadowed cards that turn primary on hover --- */
.cards-4 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tool { position: relative; height: 100%; border-radius: 10px; padding: 48px 24px 40px; text-align: center; background: var(--surface); box-shadow: var(--shadow-soft); display: grid; gap: 12px; justify-items: center; align-content: start; transition: background-color .5s; }
.tool > .ms { font-size: 48px; color: var(--icon); margin-block-end: 8px; }
.tool > .ms, .tool h3, .tool p { transition: color .5s; }
.tool p { font-size: .95rem; }
.tool:hover { background: var(--p-600); }
.tool:hover > .ms, .tool:hover h3, .tool:hover p { color: #fff; }
.tag { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; font-size: .72rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--bg-tint); color: var(--text-3); transition: .5s; }
.tool:hover .tag { background: rgb(255 255 255 / .18); color: #fff; }
.soon { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-block-start: 24px; }
.soon__card { position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 30px 28px; border-radius: 10px; border: 1px dashed color-mix(in oklab, var(--p-600) 40%, transparent); background: var(--brand-soft); }
.soon__card > .ms { font-size: 40px; color: var(--icon); flex-shrink: 0; }
.soon__card h3 { margin-block-end: 4px; padding-inline-end: 96px; }
.tag--soon { background: var(--p-600); color: #fff; }

/* --- facts: the template's full-width primary band --- */
.facts { background: var(--p-600) linear-gradient(135deg, var(--p-600), var(--p-700)); color: #fff; padding-block: clamp(64px, 8vw, 96px); }
.facts__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); text-align: center; }
.fact { display: grid; gap: 8px; justify-items: center; align-content: start; }
.fact > .ms { font-size: 48px; color: #fff; margin-block-end: 6px; }
.fact__num { font: 700 clamp(2.6rem, 5vw, 3.4rem)/1 var(--font-display); font-variant-numeric: tabular-nums; direction: ltr; color: #fff; }
.fact__label { color: rgb(255 255 255 / .86); max-width: 24ch; }
@media (max-width: 639px) {
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .fact__label { font-size: .9rem; }
}

/* --- process: the template's vertical steps --- */
.process { list-style: none; padding: 0; margin: 6px 0 0; }
.process li { position: relative; display: flex; gap: 20px; padding-block-end: 26px; }
.process li::after { content: ""; position: absolute; top: 0; inset-inline-start: 20px; width: 1px; height: 100%; background: var(--p-600); }
.process li:last-child { padding-block-end: 0; }
.process li:last-child::after { display: none; }
.process__icon { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--p-600); color: #fff; }
.process__icon .ms { font-size: 20px; }
.process h3 { font-size: 1.1rem; margin-block-end: 4px; }
.setup { border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.setup__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.setup__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.setup__url { margin-inline-start: 8px; flex: 1; min-width: 0; padding: .35rem .8rem; border-radius: 999px; background: var(--surface); color: var(--text-3); font: 500 .8rem/1.2 var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup__body { padding: 22px 22px 24px; display: grid; gap: 16px; }
.setup__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 1.05rem/1.2 var(--font-display); color: var(--text); }
.setup__title small { font: 500 .8rem/1 var(--font-body); color: var(--text-3); }
.progress { height: 8px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; }
.progress span { display: block; height: 100%; width: 75%; border-radius: inherit; background: var(--p-600); transition: width 1.4s ease .8s; }
.motion [data-reveal]:not(.in) .progress span { width: 0; }
.setup__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.setup__list li { display: flex; gap: 12px; align-items: center; color: var(--text); font-weight: 500; font-size: .95rem; }
.setup__list .ms { color: var(--icon); font-size: 22px; }
.setup__list li.todo, .setup__list li.todo .ms { color: var(--text-3); }

/* --- who it's for: the template's testimonial carousel, icon over the card's edge --- */
.carousel__viewport { overflow: hidden; margin-inline: -12.5px; }
.carousel__track { display: flex; transition: transform 1s ease; }
.slide { flex: 0 0 100%; padding-inline: 12.5px; }
@media (min-width: 992px) { .slide { flex-basis: 50%; } }
.who { height: calc(100% - 56px); margin-block: 32px 24px; border-radius: 10px; background: var(--bg-tint); padding: 0 30px 30px; display: grid; gap: 12px; align-content: start; }
.who > .ms { font-size: 60px; color: var(--icon); margin-block-start: -28px; }
.who p { font-size: 1.02rem; }
.service { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-self: start; margin-block-start: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--brand-ink); font-weight: 600; font-size: .88rem; }
.service code { font: 500 .76rem/1 var(--font-mono); color: var(--text-3); direction: ltr; unicode-bidi: isolate; }
.carousel__nav { display: flex; justify-content: center; gap: 24px; }
.carousel__btn { width: 60px; height: 60px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); cursor: pointer; transition: .5s; }
.carousel__btn .ms { font-size: 26px; }
.carousel__btn:hover { background: var(--p-600); color: #fff; box-shadow: 0 0 10px rgb(0 0 0 / .5); }

/* --- questions --- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-soft); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font: 600 1.05rem/1.4 var(--font-display); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ms { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 20px; transition: transform .35s ease, background-color .35s, color .35s; }
.faq details[open] summary .ms { transform: rotate(45deg); background: var(--p-600); color: #fff; }
.faq details p { padding: 0 24px 22px; }

/* --- contact: round icons and floating labels, as in the template --- */
.contact { display: grid; gap: clamp(36px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact__copy { display: grid; gap: 22px; }
.info { display: flex; gap: 16px; align-items: center; }
.info p { font-size: .9rem; color: var(--text-3); margin-block-end: 2px; }
.info strong { font: 600 1.1rem/1.35 var(--font-display); color: var(--text); }
.info a { color: var(--brand-ink); text-decoration: none; }
.info a:hover { text-decoration: underline; }
/* --- footer: dark, chevron links that open up on hover --- */
.footer { background: var(--b-950); color: var(--b-400); padding-block-start: clamp(56px, 7vw, 80px); border-top: 1px solid rgb(255 255 255 / .06); }
.footer__grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.footer__about { display: grid; gap: 18px; align-content: start; }
.footer .lang { justify-self: start; --nav-fg: #fff; --nav-chip: rgb(255 255 255 / .08); --nav-chip-line: rgb(255 255 255 / .18); --nav-chip-hover: rgb(255 255 255 / .14); }
.footer .brand img { height: 64px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav .brand .logo-color { display: none; }
  :root:not([data-theme="light"]) .nav .brand .logo-white { display: block; }
}
:root[data-theme="dark"] .nav .brand .logo-color { display: none; }
:root[data-theme="dark"] .nav .brand .logo-white { display: block; }
.footer h3 { color: #fff; font-size: 1.15rem; font-weight: 500; margin-block-end: 20px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a { color: var(--b-400); text-decoration: none; transition: .3s; }
.footer__links a::before { content: "›"; margin-inline-end: 10px; }
[dir="rtl"] .footer__links a::before { content: "‹"; }
.footer__links a:hover { color: #fff; letter-spacing: 1px; }
:root:lang(ar) .footer__links a:hover { letter-spacing: 0; }
.footer__bottom { margin-block-start: 48px; padding-block: 24px; border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; }
.footer__menu { display: flex; flex-wrap: wrap; }
.footer__menu a { color: var(--b-400); text-decoration: none; padding-inline: 15px; border-inline-start: 1px solid rgb(255 255 255 / .1); transition: color .3s; }
.footer__menu a:first-child { padding-inline-start: 0; border: 0; }
.footer__menu a:hover { color: #fff; }

/* --- back to top --- */
.to-top { position: fixed; inset-inline-end: 45px; bottom: calc(45px + env(safe-area-inset-bottom, 0px)); z-index: 55; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--p-600); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s, box-shadow .5s; }
.to-top.is-shown { opacity: 1; visibility: visible; }
.to-top:hover { box-shadow: 0 0 10px rgb(0 0 0 / .5); }
@media (max-width: 640px) { .to-top { inset-inline-end: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); } }

/* --- motion: the template's WOW.js reveals and its animate.css load-in, without the libraries.
   They animate translate and scale, never transform, so a card's own hover rise never waits for its reveal. --- */
.motion [data-reveal]:not(.in) { opacity: 0; }
.motion [data-reveal].in { animation: reveal-fade 1s ease var(--delay, 0s) both; }
.motion [data-reveal="up"].in { animation-name: reveal-up; }
.motion [data-reveal="zoom"].in { animation-name: reveal-zoom; }
.motion:not(.ready) [data-load] { opacity: 0; }
.motion.ready [data-load] { animation: load-down 1s ease var(--delay, 0s) both; }
.motion.ready [data-load="zoom"] { animation-name: reveal-zoom; }
@keyframes reveal-fade { from { opacity: 0; } }
@keyframes reveal-up { from { opacity: 0; translate: 0 60px; } }
@keyframes reveal-zoom { from { opacity: 0; scale: .6; } }
@keyframes load-down { from { opacity: 0; translate: 0 -60px; } }

@media (prefers-reduced-motion: reduce) {
  .ring, .spinner-grow { animation: none; }
  .spinner-grow { opacity: 1; }
  .carousel__track, .btn, .feature, .tool, .progress span { transition: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 10px; padding-inline: 16px; }
  .marquee__track [data-copy] { display: none; }
}

/* --- contact: the two ways to ask --- */
.start { display: flex; flex-wrap: wrap; gap: 14px; align-content: start; padding: 32px; border-radius: 10px; background: var(--bg-tint); }
.btn--outline { background: transparent; color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--line); }
