/* ═══════════════════════════════════════════════════════════════════════
   TWASOL — PUBLIC SITE (landing · pricing · faq · terms · privacy · refund)
   ───────────────────────────────────────────────────────────────────────
   The one stylesheet for every static marketing / legal page, AR + EN.
   It is the same design system as the dashboard (src/styles/tokens.css):
     • Environment   wallpaper + legibility wash (fixed, behind everything)
     • Liquid Glass  functional layer only — the floating navigation
                     capsule, the mobile menu sheet, the lead dialog
                     ([data-glass="float"], refraction via site.js)
     • Content       sheets, cards, tables, accordions — frosted content
                     material, never refractive, one blur per stack
   Geometry: sheet 28 → card 24 → tile 18 → field 14 → chip 10;
   every control (button, tab, chip, search) is a capsule, every
   icon-only control and avatar is a circle.
   The pages carry no inline <style> blocks — layout and paint live here.
═══════════════════════════════════════════════════════════════════════ */

/* ── Almarai (self-hosted, same files as the dashboard) ─────────────── */
/* 2026-11-12: drawn line icons instead of colour emoji on the public pages too —
   the same TwasolIcons font the dashboard uses; it only covers emoji code points. */
@font-face {
  font-family: "TwasolIcons";
  src: url("/fonts/TwasolIcons-v2.woff2") format("woff2");
  font-display: block;
  unicode-range: U+200D,U+2139,U+2190,U+2191,U+2192,U+2193,U+2197,U+21A9,U+21B3,U+21BB,U+21D2,U+2304,U+2318,U+2328,U+23CF,U+23F0,U+23F1,U+23F3,U+23F8,U+23F9,U+25A3,U+25B2,U+25B6,U+25BC,U+25BE,U+25C7,U+25C9,U+25CB,U+25CF,U+2605,U+2606,U+2610,U+2611,U+2640,U+2642,U+264A,U+2699,U+26A0,U+26A1,U+26AA,U+26D4,U+2702,U+2705,U+2709,U+270D,U+270F,U+2713,U+2714,U+2715,U+2716,U+2717,U+2726,U+2728,U+2744,U+274C,U+2764,U+2795,U+2B06,U+2B07,U+2B1B,U+2B1C,U+2B50,U+FE0F,U+1F30D,U+1F319,U+1F31F,U+1F331,U+1F337,U+1F373,U+1F381,U+1F389,U+1F39F,U+1F3A4,U+1F3A5,U+1F3A8,U+1F3A9,U+1F3AC,U+1F3AF,U+1F3C6,U+1F3E0,U+1F3EA,U+1F3EC,U+1F3F7,U+1F441,U+1F447,U+1F44B,U+1F451,U+1F464,U+1F465,U+1F468,U+1F48E,U+1F490,U+1F499,U+1F4A1,U+1F4A4,U+1F4AC,U+1F4B0,U+1F4B3,U+1F4BB,U+1F4BC,U+1F4BE,U+1F4C1,U+1F4C2,U+1F4C4,U+1F4C5,U+1F4C8,U+1F4CA,U+1F4CB,U+1F4CC,U+1F4CD,U+1F4CE,U+1F4D0,U+1F4D6,U+1F4DD,U+1F4DE,U+1F4E1,U+1F4E2,U+1F4E3,U+1F4E4,U+1F4E5,U+1F4E6,U+1F4E8,U+1F4EC,U+1F4ED,U+1F4F1,U+1F4F2,U+1F4F7,U+1F4F8,U+1F500,U+1F501,U+1F504,U+1F50D,U+1F510,U+1F511,U+1F512,U+1F514,U+1F517,U+1F51C,U+1F525,U+1F527,U+1F534,U+1F550,U+1F553,U+1F5A5,U+1F5BC,U+1F5C2,U+1F5D1,U+1F5D3,U+1F5FA,U+1F60A,U+1F60D,U+1F610,U+1F61F,U+1F621,U+1F624,U+1F634,U+1F645,U+1F648,U+1F64B,U+1F64F,U+1F680,U+1F697,U+1F69A,U+1F6A7,U+1F6AB,U+1F6CD,U+1F6D1,U+1F6D2,U+1F6E0,U+1F6E1,U+1F7E1,U+1F7E2,U+1F7E3,U+1F916,U+1F91D,U+1F9CD,U+1F9D1,U+1F9DE,U+1F9E0,U+1F9E9,U+1F9EA,U+1F9ED,U+1F9EE,U+1F9FE,U+1FA7A,U+1FA84,U+1FA99,U+1FAB6,U+1FABD,U+23FA,U+2708,U+1F310,U+1F354,U+1F35F,U+1F37D,U+1F392,U+1F393,U+1F399,U+1F3AB,U+1F3CB,U+1F3E5,U+1F3E8,U+1F44D,U+1F4AA,U+1F4F5,U+1F604,U+1F6CF,U+1F914,U+1F964,U+1F9B7,U+1F9D8,U+1F1E6-1F1FF;
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/fonts/almarai-arabic-300-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/fonts/almarai-latin-300-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/almarai-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/almarai-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/almarai-arabic-700-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/almarai-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/fonts/almarai-arabic-800-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/fonts/almarai-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --ink-1: oklch(0.235 0.022 252);
  --ink-2: oklch(0.385 0.022 252);
  --ink-3: oklch(0.48 0.02 252);
  --ink-4: oklch(0.6 0.016 252);
  --on-accent: #fff;

  --accent-rgb: 22 104 227;
  --accent: rgb(var(--accent-rgb));
  --accent-hover: rgb(17 91 204);
  --accent-press: rgb(14 80 182);
  --accent-ink: rgb(8 64 160);
  --accent-soft: rgb(var(--accent-rgb) / 0.1);
  --success-rgb: 22 142 92;   --success: rgb(var(--success-rgb)); --success-ink: rgb(4 82 48);
  --danger-rgb: 214 48 49;    --danger: rgb(var(--danger-rgb));   --danger-ink: rgb(150 18 24);
  --warning-rgb: 214 128 6;   --warning: rgb(var(--warning-rgb)); --warning-ink: rgb(112 56 0);
  --info-rgb: 8 132 168;      --info: rgb(var(--info-rgb));       --info-ink: rgb(2 80 104);
  --violet-rgb: 112 84 222;   --violet-ink: rgb(92 64 196);

  --fill-rgb: 92 104 124;
  --fill-1: rgb(var(--fill-rgb) / 0.06);
  --fill-2: rgb(var(--fill-rgb) / 0.095);
  --fill-3: rgb(var(--fill-rgb) / 0.16);
  --separator: rgb(40 52 72 / 0.12);
  --separator-strong: rgb(40 52 72 / 0.2);
  --scrim: rgb(12 20 34 / 0.42);

  /* content = translucent glass layers (see dashboard tokens.css) */
  --canvas: rgb(255 255 255 / 0.04);
  --card: rgb(255 255 255 / 0.16);
  --card-solid: rgb(255 255 255 / 0.16);
  --surface-solid: rgb(250 251 253);          /* accessibility fallback only */
  /* optical layers (same as the dashboard tokens.css):
     body = gradient overlay, densest at the top where titles sit;
     streak = one diagonal specular band; ring = luminous edge */
  --glass-body: linear-gradient(180deg, rgb(255 255 255 / 0.36) 0%, rgb(255 255 255 / 0.14) 22%, rgb(255 255 255 / 0.04) 60%, rgb(255 255 255 / 0.12) 100%);
  --glass-streak: linear-gradient(118deg, transparent 16%, rgb(255 255 255 / 0.22) 28%, transparent 40%);
  --glass-sheen: var(--glass-streak), var(--glass-body), var(--glass-hue);
  --glass-border: rgb(255 255 255 / 0.55);
  --glass-ring: linear-gradient(165deg, rgb(255 255 255 / 1) 0%, rgb(255 255 255 / 0.55) 16%, rgb(255 255 255 / 0.14) 50%, rgb(255 255 255 / 0.22) 78%, rgb(255 255 255 / 0.7) 100%);
  --glass-rims: inset 0 1.5px 0 rgb(255 255 255 / 0.9), inset 0 -1px 0 rgb(255 255 255 / 0.36), inset 0 0 0 1px rgb(255 255 255 / 0.18), inset 0 0 16px 1px rgb(255 255 255 / 0.2), inset 0 -20px 30px -24px rgb(30 44 92 / 0.24);
  --glass-rims-soft: inset 0 1px 0 rgb(255 255 255 / 0.7), inset 0 0 12px rgb(255 255 255 / 0.1), inset 0 -10px 18px -14px rgb(30 44 92 / 0.16);
  --glass-drop: 0 1px 1px rgb(30 44 92 / 0.06), 0 14px 34px -14px rgb(30 44 92 / 0.34);
  /* backdrop tone map for legibility; the lens (--lg-lens) is per element, so
     card rules reference it directly — a token here would resolve it on :root */
  --glass-tone: saturate(160%) brightness(1.2) contrast(0.76);
  --glass-hue: linear-gradient(135deg, rgb(214 230 255 / 0.16) 0%, rgb(255 255 255 / 0) 48%, rgb(246 226 255 / 0.12) 100%);
  --glass-heavy: blur(30px) saturate(180%);
  --blur: 30px;

  --glass-float: rgb(252 253 255 / 0.5);
  --glass-rim: rgb(255 255 255 / 0.92);
  --glass-blur: 26px;

  --shadow-1: 0 1px 2px rgb(18 30 52 / 0.08), 0 1px 1px rgb(18 30 52 / 0.04);
  --shadow-2: 0 2px 6px rgb(18 30 52 / 0.06), 0 10px 28px -12px rgb(18 30 52 / 0.18);
  --shadow-3: 0 6px 16px rgb(18 30 52 / 0.08), 0 24px 52px -20px rgb(18 30 52 / 0.3);

  --r-sheet: 28px; --r-card: 24px; --r-tile: 18px; --r-field: 14px; --r-chip: 10px;

  --nav-h: 60px;
  --nav-top: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --page-max: 1200px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;

  --font: 'TwasolIcons', 'Almarai', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #9fb2e4; scroll-padding-top: calc(var(--nav-top) + var(--nav-h) + 16px); }
body {
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-1);
  background: transparent;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
ul, ol { padding-inline-start: 1.4em; }
b, strong { font-weight: 700; color: var(--ink-1); }
::selection { background: rgb(var(--accent-rgb) / 0.2); }
.hidden { display: none !important; }
.opacity-40 { opacity: 0.4; }
.pointer-events-none { pointer-events: none; }

/* ── Environment ───────────────────────────────────────────────────── */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
body::before { background: #9fb2e4 url("/liquid-light-v2.jpg") center / cover no-repeat; }
body::after {
  z-index: -1;
  /* legibility wash: content sits on the environment, so the wallpaper is
     softened enough for ink text to clear 4.5:1 everywhere it can land */
  background:
    radial-gradient(120% 70% at 50% 0%, rgb(248 250 253 / 0.42), rgb(248 250 253 / 0.1) 70%),
    linear-gradient(180deg, rgb(244 248 252 / 0.28), rgb(238 243 249 / 0.4));
}

/* ── Interaction primitives ───────────────────────────────────────── */
:is(a, button, summary, input, textarea, select):focus-visible {
  outline: 2.5px solid rgb(var(--accent-rgb) / 0.9);
  outline-offset: 3px;
}
:is(a, button, summary) { -webkit-tap-highlight-color: transparent; }
:is(.btn-primary, .btn-secondary, .btn-whatsapp, .btn-nav, .btn-nav-secondary, .pricing-cta, .grad-btn, .tab-btn, .cx-tab, .nav-burger, .footer-social a, .back-link, .lang-link, .lang-switch) {
  transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-base), transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
:is(.btn-primary, .btn-secondary, .btn-whatsapp, .btn-nav, .btn-nav-secondary, .pricing-cta, .grad-btn, .tab-btn, .cx-tab, .nav-burger, .footer-social a, .back-link, .lang-link, .lang-switch, .acc-head, .faq-item summary):active { transform: scale(0.97); }
:is(button, a)[disabled], button:disabled { opacity: 0.5; pointer-events: none; }

/* ── Liquid Glass (functional layer) ──────────────────────────────── */
:where([data-glass="float"]) { position: relative; }
[data-glass="float"] {
  isolation: isolate;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.42), rgb(255 255 255 / 0.12)), var(--glass-float);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(185%) brightness(1.04);
  backdrop-filter: blur(var(--glass-blur)) saturate(185%) brightness(1.04);
  box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px rgb(255 255 255 / 0.4), 0 0 0 1px rgb(24 38 60 / 0.06), var(--shadow-3);
}
html[data-lens="on"] [data-glass="float"][data-lens-id] {
  -webkit-backdrop-filter: var(--lg-lens) blur(var(--glass-blur)) saturate(185%) brightness(1.04);
  backdrop-filter: var(--lg-lens) blur(var(--glass-blur)) saturate(185%) brightness(1.04);
}
/* pointer illumination — a specular pool that follows the cursor */
[data-glass="float"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--lg-px, 50%) var(--lg-py, -40%), rgb(255 255 255 / 0.55), transparent 62%);
  opacity: var(--lg-hover, 0);
  transition: opacity 260ms var(--ease-out);
}
/* specular rim, brighter on the top edge */
[data-glass="float"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.25) 45%, rgb(255 255 255 / 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ── Navigation capsule ───────────────────────────────────────────── */
body > nav {
  position: fixed;
  z-index: 100;
  top: calc(var(--nav-top) + env(safe-area-inset-top, 0px));
  inset-inline: max(var(--gutter), calc((100vw - var(--page-max) - 32px) / 2));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: 10px;
  border-radius: 999px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-inline: 6px 10px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink-1);
  white-space: nowrap;
}
.nav-logo-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-1); }
.nav-logo-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 15px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.18);
}
.nav-logo-dot.sm { width: 26px; height: 26px; font-size: 13px; }
.nav-links {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.nav-links a:hover { background: rgb(255 255 255 / 0.22); color: var(--ink-1); }
.nav-links a.active, .nav-links a[aria-current="page"] { background: rgb(255 255 255 / 0.38); color: var(--ink-1); box-shadow: var(--shadow-1); }
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* capsule buttons */
.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .pricing-cta, .btn-nav-secondary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}
.btn-nav { min-height: 42px; padding-inline: 20px; font-size: 0.875rem; }
.btn-nav-secondary { min-height: 42px; padding-inline: 16px; font-size: 0.875rem; font-weight: 700; color: var(--ink-1); }
.btn-primary, .btn-whatsapp, .btn-secondary { min-height: 52px; padding-inline: 28px; font-size: 0.98rem; }
.btn-lg { min-height: 56px; padding-inline: 36px; font-size: 1.02rem; }
.grad-btn { min-height: 46px; padding-inline: 24px; font-size: 0.9rem; }

