/* =====================================================================
   TechFlow — Landing page stylesheet
   ---------------------------------------------------------------------
   TABLE OF CONTENTS
     01. Design tokens ............ colors, type, radii, shadows  ← start here
     02. Themes ................... Normal, Black, Blue, Green, Red,
                                    Yellow, Orange, Spring, Sunny
     03. Accessibility tokens ..... font size, contrast, color blind,
                                    low vision
     04. Base & reset
     05. Layout & typography helpers
     06. Buttons, pills & links
     07. Header, navigation & drop-downs
     08. Hero
     09. Device mockups (laptop, tablet, browser) & the mini apps inside
     10. Products
     11. How it works (timeline)
     12. Benefits
     13. Social proof
     14. Pricing
     15. Contact / demo form
     16. Footer
     17. Accessibility widget
     18. Toast, reading mask & reveal-on-scroll
     19. Accessibility modes (component-level rules)
     20. RTL (Arabic / Hebrew) tweaks
     21. Responsive breakpoints

   All sizes use rem so the "Font size" and "Low vision" options scale
   the whole page. Mockups use em + container units so they scale with
   the device width instead.
   ===================================================================== */


/* =====================================================================
   01. DESIGN TOKENS
   Every color on the page comes from these variables. Themes (section 02)
   simply override them.
   ===================================================================== */
:root {
  /* ---- Typography ---- */
  --font-latin: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Inter", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-hebrew: "Heebo", "Inter", system-ui, "Segoe UI", Arial, sans-serif;
  --font: var(--font-latin);

  /* Scale multipliers (changed by the accessibility widget) */
  --fs-scale: 1;
  --lv-scale: 1;

  /* ---- Layout ---- */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.25rem;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);

  /* ---- Radii ---- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: .25s;

  /* ---- Surfaces & text (light) ---- */
  --bg: #FFFFFF;             /* page background                         */
  --bg-alt: #F5F7FB;         /* alternate section background (gray)     */
  --surface: #FFFFFF;        /* cards                                   */
  --surface-2: #F0F3F9;      /* inputs, subtle fills                    */
  --text: #0A1A3A;           /* main text — deep navy                   */
  --text-muted: #52607A;     /* secondary text                          */
  --border: #E3E8F1;

  /* ---- Brand ---- */
  --primary: #2563EB;        /* electric blue — buttons, highlights     */
  --primary-hover: #1D4ED8;
  --primary-ink: #1D4ED8;    /* primary color when used AS TEXT         */
  --on-primary: #FFFFFF;     /* text/icons placed ON the primary color  */
  --accent: #06B6D4;         /* cyan — second gradient stop             */
  --accent-ink: #0891B2;

  /* ---- Status ---- */
  --success: #10B981;  --success-ink: #047857;
  --warning: #F59E0B;  --warning-ink: #B45309;
  --danger:  #EF4444;  --danger-ink:  #B91C1C;

  /* ---- Dark sections ("How it works", contact, footer) ---- */
  --dark-bg: #0A1A3A;        /* deep navy */
  --dark-bg-2: #06112A;
  --dark-surface: rgba(255, 255, 255, .04);
  --dark-text: #F1F5FF;
  --dark-muted: #A7B6D3;
  --dark-border: rgba(255, 255, 255, .10);
  --dark-accent: #60A5FA;

  /* ---- Device mockups ---- */
  --device-frame: #111827;
  --device-base-1: #E4E7EC;
  --device-base-2: #A3AAB8;

  /* ---- Shadows (tinted navy) ---- */
  --shadow-rgb: 10, 26, 58;
  --shadow-sm: 0 1px 2px rgba(var(--shadow-rgb), .06), 0 1px 3px rgba(var(--shadow-rgb), .08);
  --shadow-md: 0 6px 16px -4px rgba(var(--shadow-rgb), .10), 0 2px 6px -2px rgba(var(--shadow-rgb), .06);
  --shadow-lg: 0 24px 48px -16px rgba(var(--shadow-rgb), .22);
  --shadow-xl: 0 40px 80px -24px rgba(var(--shadow-rgb), .35);

  /* ---- Derived tokens (computed from the ones above — rarely edited) ---- */
  --primary-soft: color-mix(in srgb, var(--primary) 12%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --success-soft: color-mix(in srgb, var(--success) 15%, transparent);
  --warning-soft: color-mix(in srgb, var(--warning) 17%, transparent);
  --danger-soft: color-mix(in srgb, var(--danger) 14%, transparent);
  --grad-brand: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --grad-text: linear-gradient(100deg, var(--primary-ink) 5%, var(--accent-ink) 95%);
  --grid-line: color-mix(in srgb, var(--text) 6%, transparent);
  --focus: var(--primary-ink);

  color-scheme: light;
}


/* =====================================================================
   02. THEMES
   Set with <html data-theme="…">. Each theme only overrides tokens.
   To add a theme: copy a block, change the values, then add a button in
   index.html (theme menu) and a swatch below ("Theme swatches").
   ===================================================================== */

/* ---- Black: neutral dark mode ---- */
html[data-theme="black"] {
  --bg: #09090B;  --bg-alt: #0F0F12;  --surface: #151518;  --surface-2: #1D1D22;
  --text: #F4F4F5;  --text-muted: #A1A1AA;  --border: #2A2A30;
  --primary: #2563EB;  --primary-hover: #3B82F6;  --primary-ink: #7AB2FF;  --on-primary: #FFFFFF;
  --accent: #22D3EE;  --accent-ink: #5EE0F5;
  --success-ink: #34D399;  --warning-ink: #FBBF24;  --danger-ink: #F87171;
  --dark-bg: #000000;  --dark-bg-2: #000000;  --dark-text: #FAFAFA;  --dark-muted: #A1A1AA;
  --dark-border: rgba(255, 255, 255, .09);  --dark-accent: #7AB2FF;
  --device-frame: #000000;  --device-base-1: #4B4B55;  --device-base-2: #26262C;
  --shadow-rgb: 0, 0, 0;
  color-scheme: dark;
}

/* ---- Blue: midnight navy dark mode ---- */
html[data-theme="blue"] {
  --bg: #0B1530;  --bg-alt: #0E1A3B;  --surface: #122249;  --surface-2: #182B59;
  --text: #EAF0FF;  --text-muted: #A3B5DC;  --border: #243A70;
  --primary: #38BDF8;  --primary-hover: #7DD3FC;  --primary-ink: #7DD3FC;  --on-primary: #04122E;
  --accent: #818CF8;  --accent-ink: #A5B4FC;
  --success-ink: #34D399;  --warning-ink: #FBBF24;  --danger-ink: #FCA5A5;
  --dark-bg: #060D22;  --dark-bg-2: #040919;  --dark-accent: #7DD3FC;
  --device-frame: #050A18;  --device-base-1: #50607F;  --device-base-2: #2A3550;
  --shadow-rgb: 0, 4, 18;
  color-scheme: dark;
}

/* ---- Green ---- */
html[data-theme="green"] {
  --bg-alt: #F2F8F5;  --surface-2: #EBF4EF;
  --text: #0B2A1F;  --text-muted: #4A6357;  --border: #DAE8E0;
  --primary: #047857;  --primary-hover: #065F46;  --primary-ink: #047857;
  --accent: #10B981;  --accent-ink: #059669;
  --dark-bg: #052E22;  --dark-bg-2: #03201A;  --dark-muted: #9CC8B6;  --dark-accent: #34D399;
  --shadow-rgb: 5, 46, 34;
}

/* ---- Red ---- */
html[data-theme="red"] {
  --bg-alt: #FBF4F4;  --surface-2: #F8EDED;
  --text: #2A0E12;  --text-muted: #6B4B50;  --border: #F0DDDD;
  --primary: #DC2626;  --primary-hover: #B91C1C;  --primary-ink: #B91C1C;
  --accent: #F97316;  --accent-ink: #DD4E08;
  --dark-bg: #3B0A10;  --dark-bg-2: #29060B;  --dark-muted: #DDB3B8;  --dark-accent: #FCA5A5;
  --shadow-rgb: 59, 10, 16;
}

/* ---- Yellow (dark text on yellow buttons for contrast) ---- */
html[data-theme="yellow"] {
  --bg-alt: #FEFCE8;  --surface-2: #FDF8D6;
  --text: #1C1A05;  --text-muted: #5C5626;  --border: #EFE9C2;
  --primary: #FACC15;  --primary-hover: #EAB308;  --primary-ink: #854D0E;  --on-primary: #1C1400;
  --accent: #F59E0B;  --accent-ink: #A16207;
  --dark-bg: #1F1B07;  --dark-bg-2: #151204;  --dark-muted: #D3CB9E;  --dark-accent: #FDE047;
  --shadow-rgb: 60, 50, 0;
}

