/* =========================================================================
   راصد — منصّة الحضور وشؤون الطلاب — Shared Design System (RTL)
   Premium SaaS marketing site. Mobile-first, responsive, accessible.
   Builders: use ONLY the documented classes. Do not invent new ones.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Brand */
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-darker: #1e40af;
  --indigo:      #4f46e5;
  --indigo-deep: #312e81;
  --indigo-night:#1e1b4b;
  --green:       #16a34a;
  --green-soft:  #dcfce7;
  --amber:       #f59e0b;
  --amber-soft:  #fef3c7;

  /* Neutrals */
  --white:   #ffffff;
  --gray-50: #f8fafc;
  --gray-100:#f1f5f9;
  --gray-200:#e2e8f0;
  --gray-300:#cbd5e1;
  --gray-400:#94a3b8;
  --gray-500:#64748b;
  --gray-600:#475569;
  --gray-700:#334155;
  --gray-800:#1e293b;
  --gray-900:#0f172a;

  /* Semantic */
  --bg:          #ffffff;
  --bg-soft:     #f8fafc;
  --text:        #0f172a;
  --text-soft:   #475569;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --link:        #2563eb;

  /* Gradients */
  --grad-hero:   linear-gradient(160deg, #eff6ff 0%, #eef2ff 45%, #ffffff 100%);
  --grad-brand:  linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --grad-dark:   linear-gradient(150deg, #312e81 0%, #1e1b4b 60%, #1e293b 100%);
  --grad-text:   linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);

  /* Radius */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow:    0 8px 24px rgba(15,23,42,.08);
  --shadow-md: 0 14px 40px rgba(15,23,42,.10);
  --shadow-lg: 0 24px 60px rgba(30,27,75,.18);
  --shadow-blue: 0 10px 30px rgba(37,99,235,.25);

  /* Typography */
  --font: "Tajawal", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1140px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: .18s;
  --t: .3s;
}