.btn-nav, .btn-primary, .grad-btn {
  color: var(--on-accent);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0) 55%), var(--accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 1px 2px rgb(var(--accent-rgb) / 0.3), 0 8px 22px -10px rgb(var(--accent-rgb) / 0.75);
}
.btn-nav:hover, .btn-primary:hover, .grad-btn:hover { background-color: var(--accent-hover); background-image: linear-gradient(180deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0) 55%); }
.btn-nav:active, .btn-primary:active, .grad-btn:active { background-color: var(--accent-press); }
.btn-whatsapp {
  color: #fff;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0) 55%), var(--success);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 8px 22px -10px rgb(var(--success-rgb) / 0.75);
}
.btn-whatsapp:hover { background-color: rgb(16 122 78); }
.btn-whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-secondary, .btn-nav-secondary {
  color: var(--ink-1);
  background: rgb(255 255 255 / 0.3);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 1px var(--separator), var(--shadow-1);
}
body > nav .btn-nav-secondary { background: transparent; box-shadow: none; }
.btn-secondary:hover, .btn-nav-secondary:hover { background: rgb(255 255 255 / 0.38); }
body > nav .btn-nav-secondary:hover { background: rgb(255 255 255 / 0.3); }

/* legal pages: back + language links in the capsule */
body > nav .back-link, body > nav .lang-link, body > nav .lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
body > nav .back-link { margin-inline-start: auto; }
body > nav :is(.back-link, .lang-link, .lang-switch):hover { background: rgb(255 255 255 / 0.3); color: var(--ink-1); text-decoration: none; }
body > nav :is(.lang-link, .lang-switch) { background: rgb(255 255 255 / 0.22); box-shadow: inset 0 0 0 1px var(--separator); }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.nav-right .back-link { margin-inline-start: 0; }