/* ---- Orange ---- */
html[data-theme="orange"] {
  --bg-alt: #FFF7F1;  --surface-2: #FFEFE3;
  --text: #2B1407;  --text-muted: #6E5140;  --border: #F4E0D1;
  --primary: #C2410C;  --primary-hover: #9A3412;  --primary-ink: #C2410C;
  --accent: #F59E0B;  --accent-ink: #C2780A;
  --dark-bg: #3A1606;  --dark-bg-2: #280E03;  --dark-muted: #DDB9A1;  --dark-accent: #FDBA74;
  --shadow-rgb: 58, 22, 6;
}

/* ---- Spring: fresh green + blossom pink ---- */
html[data-theme="spring"] {
  --bg: #FCFFFD;  --bg-alt: #F0FAF4;  --surface-2: #E9F6EE;
  --text: #123026;  --text-muted: #4F6B5E;  --border: #D6EDDF;
  --primary: #15803D;  --primary-hover: #166534;  --primary-ink: #15803D;
  --accent: #EC4899;  --accent-ink: #DB2777;
  --dark-bg: #0F2E22;  --dark-bg-2: #0A2219;  --dark-muted: #AAD0BC;  --dark-accent: #86EFAC;
  --shadow-rgb: 15, 46, 34;
}

/* ---- Sunny: warm amber on cream ---- */
html[data-theme="sunny"] {
  --bg: #FFFDF6;  --bg-alt: #FFF6DD;  --surface-2: #FFF1CC;
  --text: #2B1C05;  --text-muted: #6B5635;  --border: #F3E4BC;
  --primary: #F59E0B;  --primary-hover: #F2B01E;  --primary-ink: #B45309;  --on-primary: #231400;
  --accent: #F97316;  --accent-ink: #D9560B;
  --dark-bg: #3A2406;  --dark-bg-2: #2A1904;  --dark-muted: #E2C79C;  --dark-accent: #FCD34D;
  --shadow-rgb: 80, 50, 0;
}


/* =====================================================================
   03. ACCESSIBILITY TOKENS
   Placed AFTER the themes so they always win.
   ===================================================================== */

/* ---- Font size ---- */
html[data-font-size="medium"] { --fs-scale: 1.15; }
html[data-font-size="large"]  { --fs-scale: 1.3; }

/* ---- Color blind: Okabe-Ito palette (safe for protanopia, deuteranopia, tritanopia) ---- */
html.a11y-colorblind {
  --primary: #0072B2;  --primary-hover: #005A8C;  --primary-ink: #0072B2;  --on-primary: #FFFFFF;
  --accent: #E69F00;  --accent-ink: #9A6A00;
  --success: #0072B2;  --success-ink: #005A8C;
  --warning: #E69F00;  --warning-ink: #8A5F00;
  --danger: #D55E00;   --danger-ink: #A84A00;
  --dark-accent: #56B4E9;
}
html.a11y-colorblind:is([data-theme="black"], [data-theme="blue"]) {
  --primary-ink: #56B4E9;  --accent-ink: #F0C04A;  --success-ink: #56B4E9;
  --warning-ink: #F0E442;  --danger-ink: #F5A06A;
}

/* ---- Low vision: bigger base size, full-strength secondary text ---- */
html.a11y-lowvision {
  --lv-scale: 1.2;
  --text-muted: var(--text);
  --dark-muted: var(--dark-text);
}

/* ---- Dark contrast: pure black + white + yellow ---- */
html[data-contrast="dark"] {
  --bg: #000;  --bg-alt: #000;  --surface: #000;  --surface-2: #111;
  --text: #FFF;  --text-muted: #FFF;  --border: #FFF;
  --primary: #FFE500;  --primary-hover: #FFF176;  --primary-ink: #FFE500;  --on-primary: #000;
  --accent: #00E5FF;  --accent-ink: #FFE500;
  --success: #00FF88;  --success-ink: #00FF88;  --warning: #FFE500;  --warning-ink: #FFE500;
  --danger: #FF6B6B;  --danger-ink: #FF8A8A;
  --dark-bg: #000;  --dark-bg-2: #000;  --dark-surface: #000;  --dark-text: #FFF;  --dark-muted: #FFF;
  --dark-border: #FFF;  --dark-accent: #FFE500;
  --grad-brand: linear-gradient(var(--primary), var(--primary));
  --grad-text: linear-gradient(var(--primary-ink), var(--primary-ink));
  --focus: #00E5FF;
  color-scheme: dark;
}

/* ---- Light contrast: pure white + black + dark blue ---- */
html[data-contrast="light"] {
  --bg: #FFF;  --bg-alt: #FFF;  --surface: #FFF;  --surface-2: #FFF;
  --text: #000;  --text-muted: #000;  --border: #000;
  --primary: #0033CC;  --primary-hover: #002299;  --primary-ink: #0033CC;  --on-primary: #FFF;
  --accent: #0033CC;  --accent-ink: #0033CC;
  --success: #006B2E;  --success-ink: #006B2E;  --warning: #8A4B00;  --warning-ink: #8A4B00;
  --danger: #B00020;  --danger-ink: #B00020;
  --dark-bg: #FFF;  --dark-bg-2: #FFF;  --dark-surface: #FFF;  --dark-text: #000;  --dark-muted: #000;
  --dark-border: #000;  --dark-accent: #0033CC;
  --grad-brand: linear-gradient(var(--primary), var(--primary));
  --grad-text: linear-gradient(var(--primary-ink), var(--primary-ink));
  --focus: #D10000;
  color-scheme: light;
}


/* =====================================================================
   04. BASE & RESET
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: calc(100% * var(--fs-scale) * var(--lv-scale));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Per-language font */
html[lang="ar"] { --font: var(--font-arabic); }
html[lang="he"] { --font: var(--font-hebrew); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="ar"] body { line-height: 1.75; }

img, svg, video { display: block; max-width: 100%; }
a { color: var(--primary-ink); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
html:is([lang="ar"], [lang="he"]) :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Programmatic focus targets (sections after an anchor jump) don't need a ring */
[tabindex="-1"]:focus { outline: none; }

/* Offset anchor jumps so the sticky header doesn't cover headings */
section[id], article[id], main { scroll-margin-top: calc(var(--header-h) + 1rem); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 1rem;
  z-index: 1000;
  padding: .75rem 1.25rem;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Numbers, codes, emails & prices always read left-to-right (also in RTL) */
.num { direction: ltr; unicode-bidi: isolate; }

/* Hide text until translations are applied (set by boot.js for non-English) */
html.i18n-pending body { visibility: hidden; }


/* =====================================================================
   05. LAYOUT & TYPOGRAPHY HELPERS
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  margin-block: 1rem;
  text-wrap: balance;
}
.section-head p:not(.eyebrow) {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .9rem;
  border-radius: var(--r-full);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-ink);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
html:is([lang="ar"], [lang="he"]) .eyebrow { letter-spacing: 0; text-transform: none; font-size: .875rem; }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-block: .06em;   /* keeps Arabic/Hebrew marks inside the clip */
}


/* =====================================================================
   06. BUTTONS, PILLS & LINKS
   ===================================================================== */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-border: var(--border);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding: .7rem 1.25rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur), border-color var(--dur), color var(--dur);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary: solid brand color + soft colored glow + light sweep on hover */
