/* =========================================================
   Wathiq — marketing site (FR / EN / AR)
   ========================================================= */
:root {
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-400: #2dd4bf;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --brand-900: #134e4a;
  --brand-950: #042f2e;
  --ink: #0b1220;
  --text: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f6;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --amber: #f59e0b;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -10px rgba(15, 23, 42, .12);
  --shadow-xl: 0 30px 80px -24px rgba(4, 47, 46, .35), 0 12px 24px -12px rgba(15, 23, 42, .12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.025em; font-weight: 700; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.4; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section-sm { padding: 72px 0; }
.bg-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.section-head p { margin-top: 16px; font-size: 1.125rem; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: .975rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn-primary { background: var(--brand-700); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 20px -8px rgba(15, 118, 110, .7); }
.btn-primary:hover { background: var(--brand-800); }
.btn-secondary { background: #fff; color: var(--ink); border-color: #d5dde7; box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #b6c2d1; background: var(--bg-alt); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: #f1f5f9; }
.btn-white { background: #fff; color: var(--brand-900); }
.btn-white:hover { background: var(--brand-50); }
.btn-outline-white { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-white:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn-sm { height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1.025rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 1px 12px rgba(15, 23, 42, .04); }
.header-inner { display: flex; align-items: center; gap: 12px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 2px; margin-inline-start: 28px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: .925rem; font-weight: 500; color: var(--text); transition: color .15s, background-color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: #f1f5f9; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: #f1f5f9; }
.lang-switch button {
  min-width: 34px; padding: 4px 8px; border: 0; border-radius: 7px; background: transparent;
  font: inherit; font-size: .75rem; font-weight: 700; color: var(--muted); cursor: pointer;
}
.lang-switch button[lang="ar"] { font-family: var(--font-ar); font-size: .9rem; line-height: 1.15; }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn:hover { background: #f1f5f9; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; padding: 12px 20px 20px;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.mobile-nav.open { display: grid; gap: 4px; }
.mobile-nav a:not(.btn) { padding: 12px; border-radius: 10px; font-weight: 500; color: var(--ink); }
.mobile-nav a:not(.btn):hover { background: var(--bg-alt); }
.mobile-nav .btn { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 0; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; top: -240px; left: 50%; width: 1100px; height: 640px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(45, 212, 191, .28), rgba(45, 212, 191, 0) 70%);
}
.hero-copy { max-width: 860px; margin: 0 auto; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .875rem; font-weight: 500; color: var(--text);
}
html[dir="rtl"] .pill { padding: 5px 6px 5px 14px; }
.pill b { padding: 2px 10px; border-radius: 999px; background: var(--brand-700); color: #fff; font-size: .75rem; font-weight: 600; }
.hero h1 { margin-top: 24px; font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; }
html[lang="ar"] .hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); letter-spacing: 0; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand-700), var(--brand-500) 60%, #0ea5e9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 24px auto 0; max-width: 680px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-micro { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: .9rem; color: var(--muted); }
.hero-micro span { display: inline-flex; align-items: center; gap: 7px; }
.hero-micro svg { width: 16px; height: 16px; color: var(--brand-600); }

.showcase { position: relative; margin: 64px auto 0; max-width: 1120px; }
.browser {
  position: relative; border-radius: 16px; background: #fff; overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .1); box-shadow: var(--shadow-xl);
}
.browser-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.browser-dots i:nth-child(1) { background: #fca5a5; }
.browser-dots i:nth-child(2) { background: #fcd34d; }
.browser-dots i:nth-child(3) { background: #86efac; }
.browser-url {
  flex: 1; max-width: 360px; margin: 0 auto; height: 24px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 7px; background: #fff; border: 1px solid var(--line); font-size: .75rem; color: var(--muted); direction: ltr;
}
.browser-url svg { width: 11px; height: 11px; }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--bg-alt); }
.hero .showcase::after {
  content: ""; position: absolute; inset: auto 0 0; height: 30%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  font-size: .875rem; color: var(--ink); font-weight: 600; backdrop-filter: blur(6px);
}
.float-card small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.float-card .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.float-card .ico svg { width: 18px; height: 18px; }
.float-card.f1 { top: 22%; inset-inline-start: -36px; }
.float-card.f1 .ico { background: #16a34a; }
.float-card.f2 { top: 52%; inset-inline-end: -36px; }
.float-card.f2 .ico { background: var(--brand-700); }

/* ---------- Facts band ---------- */
.facts { padding: 40px 0 8px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.fact { padding: 28px 24px; text-align: center; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact strong { display: block; font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.fact span { display: block; margin-top: 6px; color: var(--muted); font-size: .925rem; }
.audience { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; margin-top: 36px; }
.audience p { color: var(--muted); font-size: .925rem; margin-inline-end: 6px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .875rem; font-weight: 500; color: var(--text); }

/* ---------- Spotlight rows ---------- */
.spotlights { display: grid; gap: 120px; }
.spot { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
.spot.reverse .spot-media { order: -1; }
.spot-copy h3 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.spot-copy > p { margin-top: 16px; font-size: 1.075rem; color: var(--muted); }
.checks { display: grid; gap: 14px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230f766e'%3E%3Cpath d='M8.3 13.3 4.9 9.9l-1.2 1.2 4.6 4.6 8-8-1.2-1.2z'/%3E%3C/svg%3E") center / 15px no-repeat;
  border: 1px solid var(--brand-100);
}
.spot-media { position: relative; }
.spot-media .frame {
  border-radius: 18px; padding: 10px; background: linear-gradient(140deg, var(--brand-100), #e0f2fe 55%, #f1f5f9);
  box-shadow: var(--shadow);
}
.spot-media .frame img { width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(15, 23, 42, .08); background: #fff; }
/* Zoomed crop of a full-page screenshot: shows the inline-start part (where the app's forms are) larger. */
.spot-media .frame.zoom .vp { aspect-ratio: 16 / 11; overflow: hidden; border-radius: 10px; border: 1px solid rgba(15, 23, 42, .08); background: #fff; }
.spot-media .frame.zoom img { width: 140%; max-width: none; border: 0; border-radius: 0; }
.spot-media .frame.zoom.center img { margin-inline-start: -20%; }
.paper-stack { position: relative; display: flex; justify-content: center; padding: 28px 0; overflow-x: clip; }
.paper-stack::before {
  content: ""; position: absolute; inset: 0 8% ; border-radius: 28px;
  background: radial-gradient(closest-side, rgba(45, 212, 191, .25), transparent), linear-gradient(140deg, var(--brand-50), #eff6ff);
}
.paper {
  position: relative; width: min(78%, 420px); border-radius: 6px; background: #fff; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15, 23, 42, .06);
}
.paper.back { position: absolute; top: 48px; width: min(66%, 360px); opacity: .9; transform: rotate(-6deg) translateX(-34%); filter: saturate(.9); }
html[dir="rtl"] .paper.back { transform: rotate(6deg) translateX(34%); }
.paper img { width: 100%; height: auto; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-row span { padding: 5px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 500; }

/* ---------- Feature grid ---------- */
.grid-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gf { padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s; }
.gf:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.gf-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); margin-bottom: 16px; }
.gf-icon svg { width: 20px; height: 20px; }
.gf h4 { font-size: 1rem; }
.gf p { margin-top: 6px; color: var(--muted); font-size: .925rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.step h4 { font-size: 1.15rem; }
.step p { margin-top: 8px; color: var(--muted); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.plan.featured { background: linear-gradient(180deg, var(--brand-950), var(--brand-900)); border-color: var(--brand-900); color: #cbd5e1; box-shadow: var(--shadow-xl); }
.plan.featured h3, .plan.featured .price strong { color: #fff; }
.plan.featured .plan-desc, .plan.featured .price span { color: #a7c4c0; }
.plan.featured .plan-sub { color: var(--brand-200); }
.plan.featured .plan-list li::before { background-color: rgba(45, 212, 191, .15); border-color: rgba(45, 212, 191, .3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235eead4'%3E%3Cpath d='M8.3 13.3 4.9 9.9l-1.2 1.2 4.6 4.6 8-8-1.2-1.2z'/%3E%3C/svg%3E"); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.plan h3 { font-size: 1.15rem; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge-brand { background: var(--brand-400); color: var(--brand-950); }
.badge-amber { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.plan-desc { margin-top: 8px; font-size: .94rem; color: var(--muted); min-height: 3.4em; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 24px; }
.price strong { font-size: 3.25rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--muted); font-weight: 500; }
.plan-sub { margin-top: 8px; font-size: .9rem; font-weight: 600; color: var(--brand-700); min-height: 1.5em; }
.plan .btn { margin-top: 28px; }
.plan-list { display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .94rem; }
.plan.featured .plan-list { border-color: rgba(255, 255, 255, .12); }
.plan-list li { display: flex; gap: 10px; }
.plan-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1px solid var(--brand-100);
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230f766e'%3E%3Cpath d='M8.3 13.3 4.9 9.9l-1.2 1.2 4.6 4.6 8-8-1.2-1.2z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pricing-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 36px; color: var(--muted); font-size: .925rem; }
.pricing-foot span { display: inline-flex; align-items: center; gap: 8px; }
.pricing-foot svg { width: 18px; height: 18px; color: var(--brand-700); }
.pricing-foot a { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.notice { display: none; max-width: 780px; margin: 0 auto 36px; padding: 14px 18px; border-radius: 12px; border: 1px solid #fcd34d; background: #fffbeb; color: #78350f; }
.notice.show { display: block; }
.notice a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.table th:first-child, .table td:first-child { text-align: start; color: var(--ink); font-weight: 500; }
.table thead th { background: var(--bg-alt); color: var(--ink); font-weight: 700; font-size: .9rem; }
.table thead th.hl { color: var(--brand-700); }
.table td.hl { background: rgba(240, 253, 250, .6); }
.table tr:last-child td { border-bottom: 0; }
.yes, .no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.yes { background: var(--brand-50); color: var(--brand-700); }
.no { background: #f1f5f9; color: var(--faint); }
.yes svg, .no svg { width: 14px; height: 14px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-layout .section-head { margin: 0; text-align: start; }
.faq-layout .section-head .btn { margin-top: 24px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 72px 48px; text-align: center; color: #cbd5e1;
  background: radial-gradient(700px 300px at 50% 0%, rgba(45, 212, 191, .35), transparent 70%), linear-gradient(180deg, var(--brand-950), #021716);
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 760px; margin: 0 auto; }
.cta p { margin-top: 16px; font-size: 1.125rem; }
.cta .hero-ctas { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 36px; border-top: 1px solid var(--line); background: #fff; font-size: .925rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 320px; }
.footer-col h5 { margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
html[lang="ar"] .footer-col h5 { letter-spacing: 0; font-size: .9rem; }
.footer-col a { display: block; padding: 5px 0; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }
.footer-bottom p { max-width: 720px; }

/* ---------- Page hero (pricing, legal) ---------- */
.page-hero { position: relative; padding: 88px 0 24px; text-align: center; overflow: hidden; isolation: isolate; }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; top: -280px; left: 50%; width: 1000px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(45, 212, 191, .22), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; max-width: 840px; margin: 0 auto; }
html[lang="ar"] .page-hero h1 { letter-spacing: 0; }
.page-hero p { margin: 18px auto 0; max-width: 640px; font-size: 1.15rem; color: var(--muted); }

.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 32px; max-width: 980px; margin: 0 auto; }
.includes li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.includes svg { flex: none; width: 20px; height: 20px; color: var(--brand-700); margin-top: 2px; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 0 96px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal ul + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-inline-start: 22px; display: grid; gap: 8px; margin-top: 12px; }
.legal .updated { color: var(--muted); font-size: .925rem; text-align: center; }
[data-lang-block] { display: none; }
html[lang="fr"] [data-lang-block="fr"], html[lang="en"] [data-lang-block="en"], html[lang="ar"] [data-lang-block="ar"] { display: block; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .float-card.f1 { inset-inline-start: 12px; }
  .float-card.f2 { inset-inline-end: 12px; }
  .grid-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav, .header-actions .hide-md { display: none; }
  .menu-btn { display: inline-flex; }
  .section { padding: 88px 0; }
  .spot, .spot.reverse { grid-template-columns: 1fr; gap: 40px; }
  .spot.reverse .spot-media { order: 0; }
  .spotlights { gap: 88px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  .plan.featured { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout .section-head { text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .includes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .showcase { margin-top: 44px; }
  .float-card { display: none; }
  .browser-bar { height: 30px; }
  .browser-url { display: none; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-inline-start: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .fact { padding: 20px 10px; }
  .fact strong { font-size: 1.35rem; }
  .fact span { font-size: .82rem; }
  .paper.back { transform: rotate(-6deg) translateX(-22%); }
  html[dir="rtl"] .paper.back { transform: rotate(6deg) translateX(22%); }
  .grid-features { grid-template-columns: 1fr; }
  .cta { padding: 56px 22px; border-radius: 22px; }
  .includes { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .lang-switch button { min-width: 30px; padding: 4px 6px; }
}

/* =========================================================
   Homepage v2 (conversion): trust band, before/after, signature, Morocco, guarantee, sticky CTA
   ========================================================= */
.hero .pill { transition: border-color .15s, box-shadow .15s; }
.hero .pill:hover { border-color: var(--brand-200); box-shadow: var(--shadow); }

.trust-band { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 22px; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-item strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.trust-item small { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.ti-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700); }
.ti-icon svg { width: 20px; height: 20px; }

.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.pain { border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.pain p { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; }
.pain p span:first-child { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .pain p span:first-child { letter-spacing: 0; font-size: .85rem; }
.pain-bad { background: #fff7f7; color: #7f1d1d; }
.pain-bad span:first-child { color: #dc2626; }
.pain-bad span:last-child { text-decoration: line-through; text-decoration-color: rgba(220, 38, 38, .45); }
.pain-good { color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); }
.pain-good span:first-child { color: var(--brand-700); }

.eyebrow-new { padding: 4px 10px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.sign-frame { padding: 14px; }
.sign-frame img { width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(15, 23, 42, .08); background: #fff; }
.sign-badge {
  position: absolute; inset-inline-end: 22px; bottom: -16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow);
}
.sign-badge svg { width: 16px; height: 16px; color: var(--brand-400); }

.callout-stack { padding: 36px 0; }
.callout {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--brand-200); box-shadow: var(--shadow); font-size: .85rem; font-weight: 700; color: var(--brand-900); white-space: nowrap;
}
.callout::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px rgba(20, 184, 166, .18); }
.callout.c1 { bottom: 5%; inset-inline-start: 2%; }
.callout.c2 { top: 64%; inset-inline-end: 0; }
.callout.c3 { bottom: 20%; inset-inline-end: 4%; }

.grid-features.grid-3 { grid-template-columns: repeat(3, 1fr); }

.guarantee {
  display: flex; align-items: center; gap: 18px; max-width: 760px; margin: 32px auto 0; padding: 20px 24px;
  border-radius: var(--radius-lg); border: 1px solid var(--brand-200); background: linear-gradient(135deg, var(--brand-50), #f0f9ff);
}
.guarantee-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-700); color: #fff; }
.guarantee-icon svg { width: 26px; height: 26px; }
.guarantee h3 { font-size: 1.1rem; }
.guarantee p { margin-top: 4px; color: var(--text); font-size: .95rem; }

.cta .cta-micro { margin-top: 18px; font-size: .9rem; color: #94b8b3; }

.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 45; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .25);
  transform: translateY(100%); transition: transform .25s ease;
}
.sticky-cta strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.2; }
.sticky-cta small { display: block; color: var(--muted); font-size: .8rem; }
.sticky-cta .btn { flex: none; min-width: 120px; }
.sticky-cta.show { transform: none; }
/* Keep the footer readable above the bar; the help assistant bubble also moves up (assistant.js). */
body.has-bottom-bar .site-footer { padding-bottom: 96px; }

@media (max-width: 1100px) {
  .trust-band { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .grid-features.grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sticky-cta { display: flex; }
}
@media (max-width: 640px) {
  .trust-band { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .trust-item { padding: 16px 18px; }
  .pains { grid-template-columns: 1fr; }
  .grid-features.grid-3 { grid-template-columns: 1fr; }
  .callout { font-size: .75rem; padding: 6px 10px; }
  .guarantee { flex-direction: column; text-align: center; }
  .sign-badge { inset-inline-end: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}