/* burger — circle */
.nav-burger {
  display: none;
  margin-inline-start: auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgb(255 255 255 / 0.3);
  box-shadow: inset 0 0 0 1px var(--separator);
}
.nav-burger:hover { background: rgb(255 255 255 / 0.38); }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink-1);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), top var(--dur-base) var(--ease-out), background-color var(--dur-fast);
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { top: 0; transform: rotate(45deg); }
.nav-burger.open span::after { top: 0; transform: rotate(-45deg); }

/* mobile menu — float glass sheet under the capsule */
.nav-mobile-panel {
  display: none;
  position: fixed;
  z-index: 99;
  top: calc(var(--nav-top) + var(--nav-h) + 8px + env(safe-area-inset-top, 0px));
  inset-inline: var(--gutter);
  max-height: calc(100dvh - var(--nav-top) - var(--nav-h) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border-radius: var(--r-card);
  flex-direction: column;
  gap: 2px;
  transform-origin: top center;
}
.nav-mobile-panel.open { display: flex; animation: sheet-in 260ms var(--ease-spring); }
.nav-mobile-panel a:not(.btn-nav):not(.btn-nav-secondary) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 16px;
  border-radius: var(--r-tile);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-1);
}
.nav-mobile-panel a:not(.btn-nav):not(.btn-nav-secondary):hover { background: rgb(255 255 255 / 0.3); }
.nav-mobile-panel a.active { background: rgb(255 255 255 / 0.38); box-shadow: var(--shadow-1); }
.nav-mobile-panel :is(.btn-nav, .btn-nav-secondary) { min-height: 50px; margin-top: 6px; }
.nav-mobile-panel .btn-nav-secondary { background: rgb(255 255 255 / 0.3); box-shadow: inset 0 0 0 1px var(--separator); margin-top: 10px; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

.skip-link {
  position: fixed; z-index: 1000;
  top: -100px; inset-inline-start: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 16px; }
#bgWave { display: none; }

/* ── Page structure ───────────────────────────────────────────────── */
section { position: relative; padding: 96px var(--gutter); max-width: calc(var(--page-max) + 2 * var(--gutter)); margin-inline: auto; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding-inline: 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 800;
}
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.35; color: var(--ink-1); margin-bottom: 14px; text-wrap: balance; }
.section-sub { font-size: 1.05rem; color: var(--ink-2); max-width: 600px; line-height: 1.85; text-wrap: pretty; }
.accent, .grad-text { color: var(--accent-ink); }
.center { text-align: center; }
.center .section-sub, .section-sub.center { margin-inline: auto; }

/* content sheet — a full band of content material on the environment */
.band {
  max-width: calc(var(--page-max) + 2 * var(--gutter) + 48px);
  margin: 24px auto;
  padding: 88px var(--gutter);
  border-radius: var(--r-sheet);
  background: var(--canvas);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8), 0 0 0 1px rgb(255 255 255 / 0.5), var(--shadow-2);
}
.band-inner { max-width: var(--page-max); margin-inline: auto; }

/* content cards */
:is(.feature-card, .integration-card, .testimonial-card, .pricing-card, .pricing-addon-card, .faq-item, .acc-item, .faq-cta, .custom-step, .intro, .toc) {
  background: var(--card);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.55), var(--shadow-2);
}
/* one blur per stack — cards on a band do not re-sample */
.band :is(.feature-card, .integration-card, .testimonial-card, .custom-step, .pricing-card, .faq-item) {
  background: var(--card-solid);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 0 0 1px var(--separator), var(--shadow-1);
}

/* reveal on scroll (driven by the page script) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ── Landing: hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(880px, 100dvh);
  padding: calc(var(--nav-top) + var(--nav-h) + 56px) var(--gutter) 64px;
}
.glow-1, .glow-2 { display: none; }
.hero-inner {
  width: 100%;
  max-width: var(--page-max);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-badge, .pricing-hero-badge, .eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding-inline: 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-1);
  background: rgb(255 255 255 / 0.3);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--separator), var(--shadow-1);
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgb(var(--success-rgb) / 0.18); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgb(var(--success-rgb) / 0.05); } }
.hero-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.3; color: var(--ink-1); margin-bottom: 20px; text-wrap: balance; }
.hero-sub { font-size: 1.12rem; color: var(--ink-1); line-height: 1.9; max-width: 520px; margin-bottom: 34px; text-wrap: pretty; }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: inline-flex;
  gap: 4px;
  margin-top: 40px;
  padding: 6px;
  border-radius: var(--r-card);
  background: rgb(255 255 255 / 0.3);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(255 255 255 / 0.6), var(--shadow-1);
}
.stat { display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 10px 16px; border-radius: var(--r-tile); }
.stat + .stat { box-shadow: -1px 0 0 var(--separator); }
.stat-num { font-family: 'Almarai', system-ui, sans-serif; font-size: 1.45rem; font-weight: 800; color: var(--ink-1); line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.76rem; font-weight: 700; color: var(--ink-3); }

/* chat demo (content: a conversation preview) */
.chat-demo, .cx-chat {
  border-radius: var(--r-card);
  overflow: hidden;
  background: rgb(255 255 255 / 0.38);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(255 255 255 / 0.6), var(--shadow-3);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgb(255 255 255 / 0.3);
  box-shadow: 0 1px 0 var(--separator);
}
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.18); flex-shrink: 0; }
.chat-name { font-size: 0.92rem; font-weight: 800; color: var(--ink-1); line-height: 1.4; }
.chat-status { font-size: 0.74rem; font-weight: 700; color: var(--success-ink); line-height: 1.4; }
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  min-height: 340px;
  background:
    radial-gradient(circle at 1px 1px, rgb(var(--fill-rgb) / 0.08) 1px, transparent 0) 0 0 / 18px 18px,
    rgb(246 248 251 / 0.6);
}
.msg {
  position: relative;
  max-width: 82%;
  padding: 9px 14px 7px;
  border-radius: 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-1);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 360ms var(--ease-out), transform 420ms var(--ease-spring);
}
.msg.show { opacity: 1; transform: none; }
/* customer → end side, store assistant → start side; tails follow direction */
.msg-in { align-self: flex-end; background: rgb(255 255 255 / 0.36); box-shadow: 0 0 0 1px var(--separator), var(--shadow-1); border-end-end-radius: 6px; }
.msg-out { align-self: flex-start; background: rgb(var(--accent-rgb) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.14); border-end-start-radius: 6px; }
.msg b { color: var(--accent-ink); }
.msg-time { margin-top: 2px; font-size: 0.68rem; font-weight: 700; color: var(--ink-3); text-align: end; font-variant-numeric: tabular-nums; }
.msg-out .msg-time { color: var(--accent-ink); opacity: 0.75; }
.typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 20px;
  border-end-start-radius: 6px;
  background: rgb(var(--accent-rgb) / 0.1);
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}
.typing.show { opacity: 1; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.55; animation: bounce 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.45; } 40% { transform: translateY(-4px); opacity: 1; } }

/* platforms bar */
.platforms-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.3);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(255 255 255 / 0.6), var(--shadow-1);
}
[dir="rtl"] .platforms-bar { padding: 10px 18px 10px 10px; }
.platform-label { font-size: 0.82rem; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.platform-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.36);
  box-shadow: 0 0 0 1px var(--separator);
  font-size: 0.84rem;
  font-weight: 800;
}
.platform-badge img { height: 16px; width: auto; }
.platform-badge svg { width: 18px; height: 18px; }