.btn-primary {
  --btn-bg: var(--primary);
  --btn-fg: var(--on-primary);
  --btn-border: transparent;
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .12),
              0 8px 20px -8px color-mix(in srgb, var(--primary) 70%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover {
  --btn-bg: var(--primary-hover);
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .12),
              0 14px 28px -10px color-mix(in srgb, var(--primary) 80%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

/* Ghost / outline: neutral surface with border */
.btn-ghost, .btn-outline {
  --btn-bg: var(--surface);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover, .btn-outline:hover {
  --btn-border: color-mix(in srgb, var(--primary) 55%, var(--border));
  --btn-fg: var(--primary-ink);
  box-shadow: var(--shadow-md);
}

.btn-lg { min-height: 3.25rem; padding: .9rem 1.6rem; font-size: 1rem; border-radius: var(--r-md); }
.btn-sm { min-height: 2.375rem; padding: .5rem 1rem; font-size: .875rem; }
.btn-block { width: 100%; }

.btn .fa-arrow-right { transition: transform var(--dur) var(--ease); }
.btn:hover .fa-arrow-right { transform: translateX(3px); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--primary-ink);
}
.link-arrow i { transition: transform var(--dur) var(--ease); font-size: .85em; }
.link-arrow:hover i { transform: translateX(4px); }
.link-arrow:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* Status pills (used inside mockups; sized in em) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .25em .65em;
  border-radius: var(--r-full);
  font-size: .85em;
  font-weight: 600;
  white-space: nowrap;
}
.pill i { font-size: .85em; }
.pill-success { background: var(--success-soft); color: var(--success-ink); }
.pill-warning { background: var(--warning-soft); color: var(--warning-ink); }
.pill-danger  { background: var(--danger-soft);  color: var(--danger-ink); }
.pill-info    { background: var(--primary-soft); color: var(--primary-ink); }


/* =====================================================================
   07. HEADER, NAVIGATION & DROP-DOWNS
   The header is a *container*: the menu collapses when the header is
   narrower than 68rem. Because container queries measure rem against the
   root font size, the menu collapses earlier when text is enlarged.
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  container: header / inline-size;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), box-shadow var(--dur), background-color var(--dur);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -16px rgba(var(--shadow-rgb), .25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
}

/* ---- Logo ---- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  direction: ltr;
}
.logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: .65rem;
  background: var(--grad-brand);
  color: var(--on-primary);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 75%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .4s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-mark svg { width: 64%; height: 64%; }
.logo-text > span { color: var(--primary-ink); }

/* ---- Links ---- */
.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a {
  display: block;
  padding: .5rem .85rem;
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-size: .9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur), background-color var(--dur);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.is-active { color: var(--primary-ink); background: var(--primary-soft); }
.nav-cta-mobile { display: none; }

/* ---- Right-side actions ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-inline-start: auto;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding-inline: .75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .8125rem;
  font-weight: 600;
  transition: color var(--dur), border-color var(--dur), background-color var(--dur);
}
.icon-btn:hover { color: var(--text); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.icon-btn .caret { font-size: .6rem; transition: transform var(--dur) var(--ease); }
.icon-btn[aria-expanded="true"] { color: var(--primary-ink); border-color: var(--primary); }
.icon-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* ---- Hamburger ---- */
.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Drop-downs (language & theme) ---- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + .6rem);
  inset-inline-end: 0;
  z-index: 10;
  min-width: 11rem;
  padding: .4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  animation: dropIn .18s var(--ease);
}
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: .6rem .75rem;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: .9375rem;
  text-align: start;
}
.lang-option[lang="ar"] span { font-family: var(--font-arabic); }
.lang-option[lang="he"] span { font-family: var(--font-hebrew); }
.lang-option:hover, .lang-option:focus-visible { background: var(--surface-2); }
.lang-option i { color: var(--primary-ink); opacity: 0; font-size: .8rem; }
.lang-option[aria-current="true"] { font-weight: 600; color: var(--primary-ink); }
.lang-option[aria-current="true"] i { opacity: 1; }

.theme-menu { width: 17.5rem; padding: .9rem; }
.dropdown-title {
  margin: 0 .25rem .7rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
html:is([lang="ar"], [lang="he"]) .dropdown-title { letter-spacing: 0; font-size: .8125rem; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.theme-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: .6rem .25rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: .75rem;
  font-weight: 500;
  transition: border-color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur);
}
.theme-swatch:hover { border-color: var(--primary); transform: translateY(-2px); }
.theme-swatch[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  font-weight: 700;
}
.swatch {
  position: relative;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s1) 0 50%, var(--s2) 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  color: #fff;
  font-size: .75rem;
}
.swatch i { opacity: 0; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.theme-swatch[aria-pressed="true"] .swatch i { opacity: 1; }

/* Theme swatches: s1 = dark / background color, s2 = accent color */
[data-theme-value="normal"] .swatch { --s1: #0A1A3A; --s2: #2563EB; }
[data-theme-value="black"]  .swatch { --s1: #09090B; --s2: #3B82F6; }
[data-theme-value="blue"]   .swatch { --s1: #0B1530; --s2: #38BDF8; }
[data-theme-value="green"]  .swatch { --s1: #052E22; --s2: #10B981; }
[data-theme-value="red"]    .swatch { --s1: #3B0A10; --s2: #DC2626; }
[data-theme-value="yellow"] .swatch { --s1: #1F1B07; --s2: #FACC15; }
[data-theme-value="orange"] .swatch { --s1: #3A1606; --s2: #EA580C; }
[data-theme-value="spring"] .swatch { --s1: #22C55E; --s2: #F472B6; }
[data-theme-value="sunny"]  .swatch { --s1: #F97316; --s2: #FCD34D; }

/* ---- Collapsed (mobile) navigation ---- */
@container header (max-width: 68rem) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .nav-open .nav-menu {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
  }
  .nav-links { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-links a { padding: .85rem 1rem; border-radius: var(--r-sm); font-size: 1rem; }
  .nav-cta-mobile { display: flex; }
}
@container header (max-width: 44rem) {
  .nav-actions .nav-cta { display: none; }
}
@container header (max-width: 24rem) {
  .icon-btn .caret { display: none; }
  .nav-actions { gap: .35rem; }
}


/* =====================================================================
   08. HERO
   ===================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 6rem);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 32rem at 50% -8%, var(--primary-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 75%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 30%, transparent 75%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.glow-1 {
  width: 34rem; height: 34rem;
  top: -14rem; inset-inline-start: -10rem;
  background: var(--primary);
  opacity: .16;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-2 {
  width: 30rem; height: 30rem;
  top: 12rem; inset-inline-end: -12rem;
  background: var(--accent);
  opacity: .14;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.hero-copy {
  max-width: 54rem;
  margin-inline: auto;
  text-align: center;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .3rem .95rem;
  padding-inline-start: .3rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  transition: border-color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur);
}
.badge-pill:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.badge-pill i { font-size: .75rem; color: var(--primary-ink); }
.badge-new {
  padding: .2rem .65rem;
  border-radius: var(--r-full);
  background: var(--grad-brand);
  color: var(--on-primary);
  font-size: .75rem;
  font-weight: 700;
}

.hero h1 {
  margin-block: 1.5rem 1.25rem;
  font-size: clamp(2.3rem, 1.1rem + 4.6vw, 4.35rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
html:is([lang="ar"], [lang="he"]) .hero h1 { line-height: 1.25; letter-spacing: 0; }

.hero-sub {
  max-width: 42rem;
  margin-inline: auto;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: var(--text-muted);
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2.25rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  margin-top: 1.75rem;
  font-size: .875rem;
  color: var(--text-muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta i { color: var(--success); }

/* ---- Hero composition: laptop + tablet ---- */
.hero-visual {
  position: relative;
  max-width: 1080px;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  aspect-ratio: 1080 / 700;
}
.hero-visual::before {                 /* soft colored floor glow */
  content: "";
  position: absolute;
  inset: 18% 6% -4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 32%, transparent), transparent);
  filter: blur(40px);
}
.hero-visual .device-laptop {
  position: absolute;
  top: 0;
  inset-inline-start: 1.5%;
  width: 75%;
}
.hero-visual .device-tablet {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 43%;
}

/* ---- Floating status chips ---- */
.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem 1rem;
  padding-inline-start: .65rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  font-size: .8125rem;
  line-height: 1.35;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-chip strong { display: block; color: var(--text); font-weight: 600; }
.float-chip small { display: block; color: var(--text-muted); font-size: .75rem; }
.chip-icon {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: .65rem;
  background: var(--primary-soft);
  color: var(--primary-ink);
}
.chip-icon--success { background: var(--success-soft); color: var(--success-ink); }
.chip-1 { top: 9%; inset-inline-end: 1%; }
.chip-2 { bottom: 3%; inset-inline-start: 5%; animation-delay: -3s; }


/* =====================================================================
   09. DEVICE MOCKUPS & MINI APPS
   Each device is a size container: inner sizes use `cqw` (percent of the
   device width) and `em`, so the whole screen scales like an image.
   ===================================================================== */
.mockup { font-family: var(--font); line-height: 1.3; }
.mockup * { line-height: inherit; }

/* ---------- Laptop ---------- */
.device-laptop {
  container-type: inline-size;
  filter: drop-shadow(0 30px 40px rgba(var(--shadow-rgb), .25));
}
.laptop-lid {
  position: relative;
  padding: 2cqw 2cqw 2.4cqw;
  border-radius: 2.4cqw 2.4cqw .8cqw .8cqw;
  background: var(--device-frame);
  box-shadow: inset 0 0 0 .25cqw rgba(255, 255, 255, .09);
}
.laptop-lid::before {                         /* webcam */
  content: "";
  position: absolute;
  top: .75cqw;
  left: 50%;
  width: .6cqw;
  height: .6cqw;
  border-radius: 50%;
  background: #2D3748;
  transform: translateX(-50%);
}
.laptop-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: .5cqw;
  background: var(--bg-alt);
}
.laptop-screen::after, .tablet-screen::after {  /* glass reflection */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .10) 0%, transparent 32%);
}
.laptop-base {
  position: relative;
  width: 114%;
  height: 2.6cqw;
  margin-inline-start: -7%;
  border-radius: 0 0 3cqw 3cqw / 0 0 2.2cqw 2.2cqw;
  background: linear-gradient(180deg, var(--device-base-1) 0%, var(--device-base-2) 100%);
  box-shadow: inset 0 .3cqw .3cqw rgba(255, 255, 255, .45);
}
.laptop-base::before {                        /* opening notch */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 42%;
  border-radius: 0 0 1.2cqw 1.2cqw;
  background: rgba(0, 0, 0, .18);
  transform: translateX(-50%);
}

/* ---------- ERP dashboard (inside the laptop) ---------- */
.erp-app {
  display: grid;
  grid-template-columns: 3.6em 1fr;
  height: 100%;
  font-size: 1.5cqw;
  color: var(--text);
  background: var(--bg-alt);
  text-align: start;
}
.erp-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55em;
  padding: 1em 0;
  background: var(--dark-bg);
}
.erp-logo {
  width: 2em; height: 2em;
  margin-bottom: .7em;
  display: grid; place-items: center;
  border-radius: .55em;
  background: var(--grad-brand);
  color: var(--on-primary);
}
.erp-nav {
  width: 2.3em; height: 2.3em;
  display: grid; place-items: center;
  border-radius: .6em;
  color: var(--dark-muted);
  font-size: .95em;
}
.erp-nav.is-active {
  color: var(--dark-text);
  background: color-mix(in srgb, var(--dark-text) 12%, transparent);
  box-shadow: inset 3px 0 0 var(--dark-accent);
}
.erp-nav--bottom { margin-top: auto; }

.erp-main {
  display: flex;
  flex-direction: column;
  gap: .9em;
  min-width: 0;
  padding: 1.1em 1.3em;
  overflow: hidden;
}
.erp-topbar { display: flex; align-items: center; gap: .8em; }
.erp-title { font-size: 1.25em; font-weight: 700; margin-inline-end: auto; white-space: nowrap; }
.erp-search {
  display: flex; align-items: center; gap: .5em;
  width: 13em;
  padding: .5em .8em;
  border: 1px solid var(--border);
  border-radius: .6em;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .85em;
  white-space: nowrap;
  overflow: hidden;
}
.erp-live {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .35em .75em;
  border-radius: var(--r-full);
  background: var(--success-soft);
  color: var(--success-ink);
  font-size: .8em;
  font-weight: 600;
  white-space: nowrap;
}
.erp-avatar {
  width: 2.2em; height: 2.2em;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--on-primary);
  font-size: .85em;
}
.live-dot {
  width: .55em; height: .55em;
  flex-shrink: 0;
  display: inline-block;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

.erp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8em; }
.kpi {
  display: flex; flex-direction: column; gap: .2em;
  min-width: 0;
  padding: .8em .9em;
  border: 1px solid var(--border);
  border-radius: .8em;
  background: var(--surface);
}
.kpi-label { font-size: .78em; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-size: 1.45em; font-weight: 700; letter-spacing: -0.02em; }
.kpi-trend {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: .72em; font-weight: 600;
  color: var(--success-ink);
  white-space: nowrap;
}

.erp-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: .8em;
  min-height: 0;
}
.erp-card {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  padding: .9em 1em;
  border: 1px solid var(--border);
  border-radius: .8em;
  background: var(--surface);
}
.erp-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5em;
  margin-bottom: .7em;
  font-size: .9em;
  font-weight: 600;
  white-space: nowrap;
}
.erp-chip {
  padding: .2em .65em;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: .82em;
  font-weight: 500;
}

/* Bar chart */
.bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: .55em;
  padding-top: .5em;
  border-bottom: 1px solid var(--border);
  background-image: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--border) calc(25% - 1px) 25%);
}
.bars span {
  flex: 1;
  height: var(--h);
  border-radius: .35em .35em .12em .12em;
  background: color-mix(in srgb, var(--primary) 26%, var(--surface));
  transform-origin: bottom;
  animation: grow 1.1s var(--ease) both;
  animation-delay: calc(var(--i) * 60ms + 200ms);
}
.bars span.is-hot { background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent))); }
.bars span.is-current { background: var(--grad-brand); box-shadow: 0 0 1.2em -.2em color-mix(in srgb, var(--primary) 70%, transparent); }
.reveal:not(.is-visible) .bars span { animation-play-state: paused; }

