/* ULTRA Gestion — landing page
   Palette from the Instagram posts: lime, cream, navy, royal blue. Bento layout. */
:root {
  --lime: #B8F279;
  --lime-strong: #A6E85F;
  --cream: #F5F2E9;
  --paper: #FBFAF6;
  --navy: #172234;
  --navy-2: #1F2D45;
  --royal: #365CE5;
  --ink: #172234;
  --text: #3B4455;
  --muted: #687082;
  --line: rgba(23, 34, 52, .1);
  --line-strong: rgba(23, 34, 52, .16);
  --wa: #25D366;

  --font: "Segoe UI Variable Text", "Segoe UI", "Open Sans", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", "Open Sans", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-ar: "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --tile-pad: clamp(22px, 2.3vw, 30px);
  --shadow-lg: 0 50px 90px -40px rgba(9, 16, 32, .5), 0 24px 40px -24px rgba(9, 16, 32, .28);
  --shadow-md: 0 24px 50px -28px rgba(9, 16, 32, .4), 0 8px 18px -10px rgba(9, 16, 32, .16);
  --ease: cubic-bezier(.2, .75, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 16.5px/1.6 var(--font); color: var(--text); background: var(--cream);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--font-display); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
[lang="ar"] { font-family: var(--font-ar); }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 8px; }
.demo-card :focus-visible, .site-footer :focus-visible, .t-dash :focus-visible, .t-pay :focus-visible, .t-safe :focus-visible { outline-color: var(--lime); }
.form-card :focus-visible { outline-color: var(--royal); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 29px; fill: var(--royal); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word strong { font: 900 22px/1 var(--font-display); letter-spacing: .055em; }
.brand-word small { margin-top: 4px; font: 600 8.5px/1 var(--font); letter-spacing: .48em; }
.brand-light { color: #fff; }
.brand-light .brand-mark { fill: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15.5px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-strong); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--royal); box-shadow: 0 0 0 4px rgba(54, 92, 229, .16); }
.eyebrow-light { color: rgba(255, 255, 255, .8); }
.eyebrow-light .dot { background: var(--lime); box-shadow: 0 0 0 4px rgba(184, 242, 121, .25); }

/* ---------- Header (floating pill) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.header-pill {
  position: relative; display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 8px 0 20px;
  border-radius: 999px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(23, 34, 52, .08);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  transition: box-shadow .3s;
}
.site-header.scrolled .header-pill { box-shadow: 0 16px 40px -24px rgba(23, 34, 52, .45); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; transition: background-color .2s; }
.nav a:not(.btn):hover { background: rgba(23, 34, 52, .06); }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 999px; background: var(--ink); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 15px; right: 15px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span:first-child { top: 19px; }
.menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 22.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 22.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 6vw, 88px); }
.hero::before { /* graph paper: from the notebook to the dashboard */
  content: ""; position: absolute; inset: -100px 0 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(23, 34, 52, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 34, 52, .065) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 22% 30%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 70% at 22% 30%, #000 25%, transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.hero h1 { margin-top: 22px; font-weight: 700; font-size: clamp(44px, 5.1vw, 76px); line-height: 1; letter-spacing: -.045em; }