/* features */
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.feature-card { padding: 26px; border-radius: var(--r-card); min-width: 0; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.feature-card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(255 255 255 / 0.6), var(--shadow-3); }
.feature-icon { width: 52px; height: 52px; border-radius: var(--r-tile); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.feature-icon.violet  { background: rgb(var(--violet-rgb) / 0.12); box-shadow: inset 0 0 0 1px rgb(var(--violet-rgb) / 0.16); }
.feature-icon.emerald { background: rgb(var(--success-rgb) / 0.12); box-shadow: inset 0 0 0 1px rgb(var(--success-rgb) / 0.16); }
.feature-icon.amber   { background: rgb(var(--warning-rgb) / 0.13); box-shadow: inset 0 0 0 1px rgb(var(--warning-rgb) / 0.16); }
.feature-icon.blue    { background: rgb(var(--accent-rgb) / 0.11); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.16); }
.feature-icon.rose    { background: rgb(var(--danger-rgb) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--danger-rgb) / 0.14); }
.feature-icon.cyan    { background: rgb(var(--info-rgb) / 0.12); box-shadow: inset 0 0 0 1px rgb(var(--info-rgb) / 0.16); }
.feature-title { font-size: 1.06rem; font-weight: 800; line-height: 1.6; color: var(--ink-1); margin-bottom: 6px; }
.feature-desc { font-size: 0.93rem; color: var(--ink-2); line-height: 1.85; }

/* how it works (band) */
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.how-step { padding: 24px 18px; text-align: center; min-width: 0; border-radius: var(--r-card); background: var(--card-solid); box-shadow: 0 0 0 1px var(--separator), var(--shadow-1); }
.how-num { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.16); }
.how-title { font-size: 1.02rem; font-weight: 800; margin-bottom: 6px; }
.how-desc { font-size: 0.9rem; color: var(--ink-2); line-height: 1.8; }

/* integrations */
.integrations-section { text-align: center; padding: 96px var(--gutter); }
.integrations-section .section-sub { margin-inline: auto; }
.integration-cards { display: flex; justify-content: center; gap: 16px; margin-top: 44px; flex-wrap: wrap; }
.integration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 168px;
  min-height: 140px;
  padding: 24px 20px;
  border-radius: var(--r-card);
  transition: transform var(--dur-base) var(--ease-out);
}
.integration-card:hover { transform: translateY(-3px); }
.integration-card img { height: 34px; width: auto; object-fit: contain; }
.integration-card span { font-size: 0.88rem; font-weight: 800; color: var(--ink-2); }
.integration-glyph { font-size: 30px; line-height: 1; }

/* custom solutions (band) */
.custom-inner { max-width: var(--page-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.custom-steps { display: flex; flex-direction: column; gap: 10px; margin: 28px 0 32px; }
.custom-step { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: var(--r-tile); }
.custom-step-num { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 0.88rem; font-weight: 800; }
.custom-step-text b { display: block; font-size: 0.98rem; font-weight: 800; line-height: 1.6; }
.custom-step-text span { font-size: 0.88rem; color: var(--ink-2); line-height: 1.75; }

/* industry switcher: wrap-friendly capsule chips (no horizontal scroll) */
.cx-chat-wrap { min-width: 0; }
.cx-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 4px; padding: 6px; margin-bottom: 14px; border-radius: var(--r-card); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--separator); }
.cx-tab {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink-2);
  white-space: nowrap;
}
.cx-tab:hover { background: rgb(255 255 255 / 0.3); color: var(--ink-1); }
.cx-tab.active { background: rgb(255 255 255 / 0.36); color: var(--ink-1); box-shadow: 0 0 0 1px var(--separator), var(--shadow-1); }
.cx-tab .cx-progress { position: absolute; inset-block: 0; inset-inline-start: 0; z-index: -1; width: 0; background: rgb(var(--accent-rgb) / 0.12); }
.cx-tab.active .cx-progress { animation: cxProgress 11s linear forwards; }
.cx-tabs.manual .cx-tab.active .cx-progress { animation: none; width: 0; }
@keyframes cxProgress { to { width: 100%; } }
.cx-chat .chat-messages { min-height: 340px; }
.cx-chat.switching { animation: cxSwap 0.45s var(--ease-out); }
@keyframes cxSwap { 45% { opacity: 0; transform: translateY(8px) scale(0.99); } 55% { opacity: 0; transform: translateY(-8px) scale(0.99); } }
.cx-caps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; justify-content: center; }
.cx-cap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding-inline: 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.3);
  box-shadow: inset 0 0 0 1px var(--separator);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-3);
  transition: background-color 400ms, color 400ms, box-shadow 400ms;
}
.cx-cap::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fill-3); transition: background-color 400ms, box-shadow 400ms; }
.cx-cap.lit { background: rgb(var(--success-rgb) / 0.1); color: var(--success-ink); box-shadow: inset 0 0 0 1px rgb(var(--success-rgb) / 0.22); }
.cx-cap.lit::before { background: var(--success); box-shadow: 0 0 0 3px rgb(var(--success-rgb) / 0.18); }

/* testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.testimonial-card { padding: 26px; border-radius: var(--r-card); display: flex; flex-direction: column; min-width: 0; }
.testimonial-stars { color: var(--warning); font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-text { flex: 1; font-size: 0.95rem; color: var(--ink-2); line-height: 1.9; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; box-shadow: 0 -1px 0 var(--separator); }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 1rem; font-weight: 800; color: #fff; background: var(--accent); }
.testimonial-avatar.tone-success { background: var(--success); }
.testimonial-avatar.tone-warning { background: var(--warning-ink); }
.testimonial-name { font-size: 0.92rem; font-weight: 800; line-height: 1.5; }
.testimonial-role { font-size: 0.8rem; color: var(--ink-3); line-height: 1.5; }

/* final CTA (band) */
.cta-section { text-align: center; }
.cta-box { max-width: 720px; margin-inline: auto; }
.cta-title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.4; margin-bottom: 14px; text-wrap: balance; }
.cta-sub { font-size: 1.08rem; color: var(--ink-2); line-height: 1.85; margin-bottom: 32px; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── Pricing ─────────────────────────────────────────────────────── */
.pricing-hero { text-align: center; padding: calc(var(--nav-top) + var(--nav-h) + 72px) var(--gutter) 24px; }
.pricing-hero-title { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.3; margin-bottom: 16px; text-wrap: balance; }
.pricing-hero-sub { font-size: 1.1rem; color: var(--ink-1); max-width: 640px; margin-inline: auto; line-height: 1.9; }
.pricing-section { padding-top: 40px; }
.pricing-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 64px 0; color: var(--ink-2); font-weight: 700; font-size: 0.95rem; }
.pricing-loading a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.pricing-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgb(var(--accent-rgb) / 0.2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; text-align: start; align-items: stretch; }
.pricing-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px 22px 22px; border-radius: var(--r-card); min-width: 0; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card.popular { background: rgb(255 255 255 / 0.36); box-shadow: 0 0 0 2px var(--accent), 0 18px 40px -18px rgb(var(--accent-rgb) / 0.55); }
.pricing-badge { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 800; white-space: nowrap; box-shadow: var(--shadow-1); }
[dir="rtl"] .pricing-badge { transform: translateX(50%); }
.pricing-name { font-size: 1.12rem; font-weight: 800; line-height: 1.5; }
.pricing-name span { display: block; font-size: 0.78rem; font-weight: 700; color: var(--ink-3); margin-top: 2px; }
.pricing-price { font-size: 2rem; font-weight: 800; color: var(--ink-1); line-height: 1.3; font-variant-numeric: tabular-nums; }
.pricing-price small { font-size: 0.8rem; font-weight: 700; color: var(--ink-3); }
.pricing-price-text { font-size: 1.08rem; }
.pricing-body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; box-shadow: 0 -1px 0 var(--separator); }
.pricing-group { font-size: 0.76rem; font-weight: 800; color: var(--ink-1); margin-bottom: 8px; }
.pricing-features { display: flex; flex-direction: column; gap: 9px; list-style: none; padding: 0; }
.pricing-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.86rem; color: var(--ink-2); line-height: 1.65; }
.pricing-features li b { color: var(--success-ink); flex-shrink: 0; }
.pricing-features-extra { display: none; margin-top: 9px; }
.pricing-card.expanded .pricing-features-extra { display: flex; }
.pricing-toggle { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; min-height: 32px; margin-top: 10px; padding-inline: 12px; border-radius: 999px; background: var(--fill-1); color: var(--accent-ink); font-size: 0.8rem; font-weight: 800; }
.pricing-toggle:hover { background: var(--accent-soft); }
.pricing-toggle .arrow { transition: transform var(--dur-base) var(--ease-out); }
.pricing-card.expanded .pricing-toggle .arrow { transform: rotate(180deg); }
.pricing-cta { min-height: 46px; padding-inline: 18px; font-size: 0.9rem; color: var(--accent-ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.18); }
.pricing-cta:hover { background: rgb(var(--accent-rgb) / 0.16); }
.pricing-cta.sm { min-height: 36px; padding-inline: 14px; font-size: 0.82rem; }
.pricing-note { margin-top: 28px; font-size: 0.88rem; color: var(--ink-2); text-align: center; }
.pricing-compare-section { padding-top: 24px; }
.pricing-compare-wrap { margin-top: 28px; overflow-x: auto; border-radius: var(--r-card); background: var(--card-solid); box-shadow: 0 0 0 1px var(--separator), var(--shadow-2); -webkit-overflow-scrolling: touch; }
.pricing-compare-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.88rem; }
.pricing-compare-table :is(th, td) { padding: 13px 16px; text-align: center; line-height: 1.6; }
.pricing-compare-table th { position: sticky; top: 0; background: rgb(255 255 255 / 0.4); font-size: 0.8rem; font-weight: 800; color: var(--ink-2); }
.pricing-compare-table :is(th, td):first-child { text-align: start; color: var(--ink-1); font-weight: 700; }
.pricing-compare-table tr.pricing-cat-row td { background: var(--fill-1); color: var(--accent-ink); font-size: 0.78rem; font-weight: 800; text-align: start; }
.pricing-compare-table tbody tr:not(.pricing-cat-row) { box-shadow: inset 0 1px 0 var(--separator); }
.pricing-compare-table tbody tr:not(.pricing-cat-row):hover { background: rgb(var(--accent-rgb) / 0.03); }
.pricing-compare-table td.yes { color: var(--success-ink); font-weight: 800; }
.pricing-compare-table td.no { color: var(--ink-4); }
.pricing-addons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; text-align: start; }
.pricing-addon-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-tile); }
.addon-title { font-size: 0.95rem; font-weight: 800; }
.addon-meta { font-size: 0.8rem; color: var(--ink-3); }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.addon-price { font-weight: 800; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.addon-price small { color: var(--ink-3); font-weight: 700; }

/* accordions (pricing FAQ + FAQ page) */
.faq-section { padding-top: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; }
.faq-item { border-radius: var(--r-tile); overflow: hidden; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 60px;
  padding: 14px 20px;
  list-style: none;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--fill-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23125cce' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: rgb(255 255 255 / 0.22); }
.faq-item[open] summary { box-shadow: inset 0 -1px 0 var(--separator); }
.faq-item p { padding: 14px 20px 18px; font-size: 0.93rem; color: var(--ink-2); line-height: 1.9; }

/* ── FAQ page ─────────────────────────────────────────────────────── */
.page { position: relative; max-width: 800px; margin-inline: auto; padding: calc(var(--nav-top) + var(--nav-h) + 56px) var(--gutter) 96px; }
.page > section { padding: 0; max-width: none; }
.page-head { text-align: center; margin-bottom: 40px; }
.page-title { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; line-height: 1.35; margin-bottom: 14px; text-wrap: balance; }
.page-sub { font-size: 1.08rem; color: var(--ink-1); max-width: 560px; margin: 0 auto 30px; }
.search-field { position: relative; max-width: 560px; margin-inline: auto; }
.search-icon { position: absolute; inset-inline-start: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-input {
  width: 100%;
  min-height: 56px;
  padding-inline: 52px 20px;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-1);
  background: rgb(255 255 255 / 0.38);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--separator), var(--shadow-2);
  transition: box-shadow var(--dur-base);
}
.search-input::placeholder { color: var(--ink-4); }
.search-input:focus { outline: none; box-shadow: inset 0 1px 0 #fff, 0 0 0 2px rgb(var(--accent-rgb) / 0.7), 0 0 0 6px rgb(var(--accent-rgb) / 0.12), var(--shadow-2); }
.seg-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 5px; border-radius: 999px; background: rgb(255 255 255 / 0.3); box-shadow: inset 0 0 0 1px var(--separator), var(--shadow-1); transition: opacity var(--dur-base); }
.tab-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding-inline: 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.tab-btn:hover { background: rgb(255 255 255 / 0.3); color: var(--ink-1); }
.tab-btn.active { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgb(var(--accent-rgb) / 0.8); }
.search-banner { margin-bottom: 14px; font-size: 0.9rem; font-weight: 700; color: var(--ink-2); text-align: center; }
.acc-list { display: flex; flex-direction: column; gap: 10px; }
.acc-item { border-radius: var(--r-tile); overflow: hidden; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 14px 20px; text-align: start; }
.acc-head:hover { background: rgb(255 255 255 / 0.22); }
.acc-q { font-size: 1rem; font-weight: 800; line-height: 1.6; color: var(--ink-1); }
.acc-chevron { width: 28px; height: 28px; padding: 6px; flex-shrink: 0; border-radius: 50%; background: var(--fill-1); color: var(--accent-ink); transition: transform var(--dur-base) var(--ease-out); }
.acc-item.open .acc-chevron { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; padding-inline: 20px; transition: max-height 340ms var(--ease-out); }
.acc-item.open .acc-body { max-height: 1600px; }
.acc-a { font-size: 0.95rem; color: var(--ink-2); line-height: 1.95; padding-bottom: 14px; }
ul.acc-a { display: flex; flex-direction: column; gap: 6px; }
.acc-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 18px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding-inline: 10px; border-radius: 999px; background: var(--fill-1); color: var(--ink-3); font-size: 0.72rem; font-weight: 700; }
.faq-cta { text-align: center; padding: 26px 22px; border-radius: var(--r-tile); }
.faq-cta-text { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 14px; }
.empty-state { text-align: center; padding: 56px 0; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: rgb(255 255 255 / 0.3); box-shadow: 0 0 0 1px var(--separator); }
.empty-text { font-size: 1rem; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; }
.text-link { color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ── Legal pages (terms · privacy · refund) ───────────────────────── */
.wrap {
  position: relative;
  max-width: 880px;
  margin: calc(var(--nav-top) + var(--nav-h) + 28px) auto 48px;
  padding: 48px clamp(20px, 5vw, 56px) 56px;
  border-radius: var(--r-sheet);
  background: var(--canvas);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.85), 0 0 0 1px rgb(255 255 255 / 0.5), var(--shadow-2);
  line-height: 1.95;
}
.wrap h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; text-align: center; line-height: 1.4; margin-bottom: 6px; }
.wrap .updated { text-align: center; font-size: 0.88rem; color: var(--ink-3); margin-bottom: 8px; }
.wrap :is(.intro, .toc) { margin: 28px 0 40px; padding: 22px 26px; border-radius: var(--r-card); background: var(--card-solid); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1px var(--separator), var(--shadow-1); color: var(--ink-2); }
.wrap .toc h3 { font-size: 1rem; font-weight: 800; color: var(--ink-1); margin-bottom: 10px; }
.wrap .toc ol { padding-inline-start: 22px; }
.wrap .toc li { font-size: 0.92rem; margin-bottom: 4px; }
.wrap .toc a { color: var(--ink-2); }
.wrap .toc a:hover { color: var(--accent-ink); }
.wrap section { padding: 0; margin: 0 0 36px; max-width: none; }
.wrap h2 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 800; color: var(--ink-1); line-height: 1.5; margin-bottom: 14px; }
.wrap .num { display: inline-grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.86rem; font-weight: 800; }
.wrap :is(p, li) { font-size: 0.98rem; color: var(--ink-2); margin-bottom: 10px; }
.wrap ul, .wrap ol.terms { padding-inline-start: 22px; margin-bottom: 14px; }
.wrap li { margin-bottom: 6px; }
.wrap li::marker { color: var(--accent); }
.wrap a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wrap .term { color: var(--ink-1); font-weight: 800; }
.wrap :is(.note, .warn) { margin: 18px 0; padding: 16px 20px; border-radius: var(--r-tile); font-size: 0.94rem; line-height: 1.85; color: var(--ink-1); }
.wrap .note { background: rgb(var(--accent-rgb) / 0.07); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.18); }
.wrap .warn { background: rgb(var(--warning-rgb) / 0.09); box-shadow: inset 0 0 0 1px rgb(var(--warning-rgb) / 0.24); }
.wrap table { display: block; width: 100%; overflow-x: auto; margin: 14px 0; border-collapse: collapse; border-radius: var(--r-tile); background: var(--card-solid); box-shadow: 0 0 0 1px var(--separator); font-size: 0.9rem; }
.wrap :is(th, td) { padding: 11px 14px; text-align: start; color: var(--ink-2); box-shadow: inset 0 -1px 0 var(--separator); }
.wrap th { color: var(--ink-1); font-weight: 800; background: var(--fill-1); }