/* Recent orders */
.erp-orders ul { display: flex; flex-direction: column; }
.erp-orders li {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .6em;
  padding: .52em 0;
  border-bottom: 1px solid var(--border);
  font-size: .8em;
}
.erp-orders li:last-child { border-bottom: 0; }
.o-icon {
  width: 2em; height: 2em;
  display: grid; place-items: center;
  border-radius: .5em;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: .95em;
}
.o-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-amount { font-weight: 700; }

/* ---------- Android tablet ---------- */
.device-tablet {
  container-type: inline-size;
  filter: drop-shadow(0 30px 40px rgba(var(--shadow-rgb), .3));
}
.tablet-frame {
  position: relative;
  padding: 2.4cqw;
  border-radius: 4.2cqw;
  background: linear-gradient(145deg, #3B4356 0%, #121620 38%, #1C212D 100%);
  box-shadow: inset 0 0 0 .35cqw #0A0D14, inset 0 0 0 .6cqw rgba(255, 255, 255, .08);
}
.tablet-frame::before,
.tablet-frame::after {                        /* volume & power buttons */
  content: "";
  position: absolute;
  top: -.45cqw;
  height: .6cqw;
  border-radius: .4cqw .4cqw 0 0;
  background: #2B3242;
}
.tablet-frame::before { left: 12%; width: 9%; }
.tablet-frame::after  { left: 24%; width: 5%; }
.tablet-camera {
  position: absolute;
  top: .9cqw;
  left: 50%;
  width: .9cqw;
  height: .9cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #54648A 0%, #0A0D14 60%);
  transform: translateX(-50%);
}
.tablet-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1.6cqw;
  background: var(--bg-alt);
}

/* ---------- Agent app (inside the tablet) ---------- */
.agent-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-size: 2.45cqw;
  color: var(--text);
  background: var(--bg-alt);
  text-align: start;
}
.device-tablet--split .agent-app { font-size: 1.95cqw; }

.android-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: .4em 1.3em;
  background: var(--surface);
  color: var(--text);
  font-size: .7em;
  font-weight: 600;
}
.status-icons { display: flex; gap: .55em; }

.agent-appbar {
  display: flex; align-items: center; gap: .8em;
  padding: .7em 1.1em;
  background: var(--primary);
  color: var(--on-primary);
}
.agent-appbar strong { margin-inline-end: auto; font-size: 1.05em; white-space: nowrap; }
.agent-appbar--light {
  background: var(--surface);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.agent-appbar--light > i:first-child { color: var(--success-ink); }
.agent-chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .3em .7em;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--on-primary) 18%, transparent);
  font-size: .72em;
  font-weight: 600;
  white-space: nowrap;
}

