/* ============================================================================
   Auratech marketing site v2 — dark-navy + gold, glass cards, purposeful motion.
   Single stylesheet. RTL-first (logical properties). No third-party CSS.
   Sections alternate .sec-dark / .sec-light; hero glows live inside overflow:clip
   ancestors so nothing can ever cause a horizontal scrollbar.
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --gold: #D4AF37;
  --gold-light: #FFD700;
  --gold-dark: #B8941F;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --navy-950: #0a0e2a;
  --navy-900: #10163a;
  --navy-800: #1a237e;
  --navy-700: #303f9f;
  --navy-500: #5c6bc0;

  /* Light-section neutrals */
  --paper: #f7f8fc;
  --card-light: #ffffff;
  --ink: #1c2333;
  --ink-muted: #5b6472;
  --line: #e6e8ef;

  /* Dark-section neutrals */
  --card-dark: rgba(255, 255, 255, 0.05);
  --card-dark-border: rgba(255, 255, 255, 0.12);
  --text-on-dark: #eef0f8;
  --text-on-dark-muted: #a7adc9;

  /* Gradients */
  --grad-hero: radial-gradient(1200px 700px at 80% -10%, #26307d 0%, #10163a 45%, #0a0e2a 100%);
  --grad-gold: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
  --grad-gold-text: linear-gradient(120deg, #f5d97a, #D4AF37 45%, #FFD700);

  /* Shape & rhythm */
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1160px;
  --section-y: clamp(4rem, 9vw, 7.5rem);

  /* Type scale (fluid) */
  --fs-hero: clamp(2rem, 5.2vw, 3.6rem);
  --fs-h2: clamp(1.5rem, 3.2vw, 2.3rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.4rem);
  --fs-body: 1.0625rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 500ms;
}

/* ---------- Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  /* Belt-and-braces: nothing may ever produce sideways scroll. */
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
a { color: var(--navy-700); }

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.is-hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link — visually hidden until keyboard focus. */
.skip-link {
  position: absolute;
  inset-inline-start: -999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--navy-950);
  padding: 0.5rem 1.25rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { inset-inline-start: 1rem; }

/* Focus visibility everywhere. */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Section shell ------------------------------------------------ */
.section { padding-block: var(--section-y); }
.sec-light { background: var(--paper); color: var(--ink); }
.sec-dark { background: var(--navy-950); color: var(--text-on-dark); }
.sec-dark p { color: var(--text-on-dark-muted); }
.sec-dark h2, .sec-dark h3 { color: var(--text-on-dark); }

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  text-align: center;
  position: relative;
  padding-bottom: 0.55em;
  margin-bottom: 1.2em;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 50%;
  translate: 50% 0;                 /* RTL-safe centering */
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 700ms var(--ease-out) 150ms;
}
html:not(.js) .section-title::after,
.in .section-title::after,
.section-title.in::after { transform: scaleX(1); }

.section-lead {
  max-width: 65ch;
  margin-inline: auto;
  text-align: center;
  font-size: 1.1rem;
}
.sec-light .section-lead { color: var(--ink-muted); }

/* Wave divider between section modes. Block-level → can never overflow. */
.divider { line-height: 0; }
.divider-svg { display: block; width: 100%; height: 56px; }
.divider--flip .divider-svg { transform: scaleY(-1); }
.divider-svg--dark path { fill: var(--navy-950); }
.divider-svg--light path { fill: var(--paper); }
/* Divider sits on the section it "leaves" — color the gap correctly. */
.divider--on-dark { background: var(--navy-950); }
.divider--on-light { background: var(--paper); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.75rem;
  border-radius: 12px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out),
              background-color 250ms var(--ease-out), color 250ms var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--grad-gold);
  color: var(--navy-950);
  box-shadow: 0 8px 24px var(--gold-glow);
}
.btn-gold:hover { box-shadow: 0 12px 32px var(--gold-glow); }
/* Sheen sweep on hover. */
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  translate: 100% 0;
  transition: translate 600ms var(--ease-out);
}
.btn-gold:hover::after { translate: -100% 0; }