/* -------------------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1rem; color: var(--text-soft); }

a { color: var(--link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--blue-dark); }

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

ul, ol { margin: 0 0 1rem; padding-inline-start: 1.4em; }

strong, b { font-weight: 700; color: var(--text); }

hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

::selection { background: rgba(37,99,235,.18); }

:focus-visible {
  outline: 3px solid rgba(37,99,235,.45);
  outline-offset: 2px;
  border-radius: 6px;
}

/* -------------------------------------------------------------------------
   3. Layout: container, section
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.section {
  padding-block: clamp(56px, 9vw, 110px);
}
.section.section-tight { padding-block: clamp(40px, 6vw, 70px); }
.section.bg-soft { background: var(--bg-soft); }

.section-dark {
  padding-block: clamp(56px, 9vw, 110px);
  background: var(--grad-dark);
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: #ffffff; }
.section-dark p { color: #c7d2fe; }
.section-dark .eyebrow { color: #a5b4fc; }
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(79,70,229,.45), transparent 60%),
    radial-gradient(500px 280px at 0% 110%, rgba(37,99,235,.35), transparent 60%);
  pointer-events: none;
}
.section-dark > .container { position: relative; z-index: 1; }

/* Section heading helper */
.section-head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: center;
}
.section-head p { font-size: 1.1rem; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* -------------------------------------------------------------------------
   4. Eyebrow, badge, pill
   ------------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: .75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: .8rem;
  font-weight: 700;
  padding: .3em .8em;
  border-radius: var(--radius-full);
  background: var(--blue);
  color: #fff;
  line-height: 1;
}
.badge.badge-soft   { background: #dbeafe; color: var(--blue-darker); }
.badge.badge-green  { background: var(--green-soft); color: #15803d; }
.badge.badge-amber  { background: var(--amber-soft); color: #b45309; }
.badge.badge-indigo { background: #e0e7ff; color: #4338ca; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .9rem;
  font-weight: 600;
  padding: .5em 1.05em;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  color: var(--text-soft);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(6px);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* -------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: .82em 1.5em;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { color:#fff; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37,99,235,.34); }

.btn-ghost {
  background: rgba(255,255,255,.6);
  color: var(--blue-darker);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { background:#fff; color: var(--blue-dark); border-color: var(--blue); transform: translateY(-2px); }

.btn-white {
  background: #fff;
  color: var(--indigo-deep);
}
.btn-white:hover { color: var(--indigo); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); color:#fff; border-color:#fff; }

.btn-lg { font-size: 1.1rem; padding: 1.02em 1.9em; }
.btn-sm { font-size: .9rem; padding: .6em 1.1em; }
.btn-block { display: flex; width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-group.center { justify-content: center; }

/* -------------------------------------------------------------------------
   6. Navbar (sticky + blurred). Markup injected by app.js.
   ------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226,232,240,.8);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
/* Brand on the RIGHT (first in DOM = right in RTL) */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--text);
  white-space: nowrap;
}
.nav-brand:hover { color: var(--text); }
.nav-brand .brand-mark {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-blue);
}
.nav-brand .brand-mark svg { width: 22px; height: 22px; }
.nav-brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand .brand-text small { font-size: .68rem; font-weight: 600; color: var(--text-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: .5em .85em;
  font-size: .97rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-full);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--blue); background: var(--gray-100); }
.nav-links a.active { color: var(--blue); background: #eff6ff; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  place-items: center;
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.navbar.open .nav-toggle .icon-open  { display: none; }
.navbar.open .nav-toggle .icon-close { display: block; }

/* -------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  overflow: hidden;
  padding-block: clamp(54px, 8vw, 96px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 90% -5%, rgba(79,70,229,.14), transparent 60%),
    radial-gradient(560px 320px at 5% 10%, rgba(37,99,235,.12), transparent 60%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
}
.hero-copy h1 { margin-bottom: .35em; }
.hero-copy .gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--text-soft);
  max-width: 44ch;
  margin-bottom: 1.6rem;
}
.hero-copy .btn-group { margin-top: 1.5rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 1.7rem;
  color: var(--text-muted);
  font-size: .92rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: .45em; }
.hero-meta svg { width: 18px; height: 18px; color: var(--green); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* -------------------------------------------------------------------------
   8. Grids
   ------------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid.gap-lg { gap: 32px; }
.grid.items-center { align-items: center; }

/* -------------------------------------------------------------------------
   9. Cards
   ------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dbeafe; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: #eff6ff;
  color: var(--blue);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.green  { background: var(--green-soft); color: var(--green); }
.card-icon.amber  { background: var(--amber-soft); color: #d97706; }
.card-icon.indigo { background: #e0e7ff; color: var(--indigo); }

.card.card-flat { box-shadow: none; background: var(--bg-soft); }
.card.card-dark {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}
.card.card-dark h3 { color:#fff; }
.card.card-dark p { color:#c7d2fe; }
.card.card-dark .card-icon { background: rgba(255,255,255,.1); color:#fff; }

.card.card-feature { border-top: 3px solid var(--blue); }

/* -------------------------------------------------------------------------
   10. Feature list (checkmark bullets)
   ------------------------------------------------------------------------- */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.feature-list li {
  position: relative;
  padding-inline-start: 36px;
  color: var(--text-soft);
  line-height: 1.6;
}
.feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.feature-list.on-dark li { color:#c7d2fe; }
.feature-list li strong { color: inherit; }
.section-dark .feature-list li strong { color:#fff; }

/* -------------------------------------------------------------------------
   11. Stats
   ------------------------------------------------------------------------- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow);
}
.stat { text-align: center; padding: 8px 6px; }
.stat .stat-num {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat .stat-num .suffix,
.stat .stat-num .prefix {
  -webkit-text-fill-color: initial;
  color: var(--indigo);
}
.stat .stat-label {
  display: block;
  margin-top: .35em;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
}
.section-dark .stat-bar { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow:none; }
.section-dark .stat .stat-num { background: linear-gradient(135deg,#93c5fd,#c4b5fd); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.section-dark .stat .stat-label { color:#a5b4fc; }
/* stat-bar with fewer items */
.stat-bar.cols-3 { grid-template-columns: repeat(3,1fr); }
.stat-bar.cols-2 { grid-template-columns: repeat(2,1fr); }

/* -------------------------------------------------------------------------
   12. Steps (numbered workflow)
   ------------------------------------------------------------------------- */
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.step .step-num {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
  box-shadow: var(--shadow-blue);
}
.step h3 { margin-bottom: .35em; }
.step p:last-child { margin-bottom: 0; }
/* connector when steps sit in a grid row (desktop) */
.steps-flow { counter-reset: step; }

/* -------------------------------------------------------------------------
   13. Quote / testimonial
   ------------------------------------------------------------------------- */
.quote {
  background: #fff;
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote .quote-mark {
  font-size: 3.4rem;
  line-height: .6;
  color: #bfdbfe;
  font-family: Georgia, serif;
}
.quote p { font-size: 1.12rem; color: var(--text); font-weight: 500; }
.quote .quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.quote .quote-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad-brand);
  color:#fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: 0 0 auto;
}
.quote .quote-name { font-weight: 700; color: var(--text); }
.quote .quote-role { font-size: .9rem; color: var(--text-muted); }
.section-dark .quote { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); border-inline-start-color:#818cf8; box-shadow:none; }
.section-dark .quote p { color:#e2e8f0; }

/* -------------------------------------------------------------------------
   14. Compare table (before/after, problem -> solution)
   ------------------------------------------------------------------------- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
}
.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: right;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  background: var(--gray-50);
  font-weight: 800;
  color: var(--text);
  font-size: .98rem;
}
.compare-table thead th:first-child { color: var(--text-muted); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover td { background: #fafbff; }
/* problem column (first) vs solution column (last) */
.compare-table .col-problem  { color: var(--text-soft); }
.compare-table .col-solution { color: var(--text); font-weight: 600; }
.compare-table .col-solution { background: rgba(22,163,74,.04); }
.compare-table thead .col-solution { background: var(--green-soft); color:#15803d; }
.compare-table thead .col-problem  { background: #fef2f2; color:#b91c1c; }
.compare-table .icon-x  { color:#dc2626; }
.compare-table .icon-ok { color: var(--green); }

/* -------------------------------------------------------------------------
   15. CTA band (full-width)
   ------------------------------------------------------------------------- */
.cta-band {
  background: var(--grad-brand);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(420px 220px at 92% 120%, rgba(255,255,255,.16), transparent 60%);
  pointer-events:none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 60ch; margin-inline:auto; font-size: 1.12rem; }
.cta-band .btn-group { margin-top: 1.6rem; }
.cta-band-full { /* place inside .section with no container for edge-to-edge feel */ }

/* -------------------------------------------------------------------------
   16. Phone frame + mockup helpers
   ------------------------------------------------------------------------- */
.phone-frame {
  position: relative;
  width: 300px;
  max-width: 100%;
  margin-inline: auto;
  background: #0f172a;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.phone-frame::before { /* notch */
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 22px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  background: #f1f5f9;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  display: flex;
  flex-direction: column;
}

/* generic floating mockup card (e.g. dashboard widget, chat bubble container) */
.mockup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.mockup-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gray-300); }
.mockup-bar .dot.r { background:#f87171; }
.mockup-bar .dot.y { background:#fbbf24; }
.mockup-bar .dot.g { background:#34d399; }
.mockup-bar .mockup-title { margin-inline-start: auto; font-size:.85rem; font-weight:700; color: var(--text-muted); }

.mockup-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 14px 16px;
  z-index: 2;
}

/* WhatsApp-style chat bubble (Arabic notification) */
.chat-bubble {
  position: relative;
  max-width: 280px;
  background: #dcf8c6;
  color: #0f172a;
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  font-size: .95rem;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}
.chat-bubble .chat-time { display:block; text-align:left; font-size:.72rem; color: var(--gray-500); margin-top:4px; }
.chat-window {
  background: #e6ddd4;
  border-radius: var(--radius);
  padding: 16px;
}
.chat-head {
  display:flex; align-items:center; gap:10px;
  background: var(--green);
  color:#fff;
  padding:10px 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-weight:700;
}
.chat-head .avatar { width:34px; height:34px; border-radius:50%; background: rgba(255,255,255,.25); display:grid; place-items:center; }

/* -------------------------------------------------------------------------
   17. Logo strip / trust row
   ------------------------------------------------------------------------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   18. Footer (multi-column dark). Markup injected by app.js.
   ------------------------------------------------------------------------- */
.footer {
  background: var(--indigo-night);
  color: #c7d2fe;
  padding-block: 56px 28px;
}
.footer .footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1em;
}
.footer .footer-brand {
  display: inline-flex; align-items:center; gap:.6em;
  font-weight: 800; font-size: 1.05rem; color:#fff;
  margin-bottom: .8rem;
}
.footer .footer-brand .brand-mark {
  width:36px; height:36px; border-radius:11px;
  background: var(--grad-brand); display:grid; place-items:center;
}
.footer .footer-brand .brand-mark svg { width:21px; height:21px; }
.footer .footer-blurb { color:#a5b4fc; max-width: 42ch; font-size:.95rem; }
.footer ul { list-style:none; margin:0; padding:0; display:grid; gap:.6em; }
.footer ul a { color:#c7d2fe; font-size:.96rem; }
.footer ul a:hover { color:#fff; }
.footer .footer-contact { color:#a5b4fc; font-size:.95rem; line-height:1.8; }
.footer .footer-contact a { color:#93c5fd; }
.footer .footer-note { display:block; margin-top:.6em; font-size:.86rem; color:#818cf8; }
.footer-bottom {
  padding-top: 22px;
  text-align: center;
  font-size: .9rem;
  color: #818cf8;
}

/* -------------------------------------------------------------------------
   19. Reveal-on-scroll + count-up
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* optional stagger via inline style --d (transition-delay) */
.reveal[style*="--d"] { transition-delay: var(--d); }

/* -------------------------------------------------------------------------
   19b. Demo-request form (support.html#demo)
   ------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 4vw, 32px);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.form-card h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-bottom: .3em; }
.form-card [hidden] { display: none !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--text); }
.field .req { color: #dc2626; }
.field .opt { font-weight: 500; font-size: .84rem; color: var(--text-muted); }
.input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem; /* >= 16px: no zoom-on-focus on iOS */
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--gray-300);
  border-radius: 12px;
  padding: .7em .9em;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.input[aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.input-ltr { direction: ltr; text-align: right; }
textarea.input { min-height: 110px; resize: vertical; }
.field-error { display: block; color: #b91c1c; font-size: .86rem; margin-top: 5px; }
.field-error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--text-soft); font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 4px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.form-note { font-size: .86rem; color: var(--text-muted); margin: 0; }
.form-status { border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: .95rem; margin: 0; }
.form-status.is-pending { background: #eff6ff; color: var(--blue-darker); border: 1px solid #bfdbfe; }
.form-status.is-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.form-card button[disabled] { opacity: .65; cursor: progress; transform: none; }
.form-success { text-align: center; padding: 18px 4px 6px; outline: none; }
.form-success .ok-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.form-success .ok-icon svg { width: 32px; height: 32px; }
/* Honeypot: visually hidden without an off-screen offset (an offset to the
   left would add horizontal scroll in RTL). */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   20. Utilities
   ------------------------------------------------------------------------- */
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.lead { font-size: 1.18rem; color: var(--text-soft); }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* -------------------------------------------------------------------------
   21. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .hero-sub { max-width: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-bar, .stat-bar.cols-2, .stat-bar.cols-3 { grid-template-columns: 1fr 1fr; }

  .footer-cols { grid-template-columns: 1fr; gap: 28px; }

  /* Mobile nav: collapse links into a dropdown panel toggled by app.js */
  .nav-toggle { display: grid; }
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    inset-inline: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px 22px 22px;
    display: none;
    flex-direction: column;
    gap: 8px;
  }
  .navbar.open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .nav-links a { padding: .7em .9em; font-size: 1.02rem; }
  .nav-actions { width: 100%; margin-top: 6px; }
  .nav-actions .btn { width: 100%; }

  .compare-table { font-size: .92rem; }
  .compare-table th, .compare-table td { padding: 12px 13px; }

  .btn-group { gap: 10px; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stat-bar, .stat-bar.cols-2, .stat-bar.cols-3 { grid-template-columns: 1fr; }
  .nav-brand .brand-text small { display: none; }
}

/* -------------------------------------------------------------------------
   22. Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card:hover, .btn:hover, .btn-primary:hover { transform: none; }
}