/* ── Footer (content sheet) ───────────────────────────────────────── */
footer {
  max-width: calc(var(--page-max) + 2 * var(--gutter) + 48px);
  margin: 24px auto 16px;
  padding: 48px var(--gutter) 24px;
  border-radius: var(--r-sheet);
  background: var(--canvas);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.85), 0 0 0 1px rgb(255 255 255 / 0.5), var(--shadow-2);
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; box-shadow: 0 1px 0 var(--separator); }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; }
.footer-desc { font-size: 0.88rem; color: var(--ink-2); line-height: 1.85; max-width: 300px; }
.footer-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 30px; padding-inline: 12px; border-radius: 999px; background: rgb(255 255 255 / 0.36); box-shadow: 0 0 0 1px var(--separator); font-size: 0.78rem; font-weight: 700; color: var(--ink-2); }
.footer-col h4 { font-size: 0.9rem; font-weight: 800; color: var(--ink-1); margin-bottom: 10px; }
.footer-col a { display: flex; align-items: center; min-height: 34px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; }
.footer-copy { font-size: 0.82rem; color: var(--ink-3); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 0.36); box-shadow: 0 0 0 1px var(--separator); font-size: 1.05rem; }
.footer-social a:hover { box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.4), var(--shadow-1); }

/* ── Lead dialog (float glass over a scrim) ───────────────────────── */
.lead-overlay { position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; padding: 16px; background: var(--scrim); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in 200ms var(--ease-out); }
.lead-dialog { width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 32px 26px 26px; border-radius: 30px; animation: sheet-in 280ms var(--ease-spring); }
.lead-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 0.3); box-shadow: inset 0 0 0 1px var(--separator); color: var(--ink-2); font-size: 15px; }
.lead-close:hover { background: rgb(255 255 255 / 0.36); color: var(--ink-1); }
.lead-head { text-align: center; margin-bottom: 22px; }
.lead-icon { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.18); }
.lead-title { font-size: 1.2rem; font-weight: 800; color: var(--ink-1); margin-bottom: 6px; }
.lead-text { font-size: 0.9rem; color: var(--ink-2); line-height: 1.75; }
.lead-form { display: flex; flex-direction: column; gap: 10px; }
.lead-field {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--r-field);
  background: rgb(255 255 255 / 0.38);
  box-shadow: inset 0 0 0 1px var(--separator);
  font-size: 1rem;  /* ≥16px — no iOS zoom on focus */
  color: var(--ink-1);
  transition: box-shadow var(--dur-fast);
}
textarea.lead-field { resize: none; min-height: 84px; line-height: 1.7; }
.lead-field::placeholder { color: var(--ink-4); }
.lead-field:focus { outline: none; box-shadow: inset 0 0 0 2px rgb(var(--accent-rgb) / 0.75), 0 0 0 4px rgb(var(--accent-rgb) / 0.12); }
[dir="rtl"] .lead-field[dir="ltr"] { text-align: right; }
.lead-error { color: var(--danger-ink); font-size: 0.82rem; font-weight: 700; text-align: center; }
.lead-submit { width: 100%; margin-top: 6px; }
.lead-success { text-align: center; padding: 12px 0; }
@keyframes fade-in { from { opacity: 0; } }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links a { padding-inline: 10px; }
  .hero-inner { gap: 36px; }
  .features-grid, .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-inner, .custom-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-sub, .section-sub { margin-inline: auto; }
  .hero-cta, .custom-cta-wrap { justify-content: center; }
  .chat-demo, .cx-chat-wrap { width: 100%; max-width: 480px; margin-inline: auto; }
  .custom-step { text-align: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --nav-h: 56px; --nav-top: 10px; }
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: inline-flex; }
  /* legal pages keep their two links (no burger menu there) */
  .nav-links:has(.back-link) { display: flex; justify-content: flex-end; gap: 6px; }
}
@media (max-width: 600px) {
  body > nav:has(.back-link) { gap: 6px; padding-inline: 8px; }
  body > nav:has(.back-link) .nav-logo { font-size: 0; gap: 0; padding-inline: 2px; }
  body > nav :is(.back-link, .lang-link, .lang-switch) { padding-inline: 12px; font-size: 0.82rem; }
  body > nav .back-link { min-width: 0; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 40px; }
  body > nav :is(.lang-link, .lang-switch), .nav-links:has(.back-link) .lang-link { flex-shrink: 0; }
  .nav-links:has(.back-link) { min-width: 0; }
}
@media (max-width: 768px) {
  section, .integrations-section { padding-block: 64px; }
  .band { margin-inline: 10px; padding-block: 56px; border-radius: 24px; }
  footer { margin-inline: 10px; border-radius: 24px; }
  .hero { min-height: 0; padding-top: calc(var(--nav-top) + var(--nav-h) + 40px); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta a { width: 100%; }
  .hero-stats { margin-top: 28px; }
  .stat { min-width: 0; padding-inline: 12px; }
  .chat-demo { display: block; }
  .chat-messages { min-height: 300px; }
  .features-grid, .testimonials-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature-card, .testimonial-card { padding: 22px; }
  .how-step { display: flex; gap: 14px; align-items: flex-start; text-align: start; padding: 18px; }
  .how-num { margin: 0; width: 52px; height: 52px; flex-shrink: 0; font-size: 1.3rem; }
  .integration-card { width: calc(50% - 8px); min-height: 120px; }
  .integration-cards { gap: 12px; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns a { width: 100%; }
  .pricing-hero { padding-top: calc(var(--nav-top) + var(--nav-h) + 48px); }
  .wrap { margin-inline: 10px; border-radius: 24px; padding-top: 36px; }
  .wrap :is(.intro, .toc) { padding: 18px 18px; }
  /* phones: content cards stay readable without per-card blur */
  :is(.feature-card, .integration-card, .testimonial-card, .pricing-card, .pricing-addon-card, .faq-item, .acc-item, .faq-cta, .custom-step) { background: var(--card-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 520px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero-stats { display: flex; width: 100%; }
  .stat { flex: 1; }
  .platforms-bar { border-radius: var(--r-card); padding: 12px; flex-direction: column; gap: 8px; }
  [dir="rtl"] .platforms-bar { padding: 12px; }
  .seg-chips { width: 100%; border-radius: var(--r-card); }
  .tab-btn { flex: 1 1 auto; justify-content: center; padding-inline: 12px; }
  .cx-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-tab { padding-inline: 8px; font-size: 0.8rem; }
  .lead-dialog { padding: 28px 18px 18px; border-radius: 26px; }
}

/* ── Accessibility preferences ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
/* OS reduced transparency: denser frosted glass — rims, gradients and frost
   stay; less of the wallpaper shows through. Never opaque white blocks. */
@media (prefers-reduced-transparency: reduce) {
  :root { --card: rgb(255 255 255 / 0.44); --canvas: rgb(255 255 255 / 0.1); --glass-float: rgb(252 253 255 / 0.82); }
  .wrap { --card: rgb(255 255 255 / 0.5); }
  :is(.wrap, .feature-card, .integration-card, .testimonial-card, .pricing-card, .pricing-addon-card, .faq-item, .acc-item, .faq-cta, .custom-step, .intro, .toc, .chat-demo, .cx-chat, .how-step) { -webkit-backdrop-filter: blur(16px) var(--glass-tone) !important; backdrop-filter: blur(16px) var(--glass-tone) !important; }
  body::after { background: rgb(244 247 251 / 0.4); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-glass]:where(:not(html)), .band, footer, .wrap { background: var(--surface-solid); }
}
@media (prefers-contrast: more) {
  :root { --ink-2: oklch(0.3 0.022 252); --ink-3: oklch(0.38 0.02 252); --separator: rgb(40 52 72 / 0.32); }
  body::after { background: rgb(246 249 252 / 0.9); }
  [data-glass]:where(:not(html))::after { opacity: 0.4; }
}
@media (forced-colors: active) {
  [data-glass]:where(:not(html)), .band, footer, .wrap, .feature-card, .pricing-card, .acc-item, .faq-item { border: 1px solid CanvasText; }
  .btn-primary, .btn-nav, .tab-btn.active { border: 1px solid ButtonText; }
}
@media print {
  body::before, body::after, body > nav, .nav-mobile-panel { display: none; }
  .wrap, .band, footer { box-shadow: none; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; margin-top: 0; }
}
[dir="rtl"] .stat + .stat { box-shadow: 1px 0 0 var(--separator); }


/* ═══ Content glass — every card, panel, band and sheet is clear glass ═══
   (same recipe as the dashboard, src/styles/panes.css)
   band   .band, footer         clear: no tint, no blur, a faint outline only,
                                so every card on it refracts the wallpaper
   pane   cards, panels, .wrap  per-card lens (site.js: R/G/B dispersion along
                                the rim + half-sharp/half-frosted body) → tone
                                map (darks lifted for ink contrast) → low tint,
                                optical + colour gradient, specular streak,
                                pointer light, luminous ring, inner shade
   inset  .msg-in, fields, th   brighter glass step with rims               */
.band, footer {
  background: var(--canvas);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.26);
}
:is(.feature-card, .integration-card, .testimonial-card, .pricing-card, .pricing-addon-card, .faq-item, .acc-item, .faq-cta, .custom-step, .intro, .toc, .chat-demo, .cx-chat, .how-step, .hero-stats, .platforms-bar, .pricing-compare-wrap, .wrap),
:is(.band, .wrap) :is(.feature-card, .integration-card, .testimonial-card, .custom-step, .pricing-card, .faq-item, .how-step, .intro, .toc) {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(320px circle at var(--lg-px, 50%) var(--lg-py, -60%), rgb(255 255 255 / calc(0.34 * var(--lg-hover, 0))), rgb(255 255 255 / 0) 62%),
    var(--glass-sheen),
    var(--card);
  -webkit-backdrop-filter: var(--lg-lens, blur(16px)) var(--glass-tone);
  backdrop-filter: var(--lg-lens, blur(16px)) var(--glass-tone);
  border: 1px solid transparent;
  box-shadow: var(--glass-rims), var(--glass-drop);
}
/* the legal reading sheet carries long text: a slightly denser tint */
.wrap { --card: rgb(255 255 255 / 0.24); }
/* panes inside the reading sheet: no second blur (the sheet is their backdrop root) */
.wrap :is(.intro, .toc) {
  background: var(--glass-body), rgb(255 255 255 / 0.14);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.75), inset 0 0 0 1px rgb(255 255 255 / 0.22);
}
.wrap :is(.intro, .toc)::after { display: none; }
/* luminous rim ring — bright where light enters, re-lit at the base */
:is(.feature-card, .integration-card, .testimonial-card, .pricing-card, .pricing-addon-card, .faq-item, .acc-item, .faq-cta, .custom-step, .intro, .toc, .chat-demo, .cx-chat, .how-step, .hero-stats, .platforms-bar, .pricing-compare-wrap, .wrap)::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: var(--glass-ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
/* type on glass: crisp ink with a hairline light halo */
:is(.band, .wrap, footer) :is(h1, h2, h3, .section-title),
:is(.feature-card, .pricing-card, .integration-card, .testimonial-card, .custom-step, .how-step) :is(h3, h4) {
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.5), 0 0 12px rgb(255 255 255 / 0.45);
}
.pricing-card.popular { background: var(--glass-sheen), rgb(255 255 255 / 0.48); box-shadow: var(--glass-rims), 0 0 0 1.5px rgb(var(--accent-rgb) / 0.55), 0 18px 40px -18px rgb(var(--accent-rgb) / 0.45); }
.msg-in { background: var(--glass-body), rgb(255 255 255 / 0.5); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.85), 0 0 0 0.5px rgb(255 255 255 / 0.6), var(--shadow-1); }
.chat-header { background: var(--glass-body), rgb(255 255 255 / 0.18); }
.chat-messages { background: radial-gradient(circle at 1px 1px, rgb(var(--fill-rgb) / 0.06) 1px, transparent 0) 0 0 / 18px 18px, rgb(255 255 255 / 0.1); }
.pricing-compare-table th { background: var(--glass-body), rgb(255 255 255 / 0.3); }
.search-input { background: var(--glass-body), rgb(255 255 255 / 0.4); border: 1px solid var(--glass-border); box-shadow: var(--glass-rims-soft), var(--shadow-1); }
.lead-field { background: rgb(255 255 255 / 0.4); box-shadow: inset 0 1px 2px rgb(18 30 52 / 0.06), 0 0 0 0.5px rgb(18 30 52 / 0.14), inset 0 0 0 1px rgb(255 255 255 / 0.55); }
.lead-field:focus { background: rgb(255 255 255 / 0.56); }
@media (max-width: 768px) {
  /* phones: lighter frost keeps scrolling smooth; gradient, ring and rims stay */
  :is(.feature-card, .integration-card, .testimonial-card, .pricing-card, .pricing-addon-card, .faq-item, .acc-item, .faq-cta, .custom-step, .intro, .toc, .chat-demo, .cx-chat, .how-step, .hero-stats, .platforms-bar, .pricing-compare-wrap),
  :is(.band, .wrap) :is(.feature-card, .integration-card, .testimonial-card, .custom-step, .pricing-card, .faq-item, .how-step, .intro, .toc) {
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .band, footer, .wrap { background: var(--glass-body), rgb(246 248 252 / 0.72); }
  :is(.feature-card, .integration-card, .testimonial-card, .pricing-card, .pricing-addon-card, .faq-item, .acc-item, .faq-cta, .custom-step, .intro, .toc, .chat-demo, .cx-chat, .how-step) { background: var(--glass-body), rgb(250 251 254 / 0.92); }
}
@media print {
  .band, footer, .wrap { background: #fff; box-shadow: none; }
}
@media (forced-colors: active) {
  :is(.feature-card, .integration-card, .testimonial-card, .pricing-card, .pricing-addon-card, .faq-item, .acc-item, .faq-cta, .custom-step, .intro, .toc, .chat-demo, .cx-chat, .how-step, .hero-stats, .platforms-bar, .pricing-compare-wrap)::after { display: none; }
}

/* ═══ Glass controls — the same recipe as the dashboard (src/styles/controls.css) ═══
   crystal-clear glass (blur 1px), 0.8px white outer ring, white inset light on
   the selected state, white text glow on hover; colour only as a faint tint on
   the primary (blue) and WhatsApp (green) actions. */
:root {
  --f-text: #fff;
  --gc-edge: rgb(18 30 52 / 0.15);
  --gc-lift: 0 1px 1px rgb(18 30 52 / 0.04), 0 6px 16px -10px rgb(18 30 52 / 0.3);
  /* thick-glass bevel (same as the dashboard controls.css) */
  --gc-bevel: inset 0 1.5px 0.5px rgb(255 255 255 / 0.9), inset 0 -1.5px 1px rgb(255 255 255 / 0.5), inset 0 0 10px 1px rgb(255 255 255 / 0.34), inset 0 -8px 12px -9px rgb(30 44 92 / 0.18);
  --gc-hover-fill: color-mix(in srgb, var(--f-text) 24%, transparent);
  --gc-selected-fill: color-mix(in srgb, var(--f-text) 62%, transparent);
  --gc-inset: inset 4px 4px 5px 0 rgb(0 0 0 / 0.08), inset 0 -2.81px 7.5px 0 rgb(255 255 255 / 0.15);
  --gc-glow: 0 0 7.5px var(--f-text);
  --gc-ring-outer: linear-gradient(177deg, color-mix(in srgb, var(--f-text) 30%, transparent) 0%, color-mix(in srgb, var(--f-text) 15%, transparent) 50%, var(--f-text) 100%);
  --gc-ring-selected: radial-gradient(100% 80% at 0 0, color-mix(in srgb, var(--f-text) 66%, transparent) 0%, color-mix(in srgb, var(--f-text) 25%, transparent) 82%, transparent 100%);
  --gc-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
}
:is(.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .pricing-cta, .btn-nav-secondary, .btn-secondary, .nav-burger, .footer-social a, .lead-close, .pricing-toggle, body > nav :is(.back-link, .lang-link, .lang-switch), .seg-chips, .cx-tabs) {
  position: relative;
  isolation: isolate;
  background: var(--gc-tint, transparent);
  color: var(--gc-ink, var(--ink-1));
  -webkit-backdrop-filter: blur(1px) saturate(1.15) brightness(1.12) contrast(0.86);
  backdrop-filter: blur(1px) saturate(1.15) brightness(1.12) contrast(0.86);
  box-shadow: var(--gc-bevel), 0 0 0 0.5px var(--gc-edge-tone, var(--gc-edge)), var(--gc-lift);
  text-shadow: none;
  transition: background-color 140ms, color 200ms, text-shadow 200ms, box-shadow 220ms, transform 140ms var(--ease-out);
}
:is(.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .pricing-cta, .btn-nav-secondary, .btn-secondary, .nav-burger, .footer-social a, .lead-close, .pricing-toggle, body > nav :is(.back-link, .lang-link, .lang-switch), .seg-chips, .cx-tabs)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 0.8px;
  background: var(--gc-ring-outer);
  -webkit-mask: var(--gc-mask);
  -webkit-mask-composite: xor;
  mask: var(--gc-mask);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}
.btn-nav, .btn-primary, .grad-btn, .pricing-card.popular .pricing-cta {
  --gc-tint: rgb(var(--accent-rgb) / 0.1);
  --gc-tint-hover: rgb(var(--accent-rgb) / 0.16);
  --gc-ink: var(--accent-ink);
  --gc-edge-tone: rgb(var(--accent-rgb) / 0.3);
}
.pricing-cta, .pricing-toggle { --gc-ink: var(--accent-ink); }
/* tone actions: a light layer under the tint keeps the coloured label ≥ 4.5:1
   even over the darkest part of the wallpaper (measured on rendered pixels) */
:is(.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .pricing-card.popular .pricing-cta) {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.3)), var(--gc-tint, transparent);
}
.btn-whatsapp {
  --gc-tint: rgb(var(--success-rgb) / 0.1);
  --gc-tint-hover: rgb(var(--success-rgb) / 0.16);
  --gc-ink: var(--success-ink);
  --gc-edge-tone: rgb(var(--success-rgb) / 0.32);
}
@media (hover: hover) {
  :is(.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .pricing-cta, .btn-nav-secondary, .btn-secondary, .nav-burger, .footer-social a, .lead-close, .pricing-toggle, body > nav :is(.back-link, .lang-link, .lang-switch)):hover {
    background: linear-gradient(180deg, rgb(255 255 255 / 0.54), rgb(255 255 255 / 0.34)), var(--gc-tint-hover, var(--gc-hover-fill));
    color: var(--gc-ink, var(--ink-1));
    text-shadow: var(--gc-glow);
  }
}
:is(.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .pricing-cta, .btn-nav-secondary, .btn-secondary, .nav-burger, .footer-social a, .lead-close, .pricing-toggle):active {
  box-shadow: var(--gc-inset), 0 0 0 0.5px var(--gc-edge-tone, var(--gc-edge));
}
.seg-chips, .cx-tabs { padding: 3px; }
/* tab items: inactive = tertiary ink that lights up; active = the selected thumb */
:is(.tab-btn, .cx-tab, .nav-links a, .nav-mobile-panel a:not(.btn-nav):not(.btn-nav-secondary)) {
  position: relative;
  background: transparent;
  color: var(--ink-3);
  box-shadow: none;
  transition: color 200ms, text-shadow 200ms, background-color 140ms, box-shadow 220ms;
}
@media (hover: hover) {
  :is(.tab-btn, .cx-tab, .nav-links a, .nav-mobile-panel a:not(.btn-nav):not(.btn-nav-secondary)):not(.active):hover {
    background: transparent;
    color: var(--ink-1);
    text-shadow: var(--gc-glow);
  }
}
:is(.tab-btn, .cx-tab, .nav-links a, .nav-mobile-panel a:not(.btn-nav):not(.btn-nav-secondary)):is(.active, [aria-current="page"]) {
  background: var(--gc-selected-fill);
  color: var(--ink-1);
  box-shadow: var(--gc-inset);
}
:is(.tab-btn, .cx-tab, .nav-links a, .nav-mobile-panel a:not(.btn-nav):not(.btn-nav-secondary)):is(.active, [aria-current="page"])::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: var(--gc-ring-selected);
  -webkit-mask: var(--gc-mask);
  -webkit-mask-composite: xor;
  mask: var(--gc-mask);
  mask-composite: exclude;
  pointer-events: none;
}
[dir="rtl"] :is(.tab-btn, .cx-tab, .nav-links a, .nav-mobile-panel a):is(.active, [aria-current="page"])::after {
  background: radial-gradient(100% 80% at 100% 0, color-mix(in srgb, var(--f-text) 66%, transparent) 0%, color-mix(in srgb, var(--f-text) 25%, transparent) 82%, transparent 100%);
}
.cx-tab .cx-progress { background: color-mix(in srgb, var(--f-text) 55%, transparent); }
@media (forced-colors: active) {
  :is(.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .pricing-cta, .btn-secondary, .tab-btn, .cx-tab)::before,
  :is(.tab-btn, .cx-tab)::after { display: none; }
}
html[data-lens="on"] :is(.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .btn-secondary, .pricing-cta, .seg-chips, .cx-tabs, .nav-burger, .footer-social a)[data-lens-id] {
  -webkit-backdrop-filter: var(--lg-lens) blur(1px) saturate(1.15) brightness(1.12) contrast(0.86);
  backdrop-filter: var(--lg-lens) blur(1px) saturate(1.15) brightness(1.12) contrast(0.86);
}