.agent-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: .9em;
  min-height: 0;
  padding: .9em 1.1em;
}
.agent-customer {
  display: flex; align-items: center; gap: .7em;
  padding: .55em .8em;
  border: 1px solid var(--border);
  border-radius: .7em;
  background: var(--surface);
}
.cust-icon {
  width: 2.2em; height: 2.2em;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: .55em;
  background: var(--primary-soft);
  color: var(--primary-ink);
}
.cust-text { display: flex; flex-direction: column; min-width: 0; }
.cust-text small { font-size: .7em; color: var(--text-muted); }
.cust-text strong { font-size: .86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-customer > i { margin-inline-start: auto; color: var(--text-muted); font-size: .8em; }

.agent-label {
  margin: .85em 0 .5em;
  font-size: .7em;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
html:is([lang="ar"], [lang="he"]) .agent-label { letter-spacing: 0; }

.agent-items { display: flex; flex-direction: column; gap: .5em; }
.agent-items li {
  display: flex; align-items: center; gap: .7em;
  padding: .5em .7em;
  border: 1px solid var(--border);
  border-radius: .7em;
  background: var(--surface);
}
.item-thumb {
  width: 2.2em; height: 2.2em;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: .55em;
  font-size: .95em;
}
/* product thumbnail tints */
.t1 { background: color-mix(in srgb, #F59E0B 18%, var(--surface)); color: #C77700; }
.t2 { background: color-mix(in srgb, #0EA5E9 16%, var(--surface)); color: #0284C7; }
.t3 { background: color-mix(in srgb, #10B981 16%, var(--surface)); color: #059669; }
.t4 { background: color-mix(in srgb, #A16207 18%, var(--surface)); color: #92400E; }
.t5 { background: color-mix(in srgb, #EC4899 14%, var(--surface)); color: #DB2777; }

.item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-info strong { font-size: .82em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-info small { font-size: .72em; color: var(--text-muted); }
.qty {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .25em .4em;
  border-radius: var(--r-full);
  background: var(--surface-2);
  font-size: .78em;
}
.qty i {
  width: 1.6em; height: 1.6em;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary-ink);
  font-size: .72em;
  box-shadow: var(--shadow-sm);
}
.qty b { min-width: 1.3em; text-align: center; }
.line-total { font-size: .82em; }

.order-summary {
  display: flex; flex-direction: column; gap: .5em;
  padding: .9em 1em;
  border: 1px solid var(--border);
  border-radius: .8em;
  background: var(--surface);
}
.order-summary .agent-label { margin-top: 0; }
.sum-row { display: flex; justify-content: space-between; gap: .5em; font-size: .8em; color: var(--text-muted); }
.sum-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: .5em;
  margin-top: auto;
  padding-top: .6em;
  border-top: 1px dashed var(--border);
}
.sum-total span { font-size: .85em; font-weight: 600; }
.sum-total strong { font-size: 1.35em; font-weight: 800; letter-spacing: -0.02em; }
.order-summary--compact { padding: .6em .9em; gap: .3em; }
.order-summary--compact .sum-total { margin-top: 0; padding-top: .35em; }
.order-summary--compact .sum-total strong { font-size: 1.2em; }

.agent-btn {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: .5em;
  margin-top: .3em;
  padding: .75em;
  border-radius: .7em;
  background: var(--primary);
  color: var(--on-primary);
  font-size: .85em;
  font-weight: 700;
  box-shadow: 0 .5em 1em -.45em color-mix(in srgb, var(--primary) 75%, transparent);
}
.agent-btn--tap::after {                      /* recurring "tap" ripple */
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 3em; height: 3em;
  margin: -1.5em 0 0 -1.5em;
  border-radius: 50%;
  background: color-mix(in srgb, var(--on-primary) 45%, transparent);
  transform: scale(0);
  animation: tap 4s ease-out infinite 1s;
}

/* Split screen (Create Order | Receipt) */
.agent-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 0;
}
.agent-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.agent-pane-body {
  flex: 1;
  display: flex; flex-direction: column; gap: .55em;
  min-height: 0;
  padding: .8em 1em;
}
.split-divider {
  position: relative;
  width: .55em;
  background: var(--device-frame);
}
.split-divider::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: .25em; height: 2.6em;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .55);
  transform: translate(-50%, -50%);
}

.receipt { align-items: center; text-align: center; gap: .4em; }
.receipt-check {
  width: 3.2em; height: 3.2em;
  margin-top: .2em;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 1.1em;
  box-shadow: 0 0 0 .45em var(--success-soft), 0 0 0 .9em color-mix(in srgb, var(--success) 7%, transparent);
  animation: pop 4s var(--ease) infinite 1.3s;
}
.receipt-title { margin-top: .5em; font-size: 1.05em; }
.receipt-no { font-size: .72em; color: var(--text-muted); }
.receipt-amount { font-size: 1.8em; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.receipt-details {
  width: 100%;
  padding: .3em .85em;
  border: 1px solid var(--border);
  border-radius: .7em;
  background: var(--surface);
}
.receipt-details div {
  display: flex; justify-content: space-between; gap: .6em;
  padding: .38em 0;
  border-bottom: 1px dashed var(--border);
  font-size: .72em;
}
.receipt-details div:last-child { border-bottom: 0; }
.receipt-details span { color: var(--text-muted); }
.receipt-details b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; width: 100%; }
.receipt-actions > span {
  display: flex; align-items: center; justify-content: center; gap: .4em;
  padding: .6em;
  border: 1px solid var(--border);
  border-radius: .6em;
  background: var(--surface);
  font-size: .76em;
  font-weight: 600;
}
.receipt-actions > span:first-child { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.receipt-sent { display: flex; align-items: center; gap: .4em; font-size: .7em; font-weight: 600; color: var(--success-ink); }

/* ---------- Browser window (ERP inventory) ---------- */
.browser-window {
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
}
.browser-bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.browser-bar .dots { display: flex; gap: .4rem; direction: ltr; }
.browser-bar .dots i { width: .7rem; height: .7rem; border-radius: 50%; background: #FF5F57; }
.browser-bar .dots i:nth-child(2) { background: #FEBC2E; }
.browser-bar .dots i:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1;
  max-width: 22rem;
  margin-inline: auto;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .3rem .8rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .75rem;
  direction: ltr;
  white-space: nowrap;
  overflow: hidden;
}
.browser-url i { font-size: .65rem; color: var(--success-ink); }

.inv-app {
  padding: 1.2em 1.3em 1.4em;
  font-size: 1.72cqw;
  color: var(--text);
  background: var(--bg-alt);
  text-align: start;
}
.inv-tabs { display: flex; gap: .4em; margin-bottom: 1em; overflow: hidden; }
.inv-tabs > span {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .5em .9em;
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-size: .85em;
  font-weight: 600;
  white-space: nowrap;
}
.inv-tabs > span.is-active { background: var(--surface); color: var(--primary-ink); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.inv-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: .9em; }
.inv-side { display: flex; flex-direction: column; gap: .9em; min-width: 0; }

.inv-stock ul { display: flex; flex-direction: column; }
.inv-stock li {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr) 5.5em 3.2em;
  align-items: center;
  gap: .7em;
  padding: .55em 0;
  border-bottom: 1px solid var(--border);
}
.inv-stock li:last-child { border-bottom: 0; }
.inv-name { display: flex; flex-direction: column; min-width: 0; }
.inv-name strong { font-size: .82em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-name small { font-size: .7em; color: var(--text-muted); text-align: start; }
.stock-bar { height: .45em; border-radius: var(--r-full); background: var(--surface-2); overflow: hidden; }
.stock-bar span {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: inherit;
  background: var(--grad-brand);
}
.is-low .stock-bar span { background: var(--danger); }
.is-low .inv-qty { color: var(--danger-ink); }
.inv-qty { font-size: .82em; text-align: end; }

.donut-wrap { display: flex; align-items: center; gap: 1em; }
.donut {
  position: relative;
  width: 6.2em;
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 52%, var(--accent) 52% 80%, var(--warning) 80% 100%);
}
.donut::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--surface);
}
.donut-center {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-size: .85em;
}
.legend { display: flex; flex-direction: column; gap: .45em; font-size: .75em; min-width: 0; }
.legend li { display: flex; align-items: center; gap: .5em; white-space: nowrap; }
.dot { width: .7em; height: .7em; border-radius: 50%; flex-shrink: 0; }
.dot-1 { background: var(--primary); }
.dot-2 { background: var(--accent); }
.dot-3 { background: var(--warning); }

.inv-roles ul { display: flex; flex-direction: column; gap: .5em; }
.inv-roles li { display: flex; align-items: center; gap: .6em; font-size: .8em; }
.role-avatar {
  width: 2.1em; height: 2.1em;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: .9em;
}
.r1 { background: var(--primary); color: var(--on-primary); }
.r2 { background: var(--success); }
.r3 { background: var(--warning); }
.role-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-roles .pill { font-size: .82em; }


/* =====================================================================
   10. PRODUCTS
   ===================================================================== */
.product {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.product + .product { margin-top: clamp(5rem, 10vw, 8rem); }
.product--reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.product--reverse .product-copy { order: 2; }

.product-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .8rem;
  border-radius: var(--r-full);
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: .8125rem;
  font-weight: 600;
}
.product-copy h3 {
  margin-block: 1.1rem .9rem;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.product-copy .lead { font-size: 1.125rem; color: var(--text-muted); }

.feature-list { display: grid; gap: 1.1rem; margin-block: 2rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list li > span:last-child { display: flex; flex-direction: column; }
.feature-list strong { font-weight: 600; color: var(--text); }
.feature-list li > span:last-child > span { font-size: .9375rem; color: var(--text-muted); }
.feature-icon {
  width: 2.6rem; height: 2.6rem;
  flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: .8rem;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 1.05rem;
  transition: transform var(--dur) var(--ease), background-color var(--dur), color var(--dur);
}
.feature-list li:hover .feature-icon { transform: scale(1.08); background: var(--primary); color: var(--on-primary); }

.product-visual { position: relative; }
.product-visual::before {                     /* colored halo behind the mockup */
  content: "";
  position: absolute;
  inset: 8% 6%;
  z-index: -1;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: .22;
  filter: blur(60px);
}


/* =====================================================================
   11. HOW IT WORKS (timeline)
   ===================================================================== */
.section-dark {
  isolation: isolate;
  overflow: clip;
  background: var(--dark-bg);
  color: var(--dark-text);
}
.section-dark::before {                       /* subtle grid + glow */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50rem 24rem at 50% 0%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--dark-text) 5%, transparent) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, color-mix(in srgb, var(--dark-text) 5%, transparent) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
}
.section-dark h2, .section-dark h3 { color: var(--dark-text); }
.section-dark .section-head p:not(.eyebrow) { color: var(--dark-muted); }
.section-dark .eyebrow,
.contact .eyebrow {
  color: var(--dark-accent);
  background: color-mix(in srgb, var(--dark-accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--dark-accent) 32%, transparent);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
/* static line + moving light running through the three icons */
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 2.25rem;
  inset-inline: 16.66%;
  height: 2px;
}
.timeline::before {
  background: linear-gradient(90deg, var(--dark-border), color-mix(in srgb, var(--dark-accent) 45%, transparent), var(--dark-border));
}
.timeline::after {
  background: linear-gradient(90deg, transparent, var(--dark-accent), transparent) no-repeat;
  background-size: 30% 100%;
  animation: flow 3.2s linear infinite;
}

.step { position: relative; text-align: center; }
.step-icon {
  position: relative;
  z-index: 1;
  width: 4.5rem; height: 4.5rem;
  margin: 0 auto 1.5rem;
  display: grid; place-items: center;
  border: 1px solid var(--dark-border);
  border-radius: 1.25rem;
  background: var(--dark-bg-2);
  color: var(--dark-accent);
  font-size: 1.6rem;
  box-shadow: 0 0 0 8px var(--dark-bg), 0 14px 30px -12px color-mix(in srgb, var(--primary) 70%, transparent);
  transition: transform .35s var(--ease);
}
.step:hover .step-icon { transform: translateY(-4px) rotate(-4deg); }
.step-num {
  position: absolute;
  top: -.6rem;
  inset-inline-end: -.6rem;
  width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: .8125rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--dark-bg);
}
.step-body {
  height: calc(100% - 6rem);
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--dark-border);
  border-radius: var(--r-lg);
  background: var(--dark-surface);
  transition: border-color var(--dur), transform var(--dur) var(--ease), background-color var(--dur);
}
.step:hover .step-body {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--dark-accent) 45%, transparent);
  background: color-mix(in srgb, var(--dark-accent) 6%, transparent);
}
.step-label {
  margin-bottom: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dark-accent);
}
html:is([lang="ar"], [lang="he"]) .step-label { letter-spacing: 0; font-size: .8125rem; }
.step h3 { margin-bottom: .6rem; font-size: 1.25rem; }
.step p:not(.step-label) { color: var(--dark-muted); }
.step-tag {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: 1.1rem;
  padding: .35rem .75rem;
  border: 1px solid var(--dark-border);
  border-radius: var(--r-full);
  color: var(--dark-text);
  font-size: .8125rem;
  font-weight: 500;
}
.step-tag i { color: var(--dark-accent); }


/* =====================================================================
   12. BENEFITS
   ===================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}
.benefit-card {
  --mx: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color var(--dur);
}
.benefit-card::before {                       /* spotlight that follows the pointer */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(22rem 14rem at var(--mx) 0%, var(--primary-soft), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur);
}
.benefit-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-lg);
}
.benefit-card:hover::before { opacity: 1; }
.benefit-icon {
  width: 3.25rem; height: 3.25rem;
  margin-bottom: 1.4rem;
  display: grid; place-items: center;
  border-radius: .95rem;
  background: var(--grad-brand);
  color: var(--on-primary);
  font-size: 1.3rem;
  box-shadow: 0 12px 22px -10px color-mix(in srgb, var(--primary) 70%, transparent);
  transition: transform .35s var(--ease);
}
.benefit-card:hover .benefit-icon { transform: rotate(-6deg) scale(1.07); }
.benefit-card h3 { margin-bottom: .6rem; font-size: 1.2rem; }
.benefit-card p { color: var(--text-muted); font-size: .975rem; }