/* Outline buttons — one per background mode (fixes v1's invisible-outline papercut). */
.btn-ghost-dark {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost-dark:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-ghost-light {
  border-color: var(--navy-700);
  color: var(--navy-800);
  background: transparent;
}
.btn-ghost-light:hover { background: rgba(48, 63, 159, 0.07); }

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out),
              backdrop-filter 300ms var(--ease-out);
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(10, 14, 42, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--card-dark-border);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.scrolled, .site-header.solid { background: rgba(10, 14, 42, 0.96); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand { text-decoration: none; }
.brand-mark {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-on-dark);
  transition: text-shadow 250ms var(--ease-out), color 250ms var(--ease-out);
}
.brand:hover .brand-mark { color: var(--gold-light); text-shadow: 0 0 24px var(--gold-glow); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-block: 0.35rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transition: transform 250ms var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-light); }
.btn-login { min-height: 42px; padding: 0.35rem 1.4rem; font-size: 1rem; }
.login-wrap { display: flex; align-items: center; gap: 0.6rem; }
.login-hint { color: var(--text-on-dark-muted); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.footer-login .login-hint { margin-bottom: 0.15rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--card-dark-border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: var(--text-on-dark);
  transition: transform 250ms var(--ease-out), opacity 250ms var(--ease-out);
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(4, 6, 20, 0.6);
}

/* Header sits over light pages too — keep it dark always (design: dark chrome). */
.site-header { background: var(--navy-950); }
.site-header:not(.scrolled) { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: clip;                        /* contains glow orbs & tilted mockups */
  background: var(--grad-hero);
  color: var(--text-on-dark);
  padding-block: clamp(4rem, 10vw, 7rem) clamp(3rem, 8vw, 6rem);
}
/* Dotted grid texture. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
/* Gold glow orbs. */
.hero-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--grad-gold);
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}
.hero-orb--1 { top: -160px; inset-inline-start: -120px; }
.hero-orb--2 { bottom: -220px; inset-inline-end: -140px; opacity: 0.1; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero-inner--single { grid-template-columns: minmax(0, 1fr); text-align: center; }
.hero-inner--single .hero-actions, .hero-inner--single .hero-trust { justify-content: center; }

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 0.4em;
}
.hero-title .grad {
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-on-dark-muted);
  max-width: 58ch;
  margin-bottom: 1.6em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  font-size: 0.98rem;
}
.hero-trust .icon { color: var(--gold); flex: none; }

/* Floating framed screenshot. */
.hero-visual { position: relative; min-width: 0; }
.mock {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
  border: 1px solid var(--card-dark-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 10px 40px var(--gold-glow);
}
.mock-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--card-dark-border);
}
.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.mock-bar i:first-child { background: var(--gold); }
.mock img { display: block; width: 100%; }
.hero-visual .mock {
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}
html.js .hero-visual .mock { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: perspective(1200px) rotateY(-6deg) rotateX(3deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(-6deg) rotateX(3deg) translateY(-8px); }
}

/* Hero stat chips (mawrid). */
.hero-stats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--card-dark-border);
  background: var(--card-dark);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-on-dark);
}
.stat-chip .stat-num { color: var(--gold-light); font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-chip .icon { color: var(--gold); }

/* ---------- Cards -------------------------------------------------------- */
.card-grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out),
              border-color 250ms var(--ease-out);
}
.card:hover { transform: translateY(-4px); }

/* Light-mode card. */
.sec-light .card, .card--light {
  background: var(--card-light);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(26, 35, 126, 0.05);
}
.sec-light .card:hover { box-shadow: 0 14px 34px rgba(26, 35, 126, 0.12); border-color: rgba(212, 175, 55, 0.5); }