.hero-sticker {
  display: inline-block; margin-top: 18px; padding: .02em .34em .12em; border-radius: 18px; background: var(--lime);
  font: 700 clamp(34px, 4vw, 58px)/1.3 var(--font-ar); color: var(--ink); transform: rotate(-1.5deg);
  box-shadow: 0 14px 30px -18px rgba(70, 120, 20, .8);
}
.js .hero-sticker.reveal.in { transform: rotate(-1.5deg); }
.lead { margin-top: 24px; max-width: 32em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.trust svg { width: 18px; height: 18px; color: var(--ink); }

.hero-visual { position: relative; }
.window {
  width: 128%; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(23, 34, 52, .1);
}
.window-bar { display: flex; align-items: center; justify-content: space-between; height: 34px; padding-left: 12px; background: #fff; border-bottom: 1px solid #E6EAF1; color: #1F2633; font-size: 12px; }
.window-title { display: inline-flex; align-items: center; gap: 8px; }
.window-title svg { width: 14px; height: 12px; padding: 2px; fill: #fff; background: #3E5679; border-radius: 4px; box-sizing: content-box; }
.window-ctrl { display: flex; height: 100%; }
.window-ctrl i { position: relative; width: 42px; height: 100%; }
.window-ctrl .min::before { content: ""; position: absolute; left: 16px; top: 16px; width: 10px; height: 1px; background: #2B3240; }
.window-ctrl .max::before { content: ""; position: absolute; left: 16px; top: 12px; width: 9px; height: 9px; border: 1px solid #2B3240; border-radius: 2px; }
.window-ctrl .close::before, .window-ctrl .close::after { content: ""; position: absolute; left: 15px; top: 16px; width: 12px; height: 1px; background: #2B3240; transform: rotate(45deg); }
.window-ctrl .close::after { transform: rotate(-45deg); }
.window img { width: 100%; cursor: zoom-in; }

.float-card {
  position: absolute; z-index: 2; display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-md), 0 0 0 1px rgba(23, 34, 52, .06);
  animation: float 7s ease-in-out infinite;
}
.fc-label { font-size: 12.5px; color: var(--muted); }
.float-card strong { font: 700 22px/1.25 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.fc-delta { justify-self: start; margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: #E3F5E8; color: #1F7A45; font: 600 12px/1.3 var(--font); }
.fc-rev { left: -44px; top: 16%; }
.fc-stock { left: 9%; bottom: 48px; display: flex; align-items: center; gap: 12px; background: var(--lime); animation-delay: -3.5s; }
.fc-stock .fc-label { color: rgba(23, 34, 52, .7); display: block; }
.fc-stock strong { font-size: 16px; letter-spacing: .04em; }
.fc-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--lime); }
.fc-icon svg { width: 22px; height: 22px; }
@keyframes float { 50% { transform: translateY(-8px); } }
.caption { margin-top: 44px; font-size: 13px; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .35); }
.marquee-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.marquee-label { flex: none; font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.marquee-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul { display: flex; }
.marquee-track li { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-weight: 500; font-size: 16px; color: var(--ink); white-space: nowrap; }
.marquee-track li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-strong); box-shadow: 0 0 0 1px rgba(23, 34, 52, .15); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head h2 { margin-top: 16px; font-weight: 700; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -.035em; }
.section-ar { margin-left: auto; font: 700 clamp(30px, 3.6vw, 52px)/1.3 var(--font-ar); color: var(--royal); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 400px; padding: var(--tile-pad);
  border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid rgba(23, 34, 52, .07); color: var(--text);
}
.js .tile.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .4s var(--ease); }
.tile:hover, .js .tile.reveal.in:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -38px rgba(23, 34, 52, .5); }
.js .tile.reveal.in { transition: opacity .7s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
.tile-kicker { display: flex; align-items: center; gap: 8px; font: 600 13.5px/1.2 var(--font); letter-spacing: .02em; color: var(--muted); }
.tile-kicker svg { width: 18px; height: 18px; }
.tile-ar { margin-top: 16px; font: 700 clamp(26px, 2.6vw, 38px)/1.35 var(--font-ar); color: var(--ink); text-align: left; }
.tile-fr { margin-top: 6px; max-width: 34ch; font-size: 15.5px; line-height: 1.55; }
.tile-media { position: relative; margin: auto calc(var(--tile-pad) * -1) calc(var(--tile-pad) * -1) 0; padding-top: 24px; overflow: hidden; }
.tile-media img { width: calc(100% + 16px); max-width: none; border-radius: 16px 0 0 0; box-shadow: -12px -12px 40px -24px rgba(23, 34, 52, .35); }

.t-dash { grid-column: span 7; background: var(--navy); color: rgba(255, 255, 255, .75); }
.t-flux { grid-column: span 5; }
.t-stock { grid-column: span 4; background: var(--lime); color: rgba(23, 34, 52, .78); }
.t-pay { grid-column: span 4; background: var(--royal); color: rgba(255, 255, 255, .85); }
.t-team { grid-column: span 4; }
.t-docs { grid-column: span 5; }
.t-lang { grid-column: span 7; background: var(--lime); color: rgba(23, 34, 52, .78); }
.t-safe { grid-column: span 7; background: var(--navy); color: rgba(255, 255, 255, .75); }
.t-carnet { grid-column: span 5; background: linear-gradient(180deg, #F3EEE6, #E8E0D4); }

.t-dash, .t-flux { min-height: 520px; }
.t-dash .tile-ar, .t-pay .tile-ar, .t-safe .tile-ar { color: #fff; }
.t-dash .tile-kicker, .t-safe .tile-kicker { color: var(--lime); }
.t-pay .tile-kicker { color: rgba(255, 255, 255, .8); }
.t-stock .tile-kicker, .t-lang .tile-kicker { color: rgba(23, 34, 52, .7); }
.t-dash .tile-media, .t-flux .tile-media { height: 300px; flex: none; }
.t-dash .tile-media img { box-shadow: -18px -18px 50px -24px rgba(0, 0, 0, .5); }

/* Avances: navy "reste à verser" card over the per-employee table */
.t-pay .tile-media { height: 210px; flex: none; }
.t-pay .pay-table { position: absolute; left: 13%; top: 92px; width: 150%; border-radius: 14px 0 0 0; }
.t-pay .pay-card { position: relative; z-index: 1; width: 78%; border-radius: 14px; box-shadow: 0 20px 40px -18px rgba(10, 20, 60, .7); }

/* Facture: the cut edges of the crop fade into the white tile */
.t-docs .tile-media { margin-left: calc(var(--tile-pad) * -1); }
.t-docs .tile-media img { box-shadow: none; border-radius: 0; }
.t-docs .tile-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #fff 4%, rgba(255, 255, 255, 0) 30%), linear-gradient(180deg, #fff 6%, rgba(255, 255, 255, 0) 24%); }

/* Langue & thème: two windows */
.t-lang .tile-media { flex: 1 1 auto; min-height: 270px; }
.t-lang .tile-media img { position: absolute; border-radius: 12px; cursor: zoom-in; box-shadow: var(--shadow-md); }
.t-lang .tile-media .lang-dark { right: -8%; top: 24px; width: 64%; }
.t-lang .tile-media .lang-ar { left: 0; top: 74px; width: 66%; }

/* Sérénité */
.safe-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 28px; }
.safe-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #fff; font-size: 15px; font-weight: 500; }
.safe-list svg { width: 20px; height: 20px; color: var(--lime); }

/* Carnet */
.t-carnet { padding: 0; }
.carnet-copy { position: relative; z-index: 1; padding: var(--tile-pad); display: grid; justify-items: start; gap: 6px; }
.carnet-copy .tile-ar { margin-top: 0; }
.carnet-copy .btn { margin-top: 14px; }
.carnet-photo {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 66%; object-fit: cover; object-position: 60% 100%; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 28%); mask-image: linear-gradient(180deg, transparent, #000 28%);
}

/* ---------- Demo ---------- */
.demo-card {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 5vw, 72px);
  align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 36px; background: var(--royal); color: rgba(255, 255, 255, .85);
  overflow-x: clip; /* keeps the watermark inside; the activity list may still open downward */
}
.demo-mark { position: absolute; z-index: -1; left: -90px; bottom: -40px; width: 520px; height: 446px; fill: rgba(255, 255, 255, .06); pointer-events: none; }
.demo-card::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: radial-gradient(circle at 85% 0%, rgba(184, 242, 121, .22), transparent 45%); }
.demo-copy h2 { margin-top: 20px; color: #fff; font-weight: 700; font-size: clamp(34px, 3.8vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
.demo-ar { margin-top: 12px; font: 700 clamp(24px, 2.6vw, 36px)/1.4 var(--font-ar); color: var(--lime); text-align: left; }
.steps { display: grid; gap: 12px; margin-top: 30px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 16.5px; color: #fff; }
.steps span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .14); font: 600 13px/1 var(--font); }
.demo-note { margin-top: 26px; font-size: 14.5px; color: rgba(255, 255, 255, .72); }

.form-card { position: relative; z-index: 3; padding: clamp(22px, 2.6vw, 32px); border-radius: 26px; background: #fff; color: var(--text); box-shadow: 0 50px 90px -40px rgba(10, 20, 60, .6); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font: 600 13.5px/1.2 var(--font); color: var(--ink); }
.control { position: relative; }
.control > svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.control input {
  width: 100%; height: 52px; padding: 0 14px 0 44px; border: 1.5px solid #E4E0D6; border-radius: 14px; background: #F7F5EF;
  font: 400 16px/1.2 var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.control input::placeholder { color: #9A9FAA; }
.control input:hover { border-color: #CFC9BB; }
.control input:focus { outline: none; border-color: var(--royal); background: #fff; box-shadow: 0 0 0 4px rgba(54, 92, 229, .14); }
.control:focus-within > svg { color: var(--royal); }
.field.invalid input { border-color: #C4382B; background: #FFF8F7; }
.field-error { margin-top: 6px; color: #B42B1F; font-size: 13.5px; }

/* Searchable activity picker */
.combo input { padding-right: 52px; }
.combo-toggle { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.combo-toggle:hover { background: rgba(23, 34, 52, .06); }
.combo-toggle svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.combo.open .combo-toggle svg { transform: rotate(180deg); }
.combo-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); max-height: 268px; overflow-y: auto; padding: 6px;
  border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(23, 34, 52, .45);
  overscroll-behavior: contain;
}
.combo-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: 15.5px; color: var(--ink); }
.combo-list li.active { background: #EEF2FF; color: var(--royal); }
.combo-list li[aria-selected="true"]::after { content: ""; width: 14px; height: 8px; margin-top: -4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.combo-list mark { background: rgba(184, 242, 121, .55); color: inherit; border-radius: 3px; }
.combo-list .opt-custom { color: var(--royal); font-weight: 600; }
.combo-list .opt-empty { cursor: default; color: var(--muted); font-size: 14.5px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn-block { margin-top: 20px; }
.form-card .btn[disabled] { opacity: .65; cursor: progress; }
.form-status { min-height: 1.2em; margin-top: 10px; font-size: 14.5px; color: #B42B1F; }
.form-legal { font-size: 13px; color: var(--muted); }
.form-done { text-align: center; padding: 18px 0 6px; }
.form-done:focus { outline: none; }
.form-done h3 { font-size: 26px; letter-spacing: -.02em; }
.done-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.done-icon svg { width: 32px; height: 32px; }
.form-done p { margin-top: 8px; font-size: 16px; }
.done-ar { font-size: 21px !important; color: var(--ink); }
.form-done .btn { margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.faq-grid details { padding: 0 22px; border-radius: 20px; background: #fff; border: 1px solid rgba(23, 34, 52, .07); transition: box-shadow .25s; }
.faq-grid details[open] { box-shadow: 0 24px 50px -36px rgba(23, 34, 52, .5); }
.faq-grid summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0;
  cursor: pointer; list-style: none; font: 600 16.5px/1.4 var(--font-display); color: var(--ink);
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background-color: var(--cream);
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-size: 11px 1.6px, 1.6px 11px; background-position: center; background-repeat: no-repeat;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq-grid details[open] summary::after { transform: rotate(45deg); background-color: var(--lime); }
.faq-grid details p { padding: 0 0 20px; font-size: 15.5px; }
.faq-grid a { color: var(--royal); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .62); padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand { display: flex; align-items: center; gap: 22px; }
.footer-ar { font: 700 26px/1.3 var(--font-ar); color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--lime); }
.footer-links svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 22px; font-size: 13.5px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; z-index: 60; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: flex; align-items: center; text-decoration: none; filter: drop-shadow(0 14px 22px rgba(10, 30, 20, .28)); }
.wa-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; transition: transform .25s var(--ease); }
.wa-icon svg { width: 31px; height: 31px; }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; padding: 0; margin-right: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 600 15px/44px var(--font); transition: max-width .35s var(--ease), opacity .25s, padding .35s var(--ease), margin .35s var(--ease); }
.wa-label [lang="ar"] { font-weight: 700; }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 280px; opacity: 1; padding: 0 18px; margin-right: 10px; }
.wa-float:hover .wa-icon { transform: scale(1.06); }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-icon { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--wa); }
.js .wa-float { transform: translateY(20px); opacity: 0; transition: transform .45s var(--ease), opacity .45s; }
.js .wa-float.ready { transform: none; opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox { width: min(1500px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 16px; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 15, 26, .86); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 90vh; object-fit: contain; border-radius: 14px; background: #fff; }
.lightbox-close { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font: 400 28px/1 var(--font); cursor: pointer; box-shadow: var(--shadow-md); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -30px rgba(23, 34, 52, .45); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 17px; border-radius: 14px; }
  .nav-cta { margin: 6px 0 0; min-height: 52px; }
  .menu-btn { display: block; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .window { width: 100%; }
  .fc-rev { left: -10px; top: auto; bottom: 40px; }
  .fc-stock { left: auto; right: -10px; bottom: auto; top: -24px; }
  .caption { margin-top: 16px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-column: span 1 !important; }
  .t-dash, .t-lang, .t-safe { grid-column: 1 / -1 !important; }
  .t-carnet { order: 7; } .t-lang { order: 8; } .t-safe { order: 9; }
  .demo-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-pill { height: 58px; padding-left: 16px; }
  .hero h1 { margin-top: 18px; }
  .cta-row .btn { flex: 1 1 100%; }
  .float-card { padding: 10px 14px; border-radius: 14px; }
  .float-card strong { font-size: 17px; }
  .fc-stock strong { font-size: 13px; }
  .fc-icon { width: 32px; height: 32px; border-radius: 10px; }
  .fc-icon svg { width: 18px; height: 18px; }
  .fc-delta { display: none; }
  .window-bar { height: 28px; font-size: 11px; }
  .window-ctrl i { width: 32px; }
  .window-ctrl .min::before { left: 11px; top: 13px; }
  .window-ctrl .max::before { left: 11px; top: 9px; }
  .window-ctrl .close::before, .window-ctrl .close::after { left: 10px; top: 13px; }
  .marquee-label { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .t-dash, .t-lang, .t-safe { grid-column: auto !important; }
  .tile { min-height: 0; border-radius: 24px; }
  .t-dash, .t-flux { min-height: 0; }
  .t-dash .tile-media, .t-flux .tile-media { height: 220px; }
  .t-lang .tile-media { height: 210px; }
  .t-pay .tile-media { height: 190px; }
  .t-carnet { min-height: 440px; }
  .safe-list { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .demo-card { border-radius: 28px; padding: 24px 18px 18px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .combo-list { max-height: 230px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
  .wa-icon { width: 56px; height: 56px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