/* ── Liquid Glass stage (WebGL, site/glass-stage.js) ───────────────────
   One canvas behind the page paints the wallpaper and draws every sheet,
   card, button and field as refracting glass — the same engine and optics
   as the dashboard, identical in Safari and Chrome. It sits under the
   legibility wash (body::after), so text contrast is unchanged. Elements it
   draws carry data-lg and drop their CSS backdrop and rim rings (the shader
   draws both); floating glass keeps its CSS material. */
.lg-stage-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 360ms var(--ease-out);
}
html[data-stage="on"] .lg-stage-canvas { opacity: 1; }
html[data-stage="on"] [data-lg] {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-stage="on"] :is(.feature-card, .integration-card, .testimonial-card, .pricing-card, .pricing-addon-card, .faq-item, .acc-item, .faq-cta, .custom-step, .intro, .toc, .chat-demo, .cx-chat, .how-step, .hero-stats, .platforms-bar, .pricing-compare-wrap, .wrap)[data-lg]::after,
html[data-stage="on"] :is(.btn-primary, .btn-secondary, .btn-whatsapp, .grad-btn, .pricing-cta, .pricing-toggle, .seg-chips, .cx-tabs, .footer-social a)[data-lg]::before {
  display: none;
}
/* clear glass: the canvas draws the pill optics, so the frosted fills of
   sheets, cards and fields come off; the legibility wash moves into the
   canvas background (behind the glass, not over it). Outgoing chat bubbles
   and warnings keep their tint. */
html[data-stage="on"] body::after { display: none; }
html[data-stage="on"] :is([data-lg="sheet"], [data-lg="pane"]):not(:is(.msg-out, .warn)) {
  background: transparent !important;
}
html[data-stage="on"] :is(input, select, textarea)[data-lg] { background-color: transparent !important; }
@media (prefers-reduced-motion: reduce) { .lg-stage-canvas { transition: none; } }



/* 2026-11-12: icon colours (the icons are now glyphs, they take the text colour) */
.feature-icon.violet  { color: var(--violet-ink); }
.feature-icon.emerald { color: var(--success-ink); }
.feature-icon.amber   { color: var(--warning-ink); }
.feature-icon.blue    { color: var(--accent-ink); }
.feature-icon.rose    { color: var(--danger-ink); }
.feature-icon.cyan    { color: var(--info-ink); }
.how-num, .lead-icon, .chat-avatar, .nav-logo-dot { color: var(--accent-ink); }
.integration-glyph { color: var(--ink-1); }