/* Dark-mode glass card. */
.sec-dark .card, .card--glass {
  background: var(--card-dark);
  border: 1px solid var(--card-dark-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: relative;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sec-dark .card, .card--glass { background: rgba(26, 32, 74, 0.85); }
}
.sec-dark .card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 12%;
  height: 2px;
  border-radius: 1px;
  background: var(--grad-gold);
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
}
.sec-dark .card:hover::before { opacity: 1; }
.sec-dark .card:hover { border-color: rgba(212, 175, 55, 0.35); }

.card h3 { font-size: var(--fs-h3); font-weight: 700; margin-bottom: 0.4em; }
.card p { margin-bottom: 0; }
.sec-light .card p { color: var(--ink-muted); }

/* Icon chip. */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.13);
  color: var(--gold-dark);
  margin-bottom: 0.9rem;
}
.sec-dark .icon-chip { background: rgba(212, 175, 55, 0.15); color: var(--gold-light); }

/* Product card. */
.product-card { display: block; text-decoration: none; color: inherit; }
.product-tagline { font-weight: 700; color: var(--navy-700); margin-bottom: 0.35em; }
.product-desc { color: var(--ink-muted); }
.product-cta { display: inline-block; margin-top: 0.8rem; font-weight: 700; color: var(--gold-dark); }
.product-card--soon { opacity: 0.55; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 420px)); justify-content: center; gap: 1.5rem; }

/* ---------- Steps (كيف نبدأ معك؟) ---------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 0.5rem; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--navy-950);
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 6px 18px var(--gold-glow);
  margin-bottom: 0.9rem;
}
/* Connector line between steps (hidden on single column). */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.9rem;
  inset-inline-start: 64px;
  inset-inline-end: -0.75rem;
  height: 2px;
  background: linear-gradient(to left, var(--gold-glow), transparent);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-muted); margin: 0; }
.step-link { display: inline-block; margin-top: 0.6rem; color: var(--gold-dark); font-weight: 700; text-decoration: none; }
.step-link:hover { text-decoration: underline; }

/* ---------- FAQ ----------------------------------------------------------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--card-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.sec-dark .faq-item { background: var(--card-dark); border-color: var(--card-dark-border); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-chev { display: inline-flex; color: var(--gold-dark); transition: transform 250ms var(--ease-out); transform: rotate(90deg); }
.faq-item[open] .faq-chev { transform: rotate(-90deg); }
.faq-a { padding: 0 1.35rem 1.15rem; margin: 0; color: var(--ink-muted); }
.sec-dark .faq-a { color: var(--text-on-dark-muted); }
.faq-item[open] .faq-q { color: var(--navy-800); }
.sec-dark .faq-item[open] .faq-q { color: var(--gold-light); }

/* ---------- CTA band ------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: clip;
  background: var(--grad-hero);
  color: var(--text-on-dark);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: var(--fs-h2); font-weight: 800; margin-bottom: 0.25em; }
.cta-band p { color: var(--text-on-dark-muted); margin: 0; }

/* ---------- Screenshots carousel + lightbox ------------------------------- */
.shots-carousel { position: relative; }
.shots-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(420px, 78vw);
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: 0.5rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.shot { scroll-snap-align: center; margin: 0; }
.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
}
.shot .mock { transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.shot-btn:hover .mock { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 8px 30px var(--gold-glow); }
.shot figcaption { margin-top: 0.7rem; text-align: center; color: var(--text-on-dark-muted); font-size: 0.98rem; }

.shots-nav {
  position: absolute;
  top: 40%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--card-dark-border);
  background: rgba(16, 22, 58, 0.85);
  color: var(--text-on-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 200ms, color 200ms, border-color 200ms;
}
.shots-nav:hover { background: var(--gold); color: var(--navy-950); border-color: var(--gold); }
.shots-nav-prev { inset-inline-start: -10px; }
.shots-nav-next { inset-inline-end: -10px; }
.shots-dots { display: flex; justify-content: center; gap: 8px; margin-top: 0.75rem; }
.shots-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background-color 200ms, transform 200ms;
}
.shots-dot.active { background: var(--gold); transform: scale(1.3); }