/* =====================================================================
   13. SOCIAL PROOF
   ===================================================================== */
.logos-title {
  margin-bottom: 2rem;
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
html:is([lang="ar"], [lang="he"]) .logos-title { letter-spacing: 0; font-size: 1rem; }

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(3.5rem, 7vw, 5rem);
}
.logo-item {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--text-muted);
  font-family: var(--font-latin);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  direction: ltr;
  opacity: .6;
  filter: grayscale(1);
  transition: opacity var(--dur), filter var(--dur), color var(--dur), transform var(--dur) var(--ease);
}
.logo-item:hover { opacity: 1; filter: none; color: var(--text); transform: translateY(-2px); }
.logo-item i { color: var(--logo-color); }
/* Each fake brand gets its own "wordmark" feel */
.logo-harborline { --logo-color: #0EA5E9; }
.logo-apexa      { --logo-color: #F97316; letter-spacing: .12em; font-weight: 800; font-size: 1.2rem; }
.logo-nordwave   { --logo-color: #6366F1; font-weight: 600; letter-spacing: -0.04em; }
.logo-verdant    { --logo-color: #16A34A; font-style: italic; font-weight: 600; }
.logo-quartzio   { --logo-color: #EC4899; font-weight: 800; }

.testimonial {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 56rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.testimonial::before {                        /* gradient top edge */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--grad-brand);
}
.testimonial::after {                         /* big faded quote mark */
  content: "\201C";
  position: absolute;
  top: .25rem;
  inset-inline-start: 1.75rem;
  z-index: -1;
  font-family: Georgia, serif;
  font-size: 9rem;
  line-height: 1;
  color: var(--primary);
  opacity: .07;
}
.stars { display: inline-flex; gap: .25rem; margin-bottom: 1.25rem; color: #F5B301; font-size: .95rem; }
.testimonial blockquote p {
  font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: pretty;
}
html:is([lang="ar"], [lang="he"]) .testimonial blockquote p { letter-spacing: 0; line-height: 1.75; }
.testimonial figcaption {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 2rem;
  text-align: start;
}
.testimonial figcaption > span:last-child { display: flex; flex-direction: column; }
.testimonial figcaption strong { color: var(--text); }
.testimonial figcaption > span:last-child > span { font-size: .9rem; color: var(--text-muted); }
.avatar {
  width: 3.25rem; height: 3.25rem;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--on-primary);
  font-size: 1.2rem;
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 60rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
}
.stats li {
  padding: 1.25rem .75rem;
  border-radius: var(--r-md);
  text-align: center;
}
.stats strong {
  display: block;
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats li > span { font-size: .9375rem; color: var(--text-muted); }


/* =====================================================================
   14. PRICING
   ===================================================================== */
.billing-toggle {
  display: flex;
  width: fit-content;
  gap: .25rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  padding: .3rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.billing-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.2rem;
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-size: .9375rem;
  font-weight: 600;
  transition: background-color var(--dur), color var(--dur);
}
.billing-btn:hover { color: var(--text); }
.billing-btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.save-badge {
  padding: .15rem .5rem;
  border-radius: var(--r-full);
  background: var(--success-soft);
  color: var(--success-ink);
  font-size: .72rem;
  font-weight: 700;
}
.billing-btn[aria-pressed="true"] .save-badge { background: color-mix(in srgb, var(--on-primary) 20%, transparent); color: inherit; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
  max-width: 72rem;
  margin-inline: auto;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color var(--dur);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.is-featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-brand) border-box;
  box-shadow: var(--shadow-xl);
}
@media (min-width: 961px) {
  .price-card.is-featured { transform: scale(1.04); }
  .price-card.is-featured:hover { transform: scale(1.04) translateY(-6px); }
}
.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem 1rem;
  border-radius: var(--r-full);
  background: var(--grad-brand);
  color: var(--on-primary);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--primary) 80%, transparent);
  transform: translate(-50%, -50%);
}
.price-card h3 { font-size: 1.3rem; }
.price-desc { margin-top: .4rem; color: var(--text-muted); font-size: .9375rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; }
.price-value {
  color: var(--text);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.price-currency { margin-right: .08em; font-size: .55em; vertical-align: .6em; font-weight: 700; }
.price-period { color: var(--text-muted); font-weight: 500; }
.price--custom .price-value { font-size: 2.5rem; letter-spacing: -0.03em; }
.price-note { margin-top: .5rem; font-size: .8125rem; color: var(--text-muted); }
.agent-included {
  display: inline-flex; align-items: center; gap: .55rem;
  width: fit-content;
  padding: .5rem .85rem;
  border-radius: var(--r-sm);
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: .875rem;
  font-weight: 600;
}
.price-features {
  display: flex; flex-direction: column; gap: .8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.price-features li { display: flex; align-items: flex-start; gap: .7rem; font-size: .9375rem; }
.price-features i {
  width: 1.25rem; height: 1.25rem;
  flex-shrink: 0;
  margin-top: .15rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success-ink);
  font-size: .65rem;
}
.price-features .is-excluded { color: var(--text-muted); }
.price-features .is-excluded i { background: var(--surface-2); color: var(--text-muted); }
.price-card > .btn { margin-top: auto; }
.pricing-footnote { margin-top: 2.5rem; text-align: center; font-size: .875rem; color: var(--text-muted); }


/* =====================================================================
   15. CONTACT / DEMO FORM
   ===================================================================== */
.contact {
  isolation: isolate;
  overflow: clip;
  background: var(--dark-bg);
  color: var(--dark-text);
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40rem 30rem at 12% 15%, color-mix(in srgb, var(--primary) 42%, transparent), transparent 70%),
    radial-gradient(34rem 26rem at 92% 95%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%);
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.contact h2 {
  margin-block: 1rem;
  color: var(--dark-text);
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  text-wrap: balance;
}
.contact-copy > p:not(.eyebrow) { color: var(--dark-muted); font-size: 1.125rem; }
.contact-points { display: grid; gap: .9rem; margin-top: 2rem; }
.contact-points li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.contact-points i {
  width: 1.9rem; height: 1.9rem;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--dark-accent) 16%, transparent);
  color: var(--dark-accent);
  font-size: .8rem;
}
.contact-direct { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2.25rem; }
.contact-direct a { display: inline-flex; align-items: center; gap: .6rem; color: var(--dark-text); font-weight: 500; }
.contact-direct a i { color: var(--dark-accent); }
.contact-direct a:hover span { text-decoration: underline; text-underline-offset: 4px; }

.demo-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .5);
}
.demo-form h3 { font-size: 1.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.field label { font-size: .875rem; font-weight: 600; color: var(--text); }
.req { color: var(--danger-ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  outline: 2px solid transparent;       /* visible in Windows High Contrast */
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--text-muted) 75%, transparent); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: .75rem;
  background-position: right .95rem center;
}
.field.is-invalid input,
.field.is-invalid select { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.form-note {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  font-size: .8125rem;
  color: var(--text-muted);
}
.form-status { min-height: 1.25em; font-size: .9rem; font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success-ink); }
.form-status.is-error { color: var(--danger-ink); }