/* Lightbox. */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  width: 100%;
}
.lightbox::backdrop { background: rgba(4, 6, 20, 0.88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox-inner { position: relative; }
.lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--navy-900);
}
.lightbox-caption { text-align: center; color: var(--text-on-dark); padding: 0.9rem 3rem 0.2rem; font-weight: 600; }
.lightbox-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--card-dark-border);
  background: rgba(16, 22, 58, 0.85);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-btn:hover { background: var(--gold); color: var(--navy-950); }
.lightbox-close { top: -56px; inset-inline-end: 0; }
.lightbox-prev { top: 45%; inset-inline-start: -8px; }
.lightbox-next { top: 45%; inset-inline-end: -8px; }

/* ---------- Demo box ------------------------------------------------------ */
.demo-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.demo-note { font-size: 0.95rem; color: var(--ink-muted); margin-top: 0.8rem; }
.demo-trial-lead { text-align: center; margin-top: 2.4rem; font-size: 1.06rem; }
.demo-actions { text-align: center; }

/* ---------- Pricing ------------------------------------------------------- */
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 215, 0, 0.05));
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.75rem;
  margin-bottom: 2rem;
}
.trial-banner-badge {
  display: inline-block;
  background: var(--grad-gold);
  color: var(--navy-950);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.15rem 1rem;
  margin-bottom: 0.4rem;
}
.trial-banner-text p { margin: 0; font-weight: 600; }

.price-highlights { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
.price-highlight {
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-light);
  font-weight: 700;
  font-size: 0.98rem;
}
.price-highlight--gold { border-color: rgba(212, 175, 55, 0.6); background: rgba(212, 175, 55, 0.1); color: var(--gold-dark); }

/* Employee-count slider. */
.emp-slider { max-width: 640px; margin: 0 auto 2rem; text-align: center; }
.emp-slider-label { font-weight: 700; font-size: 1.1rem; display: block; margin-bottom: 0.6rem; }
.emp-slider-label output { color: var(--gold-dark); font-weight: 900; font-variant-numeric: tabular-nums; }
.emp-slider input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  appearance: none;
  -webkit-appearance: none;
  outline-offset: 6px;
  cursor: pointer;
}
.emp-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 3px solid var(--gold);
  box-shadow: 0 2px 10px var(--gold-glow);
  cursor: grab;
}
.emp-slider input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 3px solid var(--gold);
  box-shadow: 0 2px 10px var(--gold-glow);
  cursor: grab;
}
.emp-slider-hint { font-size: 0.9rem; color: var(--ink-muted); margin-top: 0.5rem; }

/* Term toggle. */
.price-toggle {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  background: var(--card-light);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem;
  width: fit-content;
  margin: 0 auto 2.25rem;
}
.price-toggle-btn {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-muted);
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 200ms, color 200ms, box-shadow 200ms;
}
.price-toggle-btn.active {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 35, 126, 0.35);
}
.price-toggle-btn .best {
  background: var(--grad-gold);
  color: var(--navy-950);
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  margin-inline-start: 0.3rem;
}

/* Tier grid — 4 priced cards side by side + the custom «أكثر من 150» card below. */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.price-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.price-grid--custom-row { grid-template-columns: minmax(0, 420px); justify-content: center; margin-top: 1.5rem; }
.price-card {
  position: relative;
  background: var(--card-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.5rem 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), border-color 250ms var(--ease-out);
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(26, 35, 126, 0.12); }
/* Slider highlight state — the matched card visibly enlarges, the rest dim. */
.price-card.matched {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow), 0 18px 40px rgba(26, 35, 126, 0.18);
  transform: translateY(-6px) scale(1.04);
  z-index: 1;
}
.price-card.dimmed { opacity: 0.55; }

.price-size { font-size: 1.12rem; font-weight: 800; margin-bottom: 0.9rem; }
.price-free {
  display: inline-block;
  margin: -0.4rem auto 0.9rem;
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  width: fit-content;
}
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 0.4rem; }
.price-num { font-size: 2.3rem; font-weight: 900; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.price-cur { color: var(--ink-muted); font-weight: 700; }
.price-period { color: var(--ink-muted); font-size: 0.95rem; }
.price-monthly { font-weight: 700; color: var(--navy-700); margin-top: 0.3rem; }
.price-save {
  display: inline-block;
  margin-top: 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.1rem 0.8rem;
}
.price-custom { font-size: 1.6rem; font-weight: 900; color: var(--navy-800); }
.price-allfeatures { color: var(--ink-muted); font-size: 0.92rem; margin-top: 0.9rem; }
.price-cta { margin-top: auto; }
.price-note { text-align: center; color: var(--ink-muted); margin-top: 2rem; margin-bottom: 0; }
.price-note--fine { font-size: 0.88rem; margin-top: 0.6rem; }

/* ---------- Tax calculator ------------------------------------------------ */
.calc-wrap { max-width: 720px; margin-inline: auto; }
.calc-card {
  background: var(--card-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.75rem;
  box-shadow: 0 4px 20px rgba(26, 35, 126, 0.06);
}
.calc-mode {
  display: flex;
  gap: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem;
  margin-bottom: 1.5rem;
}
.calc-mode-btn {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink-muted);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 200ms, color 200ms;
}
.calc-mode-btn.is-active { background: var(--navy-800); color: #fff; }
.calc-field { margin-bottom: 1.25rem; }
.calc-field label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.calc-field input[type="number"] {
  width: 100%;
  font-family: inherit;
  font-size: 1.1rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color 200ms, box-shadow 200ms;
}
.calc-field input[type="number"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.calc-check { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; margin-bottom: 0.7rem; cursor: pointer; }
.calc-check input { width: 18px; height: 18px; accent-color: var(--gold-dark); }
.calc-opt { color: var(--ink-muted); font-weight: 400; font-size: 0.9rem; }
.calc-hint { color: var(--ink-muted); font-size: 0.88rem; margin: 0.4rem 0 0; }
.calc-submit { width: 100%; margin-top: 0.4rem; }

.calc-result { margin-top: 1.5rem; }
.calc-net { text-align: center; padding-bottom: 1.2rem; border-bottom: 1px dashed var(--line); margin-bottom: 1.2rem; }
.calc-net-label { display: block; color: var(--ink-muted); font-weight: 600; }
.calc-net-value { font-size: 2.2rem; font-weight: 900; color: var(--gold-dark); font-variant-numeric: tabular-nums; }
.calc-rows { display: grid; gap: 0.45rem; }
.calc-row { display: flex; justify-content: space-between; gap: 1rem; }
.calc-row span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-row--tax span:last-child { color: var(--navy-800); }
.calc-row--info { color: var(--ink-muted); font-size: 0.92rem; }
.calc-note { color: var(--gold-dark); font-size: 0.88rem; }
.calc-breakdown { margin-top: 1.1rem; }
.calc-breakdown summary { font-weight: 700; cursor: pointer; color: var(--navy-700); }
.calc-breakdown table { width: 100%; border-collapse: collapse; margin-top: 0.7rem; font-size: 0.92rem; }
.calc-breakdown th, .calc-breakdown td { border: 1px solid var(--line); padding: 0.45rem 0.6rem; text-align: center; }
.calc-breakdown th { background: var(--paper); }
.calc-error { color: #b3261e; font-weight: 700; margin: 0; }
.calc-disclaimer { color: var(--ink-muted); font-size: 0.92rem; text-align: center; margin-top: 1.4rem; }

/* Post-result CTA — shown by tax-calculator.js only after a successful calc,
   i.e. while the user's number is still on screen. Gold left rule ties it to
   the result above it without competing with the result card itself. */
.calc-next {
  margin-top: 1.2rem;
  border-inline-start: 4px solid var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.07), rgba(212, 175, 55, 0.02));
}
.calc-next-lead {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy-700);
}
.calc-next-body { margin: 0 0 1.1rem; color: var(--ink); line-height: 1.75; }
.calc-next-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.calc-next-actions .btn { flex: 1 1 auto; text-align: center; }
.calc-next-note {
  margin: 0.9rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
  text-align: center;
}
@media (max-width: 560px) {
  .calc-next-actions .btn { flex-basis: 100%; }
}

/* Tax-calculator teaser band (home). */
.mini-tax {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.mini-tax-note { text-align: center; color: var(--text-on-dark-muted); font-size: 0.88rem; margin-top: 1.1rem; }

/* ---------- Contact ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; max-width: 900px; margin-inline: auto; }
.contact-card { text-align: center; }
.contact-card .btn { margin-top: 0.6rem; }
.contact-note { text-align: center; color: var(--ink-muted); margin-top: 2.2rem; }

/* ---------- Legal stubs --------------------------------------------------- */
.legal { max-width: 720px; margin-inline: auto; text-align: center; }

/* ---------- Floating WhatsApp -------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;         /* bottom-left in RTL */
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 200ms var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
@media print { .wa-float { display: none; } }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { padding-top: var(--section-y); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand .brand-mark { font-size: 1.4rem; }
.footer-blurb { font-size: 0.95rem; margin-top: 0.8rem; max-width: 34ch; }
.footer-contact { display: grid; gap: 0.4rem; margin-top: 0.9rem; }
.footer-contact a, .footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 0.98rem;
  padding-block: 0.15rem;
  transition: color 200ms;
}
.footer-contact a:hover, .footer-col a:hover { color: var(--gold-light); }
.footer-col { display: grid; align-content: start; gap: 0.35rem; }
.footer-col h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-on-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.footer-login .btn { justify-self: start; }
.footer-bottom {
  border-top: 1px solid var(--card-dark-border);
  padding-block: 1.4rem;
  text-align: center;
}
.footer-copy { color: var(--text-on-dark-muted); font-size: 0.95rem; }
.footer-copy small { color: var(--text-on-dark-muted); opacity: 0.8; }

/* ---------- Scroll reveal -------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease-out) var(--d, 0ms),
              transform var(--dur) var(--ease-out) var(--d, 0ms);
}
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ----------------------------------------------------- */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid--custom-row { grid-template-columns: minmax(0, 420px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;            /* RTL: anchored to the RIGHT edge */
    z-index: 99;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.5rem 1.5rem 2rem;
    background: var(--navy-950);
    border-inline-end: 1px solid var(--card-dark-border);
    transform: translateX(100%);      /* hidden off-screen to the right */
    visibility: hidden;
    transition: transform 300ms var(--ease-out), visibility 0s linear 300ms;
  }
  .site-nav.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 0.8rem 0.25rem; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .nav-links a::after { content: none; }
  .login-wrap { margin-top: 1.4rem; flex-direction: column; align-items: stretch; gap: 0.4rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .hero-trust, .hero-stats { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-visual { max-width: 560px; margin-inline: auto; }
  .hero-visual .mock { transform: none; }
  html.js .hero-visual .mock { animation-name: floaty-flat; }
  @keyframes floaty-flat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .step:not(:last-child)::after { content: none; }
  .demo-split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2, .price-grid, .price-grid--custom-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .trial-banner { flex-direction: column; align-items: flex-start; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .price-toggle { width: 100%; }
  .price-toggle-btn { flex: 1; padding-inline: 0.5rem; }
  .shots-nav { display: none; }         /* touch scroll + dots suffice on mobile */
  .calc-mode { flex-direction: column; border-radius: var(--radius); }
  .calc-mode-btn { border-radius: 10px; }
}

/* ---------- Reduced motion ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .section-title::after { transform: scaleX(1); }
}