/* =====================================================================
   16. FOOTER
   ===================================================================== */
.site-footer {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  background: var(--dark-bg-2);
  color: var(--dark-muted);
  font-size: .9375rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2.6fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--dark-border);
}
.site-footer .logo { color: var(--dark-text); }
.site-footer .logo-text > span { color: var(--dark-accent); }
.footer-tagline { max-width: 20rem; margin-block: 1.1rem 1.5rem; }
.socials { display: flex; gap: .5rem; }
.socials a {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border: 1px solid var(--dark-border);
  border-radius: .75rem;
  color: var(--dark-muted);
  transition: background-color var(--dur), color var(--dur), border-color var(--dur), transform var(--dur) var(--ease);
}
.socials a:hover { transform: translateY(-3px); background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.footer-col h3 { margin-bottom: 1.1rem; color: var(--dark-text); font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a { color: var(--dark-muted); transition: color var(--dur); }
.footer-col a:hover { color: var(--dark-text); }

.newsletter h3 { margin-bottom: .5rem; color: var(--dark-text); font-size: 1rem; letter-spacing: 0; }
.input-group {
  display: flex;
  gap: .4rem;
  margin-top: 1rem;
  padding: .35rem;
  border: 1px solid var(--dark-border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--dark-text) 5%, transparent);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.input-group:focus-within {
  border-color: var(--dark-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dark-accent) 25%, transparent);
}
.input-group input {
  flex: 1;
  min-width: 0;
  padding: .5rem .7rem;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--dark-text);
}
.input-group input::placeholder { color: var(--dark-muted); }
.newsletter .form-status { margin-top: .6rem; text-align: start; font-size: .85rem; }
.newsletter .form-status.is-success { color: color-mix(in srgb, var(--success) 70%, #fff); }
.newsletter .form-status.is-error { color: color-mix(in srgb, var(--danger) 60%, #fff); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  font-size: .875rem;
}
.back-to-top { display: inline-flex; align-items: center; gap: .5rem; color: var(--dark-muted); }
.back-to-top:hover { color: var(--dark-text); }
.back-to-top i { transition: transform var(--dur) var(--ease); }
.back-to-top:hover i { transform: translateY(-3px); }


/* =====================================================================
   17. ACCESSIBILITY WIDGET
   ===================================================================== */
.a11y-fab {
  position: fixed;
  bottom: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 200;
  width: 3.5rem; height: 3.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1.65rem;
  box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--primary) 80%, transparent),
              0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
  transition: transform .3s var(--ease), background-color var(--dur);
}
.a11y-fab:hover { transform: scale(1.08) rotate(-10deg); background: var(--primary-hover); }
.a11y-fab[aria-expanded="true"] { transform: scale(.94); }
.a11y-count {
  position: absolute;
  top: -.2rem;
  inset-inline-end: -.2rem;
  min-width: 1.35rem; height: 1.35rem;
  padding-inline: .3rem;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: var(--danger);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--bg);
}

.a11y-panel {
  position: fixed;
  bottom: 5.5rem;
  inset-inline-end: 1.25rem;
  z-index: 200;
  width: min(24rem, calc(100vw - 2rem));
  max-height: calc(100vh - 7.5rem);
  max-height: calc(100dvh - 7.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(var(--shadow-rgb), .04);
  animation: panelIn .25s var(--ease);
}
.a11y-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--dark-bg);
  color: var(--dark-text);
}
.a11y-head h2 {
  display: flex; align-items: center; gap: .6rem;
  color: inherit;
  font-size: 1.05rem;
  letter-spacing: 0;
}
.a11y-head h2 i { color: var(--dark-accent); font-size: 1.3rem; }
.a11y-close { background: transparent; border-color: var(--dark-border); color: var(--dark-text); }
.a11y-close:hover { color: var(--dark-text); background: color-mix(in srgb, var(--dark-text) 10%, transparent); }

.a11y-body {
  display: grid;
  gap: 1.15rem;
  padding: 1rem 1.1rem 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.a11y-legend {
  margin-bottom: .55rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
html:is([lang="ar"], [lang="he"]) .a11y-legend { letter-spacing: 0; font-size: .8125rem; }

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .3rem;
  padding: .3rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.segmented button {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .5rem .3rem;
  border-radius: .5rem;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 600;
  transition: background-color var(--dur), color var(--dur);
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--primary-ink); box-shadow: var(--shadow-sm); }
.aa { font-family: var(--font-latin); font-weight: 800; line-height: 1; }
.aa-s { font-size: .95rem; }
.aa-m { font-size: 1.15rem; }
.aa-l { font-size: 1.4rem; }

.a11y-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.a11y-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
  padding: .8rem .35rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: border-color var(--dur), background-color var(--dur), transform var(--dur) var(--ease);
}
.a11y-card i { font-size: 1.2rem; color: var(--primary-ink); }
.a11y-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.a11y-card[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-ink);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.a11y-toggles { display: grid; gap: .5rem; }
.a11y-toggle {
  display: flex; align-items: center; gap: .8rem;
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  text-align: start;
  transition: border-color var(--dur), background-color var(--dur);
}
.a11y-toggle:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.a11y-toggle-icon {
  width: 2.25rem; height: 2.25rem;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: .6rem;
  background: var(--surface-2);
  color: var(--primary-ink);
}
.a11y-toggle-text { flex: 1; min-width: 0; }
.a11y-toggle-text strong { display: block; font-size: .9rem; }
.a11y-toggle-text small { display: block; font-size: .75rem; line-height: 1.35; color: var(--text-muted); }
.switch {
  position: relative;
  width: 2.5rem; height: 1.4rem;
  flex-shrink: 0;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--text-muted) 35%, transparent);
  transition: background-color var(--dur);
}
.switch::after {
  content: "";
  position: absolute;
  top: .2rem;
  inset-inline-start: .2rem;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform var(--dur) var(--ease);
}
.a11y-toggle[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.a11y-toggle[aria-pressed="true"] .switch { background: var(--primary); }
.a11y-toggle[aria-pressed="true"] .switch::after { transform: translateX(1.1rem); }


/* =====================================================================
   18. TOAST, READING MASK & REVEAL-ON-SCROLL
   ===================================================================== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 300;
  display: flex; align-items: center; gap: .65rem;
  max-width: calc(100vw - 2rem);
  padding: .85rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--dark-bg);
  color: var(--dark-text);
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 150%);
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.toast i { color: var(--success); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Reading mask: two dimmed panels leave a bright band around the pointer */
.reading-mask {
  --mask-y: 50vh;
  --mask-gap: 3.75rem;
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}
.reading-mask > div { position: absolute; left: 0; right: 0; background: rgba(4, 8, 20, .6); }
.mask-top { top: 0; height: max(0px, calc(var(--mask-y) - var(--mask-gap))); border-bottom: 3px solid var(--primary); }
.mask-bottom { top: calc(var(--mask-y) + var(--mask-gap)); bottom: 0; border-top: 3px solid var(--primary); }

/* Reveal: elements fade/slide in when scrolled into view (only when JS runs) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.stagger > :nth-child(2) { --delay: .08s; }
.stagger > :nth-child(3) { --delay: .16s; }
.stagger > :nth-child(4) { --delay: .24s; }
.stagger > :nth-child(5) { --delay: .32s; }
.stagger > :nth-child(6) { --delay: .40s; }
.hero-visual.reveal { --delay: .15s; }

/* ---- Keyframes ---- */
@keyframes dropIn  { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes float   { 50% { transform: translateY(-10px); } }
@keyframes drift   { to { transform: translate(4rem, 3rem) scale(1.1); } }
@keyframes grow    { from { transform: scaleY(0); } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); }
  70%  { box-shadow: 0 0 0 .6em transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes flow { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@keyframes tap  {
  0%, 60%  { transform: scale(0); opacity: 1; }
  80%      { transform: scale(4); opacity: 0; }
  100%     { transform: scale(4); opacity: 0; }
}
@keyframes pop {
  0%, 30%, 100% { transform: scale(1); }
  36%           { transform: scale(1.12); }
  44%           { transform: scale(.97); }
  50%           { transform: scale(1); }
}

/* Respect the operating-system "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}


/* =====================================================================
   19. ACCESSIBILITY MODES (component-level)
   ===================================================================== */

/* ---- Invert colors (filter on the root keeps fixed elements working) ---- */
html[data-contrast="invert"] { filter: invert(1) hue-rotate(180deg); }
html[data-contrast="invert"] :is(img, video) { filter: invert(1) hue-rotate(180deg); }

/* ---- Dark & light contrast: flat, strongly outlined, no decoration ---- */
html:is([data-contrast="dark"], [data-contrast="light"]) :is(.hero-bg, .contact-bg) { display: none; }
html:is([data-contrast="dark"], [data-contrast="light"]) .section-dark::before,
html:is([data-contrast="dark"], [data-contrast="light"]) .product-visual::before,
html:is([data-contrast="dark"], [data-contrast="light"]) .hero-visual::before,
html:is([data-contrast="dark"], [data-contrast="light"]) .testimonial::after { display: none; }
html:is([data-contrast="dark"], [data-contrast="light"]) *:not(.field *):not(.input-group) {
  box-shadow: none !important;
  text-shadow: none !important;
}
html:is([data-contrast="dark"], [data-contrast="light"]) :is(.device-laptop, .device-tablet) { filter: none; }
html:is([data-contrast="dark"], [data-contrast="light"]) .site-header {
  background: var(--bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 2px solid var(--border);
}
html:is([data-contrast="dark"], [data-contrast="light"]) :is(.item-thumb, .o-icon, .role-avatar, .cust-icon, .chip-icon, .feature-icon) {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
}
html:is([data-contrast="dark"], [data-contrast="light"]) :is(.section-dark, .contact, .site-footer) { border-block: 2px solid var(--border); }
html:is([data-contrast="dark"], [data-contrast="light"]) .logo-item { opacity: 1; color: var(--text); }
html:is([data-contrast="dark"], [data-contrast="light"]) .float-chip { background: var(--surface); }
html:is([data-contrast="dark"], [data-contrast="light"]) a:not(.btn):not(.logo):not(.badge-pill) { text-decoration: underline; text-underline-offset: 3px; }
html:is([data-contrast="dark"], [data-contrast="light"]) .field :is(input, select, textarea):focus { outline: 3px solid var(--focus); outline-offset: 2px; }
html:is([data-contrast="dark"], [data-contrast="light"]) .stars { color: var(--primary-ink); }

/* ---- Highlight links ---- */
html.a11y-links a[href]:not(.btn) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px;
  background-color: #FFF3A3 !important;
  color: #111 !important;
  outline: 2px solid #111;
  outline-offset: 1px;
  border-radius: 3px;
}
html.a11y-links a[href]:not(.btn) * { color: #111 !important; }
html.a11y-links :is(.btn, button.icon-btn, .billing-btn, .nav-toggle) {
  outline: 3px dashed var(--focus) !important;
  outline-offset: 3px;
}

/* ---- Text spacing (WCAG 1.4.12). Mockups & icons are excluded. ---- */
html.a11y-spacing body :not(.mockup, .mockup *, i, .aa) {
  letter-spacing: .12em !important;
  word-spacing: .16em !important;
  line-height: 1.8 !important;
}
/* Arabic is a joined script: never add letter-spacing */
html.a11y-spacing[lang="ar"] body :not(.mockup, .mockup *, i, .aa) { letter-spacing: 0 !important; word-spacing: .3em !important; }
html.a11y-spacing p { margin-bottom: .35em; }
html.a11y-spacing .btn { white-space: normal; }

/* ---- Color blind: extra non-color cues ---- */
html.a11y-colorblind :is(.link-arrow span, .footer-col a, .contact-direct a span) { text-decoration: underline; text-underline-offset: 3px; }
html.a11y-colorblind .price-features .is-excluded span { text-decoration: line-through; }
html.a11y-colorblind .nav-links a.is-active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---- Low vision: heavier text, big focus ring, large cursor ---- */
html.a11y-lowvision body { font-weight: 500; }
html.a11y-lowvision :is(p, li, span, small, label, a) { font-weight: 500; }
html.a11y-lowvision :focus-visible { outline-width: 4px; outline-offset: 4px; }
html.a11y-lowvision body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11.2-6.6 1 3.8 7.4-3 1.5-3.8-7.5L4 20z' fill='%23000' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto;
}
html.a11y-lowvision .mockup { font-weight: 400; }

/* ---- ADHD friendly: no motion, calmer colors, fewer distractions ---- */
html.a11y-adhd *,
html.a11y-adhd *::before,
html.a11y-adhd *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-adhd { filter: saturate(.75); }
html.a11y-adhd[data-contrast="invert"] { filter: invert(1) hue-rotate(180deg) saturate(.75); }
html.a11y-adhd :is(.glow, .hero-grid, .float-chip) { display: none; }
html.a11y-adhd .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-adhd .reading-mask { display: block; }


/* =====================================================================
   20. RTL (Arabic / Hebrew)
   Most of the layout flips automatically thanks to logical properties
   (margin-inline, inset-inline …). These rules handle the rest.
   ===================================================================== */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .fa-arrow-right.flip-rtl,
[dir="rtl"] .link-arrow:hover i.flip-rtl { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .badge-pill i.flip-rtl { transform: scaleX(-1); }
[dir="rtl"] .timeline::after { animation-direction: reverse; }
[dir="rtl"] .a11y-toggle[aria-pressed="true"] .switch::after { transform: translateX(-1.1rem); }
[dir="rtl"] .field select { background-position: left .95rem center; }
[dir="rtl"] .erp-nav.is-active { box-shadow: inset -3px 0 0 var(--dark-accent); }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
[dir="rtl"] .field input[dir="ltr"]::placeholder { text-align: right; }


/* =====================================================================
   21. RESPONSIVE BREAKPOINTS
   ===================================================================== */

/* ---- Tablet / small laptop ---- */
@media (max-width: 960px) {
  .product,
  .product--reverse,
  .contact-inner { grid-template-columns: 1fr; }
  .product--reverse .product-copy { order: 0; }
  .product-copy { max-width: 40rem; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 28rem; }
  .price-card.is-featured { order: -1; }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links { grid-column: 1 / -1; grid-row: 2; }

  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Vertical timeline ---- */
@media (max-width: 800px) {
  .timeline { grid-template-columns: 1fr; gap: 1.25rem; }
  .timeline::before,
  .timeline::after {
    top: 2.25rem;
    bottom: 2.25rem;
    inset-inline: 2.25rem auto;
    width: 2px;
    height: auto;
  }
  .timeline::before { background: linear-gradient(180deg, var(--dark-border), color-mix(in srgb, var(--dark-accent) 45%, transparent), var(--dark-border)); }
  .timeline::after {
    background: linear-gradient(180deg, transparent, var(--dark-accent), transparent) no-repeat;
    background-size: 100% 30%;
    animation-name: flowY;
  }
  .step {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1.25rem;
    text-align: start;
  }
  .step-icon { margin: 0; }
  .step-body { height: auto; }
}
@keyframes flowY { from { background-position: 0 -40%; } to { background-position: 0 140%; } }

/* ---- Phones ---- */
@media (max-width: 640px) {
  .hero-ctas .btn { width: 100%; }
  .hero-visual { aspect-ratio: 1080 / 780; }
  .hero-visual .device-laptop { width: 86%; inset-inline-start: 0; }
  .hero-visual .device-tablet { width: 56%; }
  .float-chip { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-links { grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .testimonial figcaption { flex-direction: column; text-align: center; }

  .a11y-fab { width: 3.1rem; height: 3.1rem; font-size: 1.45rem; bottom: 1rem; inset-inline-end: 1rem; }
  .a11y-panel { bottom: 4.75rem; inset-inline-end: 1rem; }
}

@media (max-width: 400px) {
  .billing-btn { padding-inline: .9rem; }
  .price-card { padding: 2rem 1.4rem; }
}
