:root {
  --primary: #1f4788;
  --primary-light: #2a5aa0;
  --primary-dark: #162a52;
  --accent: #0ea5e9;
  --accent-light: #38bdf8;
  --accent-dark: #0284c7;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  --bg: #f8fafc;
  --bg-light: #f1f5f9;
  --bg-darker: #0f172a;
  --bg2: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.04);

  --gradient-primary: linear-gradient(135deg, #1f4788 0%, #0ea5e9 100%);
  --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);

  /* Glass (Apple-style) */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --glass-blur: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 50%, #f1f5f9 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Sections ─── */
.section { padding: 5rem 0; position: relative; }
.section-header { max-width: 720px; margin-bottom: 3rem; }
.section-header.center { text-align: center; margin-inline: auto; margin-bottom: 3.5rem; }

/* ─── Glassmorphism Header (Apple-style) ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: saturate(180%) blur(var(--glass-blur));
  -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.9rem;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
}

/* Header CTA: glassy, Apple-style */
.nav-actions .btn {
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(31, 71, 136, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.nav-actions .btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(31, 71, 136, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: none;
}

.menu-btn {
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-direction: column;
  gap: 4px;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.menu-btn:hover { background: var(--bg-light); }

.lang-select {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.lang-select:hover {
  border-color: rgba(31, 71, 136, 0.2);
  background: rgba(255, 255, 255, 0.8);
}

/* ─── Typography ─── */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0.75rem 0 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.5rem 0 0.75rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--text);
}

.lead {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--primary);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
}

.badge-hero span {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Buttons (Apple-style glassy) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px rgba(31, 71, 136, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(31, 71, 136, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary);
  border-color: rgba(31, 71, 136, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(31, 71, 136, 0.2);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; }

.btn-white {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.98);
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ─── Cards (glassy) ─── */
.card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  border-color: rgba(255, 255, 255, 0.9);
}

/* ─── Grid Systems ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.features-rich {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ─── Feature Blocks ─── */
.feature-block {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.feature-block h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.feature-block .tagline { margin-bottom: 0.75rem; font-size: 0.95rem; color: var(--text-light); font-style: italic; line-height: 1.5; }

.feature-block .feature-list { margin-top: 0.25rem; }
.feature-block .tagline + .feature-list { margin-top: 0; }
.feature-block .feature-list li { padding: 0.5rem 0; }
.feature-block .block-close {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  line-height: 1.5;
}

.feature-box {
  padding: 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-box:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.feature-box-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-box p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── Feature / Pricing Lists ─── */
.feature-list {
  list-style: none;
  text-align: left;
  margin: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: "— "; color: var(--text-muted); font-weight: 400; margin-right: 0.5rem; }

/* ─── Core Capabilities (features page) ─── */
.section-capabilities .section-header { margin-bottom: 2.5rem; }
.capabilities-intro { max-width: 640px; margin-inline: auto; color: var(--text-light); }

.capability-groups { max-width: 1100px; margin: 0 auto; }
.capability-group { margin-bottom: 3rem; }
.capability-group:last-child { margin-bottom: 0; }
.capability-group-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.capability-group-intro {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 820px;
  margin: 0 auto;
  align-items: stretch;
}
/* Document-style sections: no card box, use dividers */
.capabilities-grid article.card {
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: none;
}
.capabilities-grid article.card:hover { box-shadow: none; border-color: var(--border); }
.capabilities-grid article.card:last-child { border-bottom: none; }
.capabilities-grid .feature-block h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.capabilities-grid .feature-block .tagline { font-size: 0.9rem; }
.capabilities-grid .feature-block .block-close { margin-bottom: 0; }
.section-use-cases { padding-top: 3rem; }
.section-use-cases .section-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}
@media (min-width: 600px) {
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 900px) {
  .use-cases-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
/* Features use cases: content blocks, no card box */
.use-case-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0 1.5rem 1rem;
  text-align: left;
  border-left: 3px solid var(--primary);
  min-height: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.use-case-card.card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 1.5rem 0 1.5rem 1rem;
  border-left: 3px solid var(--primary);
}
.use-case-card h4 { font-size: 1.05rem; margin-bottom: 0.35rem; color: var(--primary); font-weight: 600; }
.use-case-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; line-height: 1.55; flex: 1; }
.section-org-band { padding-top: 2rem; padding-bottom: 3rem; }
.org-band { max-width: 640px; margin: 0 auto; padding: 2rem; text-align: center; }
.org-band.card { border: none; box-shadow: none; background: var(--bg-light); border-radius: 0; }
.org-band-title { font-size: 1.35rem; margin-bottom: 0.75rem; }
.org-band-lead { color: var(--text-light); margin-bottom: 1rem; font-size: 0.95rem; }
.org-band-cta { font-weight: 600; margin-bottom: 0.5rem; }
.org-values { list-style: none; margin: 0 0 1rem; padding: 0; text-align: center; }
.org-values li { padding: 0.25rem 0; color: var(--text); }
.org-values li::before { content: "— "; color: var(--text-muted); font-weight: 400; margin-right: 0.5rem; }
.org-band-close { margin: 0; color: var(--primary); font-size: 1.05rem; }

/* ─── Features: in-page nav and 2-col grid ─── */
.cap-nav-wrap {
  position: sticky;
  top: calc(72px + 1rem);
  z-index: 10;
  margin-bottom: 2rem;
}
.cap-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.cap-nav a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.cap-nav a:hover { color: var(--primary); background: rgba(31, 71, 136, 0.08); }
.capability-card {
  position: relative;
  scroll-margin-top: 5.5rem;
}
.capability-card h3 {
  padding-left: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

/* AI Insights highlight (features page) */
.section-capabilities--highlight {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.06) 0%, rgba(31, 71, 136, 0.04) 100%);
  border-top: 1px solid rgba(14, 165, 233, 0.15);
  border-bottom: 1px solid rgba(14, 165, 233, 0.15);
}
.capability-card--highlight {
  border: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.12);
  padding: 2rem 2rem 2rem 2rem;
}
.capability-card--highlight .capability-group-title {
  border-bottom-color: rgba(14, 165, 233, 0.35);
  color: var(--primary);
}
.capability-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(14, 165, 233, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.capabilities-grid .feature-block .feature-list li { font-size: 0.9rem; line-height: 1.65; }
@media (min-width: 900px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1100px;
    gap: 0 3rem;
  }
  .capability-group .capabilities-grid { max-width: 1100px; }
  .capabilities-grid article.card { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
}

/* Feature rows with image (features page) */
.feat-row {
  display: grid;
  gap: 2rem;
  align-items: start;
  grid-template-columns: 1fr;
  grid-template-areas: "content" "img";
}
.feat-row--img-right .feat-row__content { grid-area: content; }
.feat-row--img-right .feat-row__img { grid-area: img; }
.feat-row--img-left {
  grid-template-areas: "img" "content";
}
.feat-row--img-left .feat-row__img { grid-area: img; }
.feat-row--img-left .feat-row__content { grid-area: content; }
.feat-row__content { min-width: 0; }
.feat-row__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg2);
}
.feat-row__img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
@media (min-width: 768px) {
  .feat-row {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .feat-row--img-right { grid-template-areas: "content img"; }
  .feat-row--img-left { grid-template-areas: "img content"; }
}

/* ─── Legal / doc pages (privacy, terms, security) ─── */
.legal-doc-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.legal-doc-hero .container { max-width: 900px; }
.legal-doc-hero h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.legal-doc-hero .legal-meta { color: var(--text-light); font-size: 0.9rem; margin-bottom: 0; }
.legal-doc-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
@media (min-width: 768px) {
  .legal-doc-wrap { grid-template-columns: 200px 1fr; padding-left: 2rem; padding-right: 2rem; }
}
.legal-doc-toc {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  padding: 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
}
.legal-doc-toc h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding: 0;
}
.legal-doc-toc ul { list-style: none; margin: 0; padding: 0; }
.legal-doc-toc li { margin: 0; padding: 0; border: none; }
.legal-doc-toc li::before { content: none; }
.legal-doc-toc a {
  display: block;
  padding: 0.35rem 0;
  color: var(--text-light);
  text-decoration: none;
  line-height: 1.4;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  margin-left: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.legal-doc-toc a:hover { color: var(--primary); border-left-color: var(--accent); }
.legal-doc-body { min-width: 0; }
.legal-doc-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: 5rem;
}
.legal-doc-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.legal-doc-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  margin-top: 0;
}
.legal-doc-body p { margin-bottom: 1rem; color: var(--text); line-height: 1.7; font-size: 0.95rem; }
.legal-doc-body p:last-child { margin-bottom: 0; }
.legal-doc-body ul { margin: 0 0 1rem; padding-left: 1.5rem; list-style-type: disc; }
.legal-doc-body ul li { margin-bottom: 0.5rem; line-height: 1.6; color: var(--text); }
.legal-doc-body ul li::before { content: none; }
.legal-doc-body a { color: var(--primary); font-weight: 500; text-decoration: none; }
.legal-doc-body a:hover { text-decoration: underline; }
.legal-doc-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ─── Pricing Cards ─── */
.pricing-grid-4 { max-width: 1200px; margin-inline: auto; gap: 1.5rem; }
.pricing-grid-4 .pricing-card { padding: 2rem 1.25rem; min-height: 1px; display: flex; flex-direction: column; }
.pricing-grid-4 .pricing-card .pricing-features { flex: 1; }
.pricing-grid-4 .pricing-features li { font-size: 0.9rem; }
.pricing-grid-3 { max-width: 1100px; margin-inline: auto; gap: 1.75rem; }
.pricing-grid-3 .pricing-card { padding: 2rem 1.5rem; min-height: 1px; display: flex; flex-direction: column; }
.pricing-grid-3 .pricing-card .pricing-features { flex: 1; }
.pricing-grid-3 .pricing-features li { font-size: 0.9rem; }
.pricing-plans-heading {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted, rgba(0, 0, 0, 0.65));
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.section--pricing .container { max-width: 1200px; }
.pricing-enterprise-note { text-align: center; margin-top: 1.75rem; font-size: 0.95rem; opacity: 0.9; }
.pricing-enterprise-note a { font-weight: 600; }
.pricing-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  border-color: rgba(255, 255, 255, 0.9);
}

.pricing-card.featured {
  border-color: rgba(31, 71, 136, 0.35);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 32px rgba(31, 71, 136, 0.12), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.badge-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0 0.25rem;
}

.period {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

.plan-desc {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}

.pricing-features li {
  padding: 0.65rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  content: "—";
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 0.75rem;
}

/* Pricing feature rows with ✓ / ✕ / Add-on */
.pricing-features li.pricing-row::before { content: none; margin-right: 0; }
.pricing-features .pricing-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  vertical-align: middle;
}
.pricing-features .pricing-no .pricing-ico {
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.06);
}
.pricing-features .pricing-addon .pricing-ico {
  color: var(--primary);
  background: rgba(31, 71, 136, 0.1);
}
.pricing-features .pricing-addon small {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.pricing-features .pricing-yes .pricing-ico {
  color: #0d7a4a;
  background: rgba(13, 122, 74, 0.12);
}

/* ─── Testimonials ─── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  padding: 1.5rem 0 1.5rem 1.25rem;
  background: transparent;
  border: none;
  border-left: 3px solid var(--primary);
  border-radius: 0;
  transition: none;
}

.testimonial-card:hover { box-shadow: none; }

.testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 1rem; }

.testimonial-card p {
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.testimonial-author { text-align: left; }
.testimonial-author strong { display: block; color: var(--text); margin-bottom: 0.15rem; }
.testimonial-author span { color: var(--text-light); font-size: 0.85rem; }

/* ─── Hero Section ─── */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 250, 252, 0.9) 40%, rgba(245, 247, 250, 1) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy { padding: 0; }
.hero h1, .hero .lead { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-benefits-intro {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.75rem 0 0.5rem;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

@media (min-width: 520px) {
  .hero-benefits { grid-template-columns: repeat(2, 1fr); gap: 0.35rem 2rem; }
}

.hero-benefits li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.hero-benefits li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 400;
}

/* Dashboard Mockup */
.hero-visual { position: relative; padding: 1rem; }

.dashboard-mockup {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-title { display: flex; align-items: center; gap: 0.75rem; }
.dashboard-title h4 { color: var(--text); font-size: 1rem; margin: 0; }

.status-badge {
  background: var(--success);
  color: white;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

.dashboard-controls { display: flex; gap: 0.5rem; }
.dashboard-controls span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }

.dashboard-chart { margin: 1rem 0; height: 180px; position: relative; }

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.dashboard-kpi {
  background: var(--bg-light);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.dashboard-kpi p { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.3rem; }
.dashboard-kpi h5 { color: var(--primary); font-size: 1.2rem; font-weight: 700; margin: 0; }

/* ─── Social Proof Strip ─── */
.social-proof-strip {
  padding: 3rem 0;
  text-align: center;
}

.social-proof-strip p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.4;
}

.logo-row span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ─── Use Cases ─── */
.use-cases-section { padding: 3rem 0; }

/* Use cases: clean list (no pills/cards) */
.use-cases-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
}

.use-cases-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding-left: 1.25rem;
}
.use-cases-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 400;
}
.use-cases-list li:last-child { border-bottom: none; }
.use-cases-list li:hover { color: var(--primary); }

/* Home: use cases two-column list */
.use-cases-grid-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  text-align: left;
}

@media (min-width: 560px) {
  .use-cases-grid-home { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
}

.section-testimonials {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(241, 245, 249, 0.9) 100%);
}

/* Section image strip (home) */
.section-image-strip { padding: 2rem 0; }
.container-narrow { max-width: 1000px; margin-inline: auto; padding: 0 1.5rem; }
.section-strip-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

/* Hero images (features, pricing) */
.hero-image-wrap { margin-top: 2rem; }
.hero-features-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

/* ─── Why Section (content blocks, no cards) ─── */
.why-cards {
  margin-top: 2.5rem;
  align-items: stretch;
  gap: 2.5rem;
}

.why-card.card {
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--primary);
}
.why-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-height: 0;
}
.why-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.why-card .card-icon-label { margin-bottom: 0.5rem; }
.why-card h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.why-card p { flex: 1; margin: 0; color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.card-icon-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  border-left: 3px solid var(--primary);
  padding-left: 0.6rem;
  margin-bottom: 1rem;
}

/* ─── CTA Band ─── */
.cta-section {
  padding: 4rem 0;
}

.cta-band {
  padding: 3.5rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(31, 71, 136, 0.92) 0%, rgba(14, 165, 233, 0.88) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(31, 71, 136, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cta-band h2 { color: white; }

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 1rem auto 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Home page content blocks (organization) ─── */
.home-block {
  padding: 4rem 0;
  position: relative;
}
.home-block--tint {
  background: rgba(31, 71, 136, 0.03);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.home-block--compact {
  padding: 3rem 0;
}
.container--narrow {
  max-width: 720px;
  margin-inline: auto;
}
.home-subsection {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}
.home-block--tint .home-subsection {
  border-top-color: rgba(31, 71, 136, 0.08);
}
.home-subsection__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.home-subsection--cta {
  border-top-style: dashed;
  margin-top: 2rem;
  padding-top: 2rem;
}
.home-block__grid {
  display: grid;
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .home-block__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 3rem;
  }
}
.section-bullets--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  max-width: 640px;
  margin-inline: auto;
}
.section-bullets--inline li {
  padding: 0.2rem 0;
  padding-left: 1.25rem;
  flex: 1 1 200px;
  max-width: 280px;
}
.section-bullets--inline li::before {
  top: 0.5em;
}

/* Home blocks with image (content + image grid) */
.home-block--with-img .home-block__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.home-block__inner--img-right {
  grid-template-columns: 1fr;
  grid-template-areas: "content" "img";
}
.home-block__inner--img-right .home-block__content { grid-area: content; }
.home-block__inner--img-right .home-block__img { grid-area: img; }

.home-block__inner--img-left {
  grid-template-columns: 1fr;
  grid-template-areas: "img" "content";
}
.home-block__inner--img-left .home-block__img { grid-area: img; }
.home-block__inner--img-left .home-block__content { grid-area: content; }

.home-block__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-light);
}
.home-block__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
.home-block__inner--compact .home-block__img img {
  aspect-ratio: 5 / 3.4;
}

@media (min-width: 768px) {
  .home-block--with-img .home-block__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .home-block__inner--img-right {
    grid-template-areas: "content img";
  }
  .home-block__inner--img-left {
    grid-template-areas: "img content";
  }
  .home-block--with-img .home-block__content {
    min-width: 0;
  }
}

/* Block 3 content stacks vertically (Built for scale, then Why QualiPeak) */
.home-block__content--stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── Trust Line ─── */
.trust-section { padding: 2rem 0; }
.trust-line {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 500px;
  margin-inline: auto;
}
.hero-trust-line {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.section-bullets {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  text-align: left;
  max-width: 32em;
  margin-inline: auto;
}
.section-bullets li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
}
.section-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.section-line {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--text);
}
.section-steps {
  list-style: none;
  padding: 0;
  margin: 1rem auto 0;
  max-width: 28em;
  text-align: left;
}
.section-steps li {
  padding: 0.5rem 0;
  color: var(--text-light);
}
.section-pipeline {
  margin-top: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.cta-closing {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}
.btn-white-outline {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ─── Contact ─── */
body[data-page="contact"] {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body[data-page="contact"] main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body[data-page="contact"] .contact-iframe-section {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}
body[data-page="contact"] .contact-iframe-container {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: min(900px, 96%);
  max-width: 100%;
  margin-inline: auto;
}
/* Isolate embed: iframe runs in separate document; wrapper contained so site style is unaffected */
.contact-iframe-wrap {
  flex: 1 1 0;
  min-height: 1100px;
  overflow: hidden;
  width: 100%;
  position: relative;
  contain: layout style;
  isolation: isolate;
}
@media (max-width: 768px) {
  body[data-page="contact"] .contact-iframe-section {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
  }
  body[data-page="contact"] .contact-iframe-container {
    width: 98%;
    padding: 0 0.5rem;
  }
  /* Tall enough to show full form including Message textarea and submit */
  .contact-iframe-wrap {
    min-height: 1200px;
  }
}
@media (max-width: 480px) {
  body[data-page="contact"] .contact-iframe-container {
    width: 100%;
    padding: 0;
  }
  .contact-iframe-wrap {
    min-height: 1200px;
  }
}
.contact-iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
body[data-page="contact"] .hero { padding-bottom: 1rem; }
body[data-page="contact"] main .section { padding-top: 0; }
.contact-card a { color: var(--accent); }
.contact-card a:hover { color: var(--accent-dark); text-decoration: underline; }

.contact-email-line a { text-decoration: none; }
.contact-email-line a:hover { text-decoration: underline; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  padding: 3.5rem 0 2rem;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-column h4, .footer-column h5 {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-column a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-column a:hover { color: var(--primary); }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
}

.social-links a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--text-light);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--primary); }

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── All Plans Include ─── */
.plan-includes-card {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.plan-includes-card h4 {
  margin-bottom: 0.5rem;
}

.plan-includes-heading {
  border-left: 3px solid var(--primary);
  padding-left: 0.6rem;
}

.plan-includes-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Calendly ─── */
.calendly-inline-widget { min-width: 320px; height: 700px; }

/* Book demo page: full Calendly embed visible (no clipping); page scrolls */
.book-demo-page .hero {
  padding-bottom: 1rem;
}
.book-demo-page .section-calendly {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}
.book-demo-page .calendly-embed__container {
  max-width: 900px;
}
.book-demo-page .calendly-embed__wrap .calendly-inline-widget {
  height: 1000px;
  min-height: 1000px;
}

/* ─── RTL Support (Arabic: text right-to-left) ─── */
html[dir="rtl"] {
  direction: rtl;
}
html[dir="rtl"] body {
  text-align: right;
}
html[dir="rtl"] .nav-wrap {
  flex-direction: row-reverse;
}
html[dir="rtl"] .nav-actions {
  flex-direction: row-reverse;
}
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .split {
  direction: rtl;
}
html[dir="rtl"] .section-header.center {
  text-align: center;
}
/* Lists: align right, text beside bullet in RTL */
html[dir="rtl"] .feature-list,
html[dir="rtl"] .pricing-features,
html[dir="rtl"] .org-values {
  text-align: right;
  direction: rtl;
}
/* Keep text right beside the bullet and align the pair to the right */
html[dir="rtl"] .feature-list li {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: baseline;
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .feature-list li::before {
  margin-right: 0;
  margin-left: 0.35rem;
  flex-shrink: 0;
}
html[dir="rtl"] .pricing-features li {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: baseline;
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .pricing-features li::before,
html[dir="rtl"] .org-values li::before {
  margin-right: 0;
  margin-left: 0.5rem;
}
html[dir="rtl"] .pricing-features li::before {
  margin-left: 0.35rem;
  flex-shrink: 0;
}
html[dir="rtl"] .pricing-features li.pricing-row::before {
  margin-left: 0;
}
html[dir="rtl"] .pricing-features .pricing-ico {
  margin-right: 0;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
html[dir="rtl"] .pricing-features .pricing-addon small {
  margin-left: 0;
  margin-right: 0.25rem;
}
/* Section bullets (home page): bullet on right, text aligned right beside it in RTL */
html[dir="rtl"] .section-bullets {
  text-align: right;
  direction: rtl;
}
html[dir="rtl"] .section-bullets li {
  padding-left: 0;
  padding-right: 1.5rem;
  text-align: right;
}
html[dir="rtl"] .section-bullets li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .section-bullets--inline {
  direction: rtl;
}
html[dir="rtl"] .section-bullets--inline li {
  padding-left: 0;
  padding-right: 1.25rem;
  text-align: right;
}
html[dir="rtl"] .section-bullets--inline li::before {
  left: auto;
  right: 0;
}
/* Decorative left borders → right in RTL */
html[dir="rtl"] .testimonial-card {
  border-left: none;
  border-right: 3px solid var(--primary);
}
html[dir="rtl"] .use-case-card {
  padding: 1.5rem 1rem 1.5rem 0;
  text-align: right;
  border-left: none;
  border-right: 3px solid var(--primary);
}
html[dir="rtl"] .capabilities-grid .feature-block,
html[dir="rtl"] .feature-block {
  text-align: right;
}
html[dir="rtl"] .feature-block h3,
html[dir="rtl"] .feature-block .tagline,
html[dir="rtl"] .feature-block .block-close {
  text-align: right;
}
html[dir="rtl"] .card.reveal {
  text-align: right;
}
html[dir="rtl"] .testimonial-author {
  text-align: right;
}
html[dir="rtl"] .use-cases-grid-home {
  text-align: right;
}
/* Hero benefits & use-cases list: text right beside bullet in RTL */
html[dir="rtl"] .hero-benefits li {
  padding-left: 0;
  padding-right: 1.25rem;
  text-align: right;
}
html[dir="rtl"] .hero-benefits li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .use-cases-list li {
  padding-left: 0;
  padding-right: 1.25rem;
  text-align: right;
}
html[dir="rtl"] .use-cases-list li::before {
  left: auto;
  right: 0;
}
/* Legal doc sidebar & body */
html[dir="rtl"] .legal-doc-wrap {
  direction: rtl;
}
html[dir="rtl"] .legal-doc-nav a {
  border-left: 2px solid transparent;
  border-right: none;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -2px;
  margin-right: 0;
}
html[dir="rtl"] .legal-doc-nav a.active {
  border-left-color: var(--primary);
}
html[dir="rtl"] .legal-doc-body ul {
  padding-left: 0;
  padding-right: 1.5rem;
}
/* Customer-demo page: reserve space for bullet so it doesn’t overlap Arabic text in RTL */
html[dir="rtl"] .customer-demo-page .cd-step li {
  padding-inline-start: 1.75rem;
  padding-inline-end: 0;
}
html[dir="rtl"] .customer-demo-page .cd-step li::before {
  margin-inline-end: 0.4rem;
}
/* Badge / lang selector spacing */
html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}
html[dir="rtl"] .lang-select {
  margin-left: 0;
  margin-right: 0.5rem;
}
/* Footer: mirror columns in RTL */
html[dir="rtl"] .footer-content {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .footer-content h4 {
  text-align: right;
}
html[dir="rtl"] .footer-links {
  text-align: right;
}
/* CTA / form blocks */
html[dir="rtl"] .cta-band,
html[dir="rtl"] .cta-actions {
  text-align: center;
}
html[dir="rtl"] .plan-includes-card,
html[dir="rtl"] .plan-includes-heading {
  text-align: right;
}
html[dir="rtl"] .plan-includes-heading {
  border-left: none;
  border-right: 3px solid var(--primary);
  padding-left: 0;
  padding-right: 0.6rem;
}
html[dir="rtl"] .badge-hero {
  border-left: none;
  border-right: 3px solid var(--primary);
  padding-left: 0.75rem;
  padding-right: 1rem;
}
html[dir="rtl"] .why-card {
  text-align: right;
  border-left: none;
  border-right: 3px solid var(--primary);
  padding-left: 0;
  padding-right: 1rem;
}
html[dir="rtl"] .card-icon-label {
  text-align: right;
  border-left: none;
  border-right: 3px solid var(--primary);
  padding-left: 0;
  padding-right: 0.6rem;
}
/* Mobile nav: RTL positioning */
@media (max-width: 768px) {
  html[dir="rtl"] .nav-links {
    left: auto;
    right: 0;
  }
  html[dir="rtl"] .nav-actions {
    margin-left: 0;
    margin-right: 0;
  }
  html[dir="rtl"] .nav-actions .btn {
    text-align: center;
  }
  html[dir="rtl"] .footer-content {
    text-align: center;
  }
}

/* ─── Chart Canvas ─── */
#heroChart { width: 100%; height: 100%; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero { padding: 4rem 0 3rem; }

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

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }

  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 99;
    gap: 0;
  }

  .nav-links.show { display: flex; }

  .nav-links a:not(.btn) {
    width: 100%;
    text-align: left;
    border-radius: 6px;
    padding: 0.75rem 1rem;
  }

  .nav-actions {
    margin-left: 0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    width: 100%;
    justify-content: stretch;
  }

  .nav-actions .btn { flex: 1; text-align: center; }

  .grid-4,
  .grid-3,
  .grid-2,
  .features-rich,
  .testimonials-grid,
  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links { justify-content: center; }

  .pricing-card { padding: 2rem 1.5rem; }

  .cta-band { padding: 2.5rem 1.5rem; }

  .cta-actions { flex-direction: column; }
  .cta-actions a { width: 100%; }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; text-align: center; }

  .dashboard-kpis { grid-template-columns: 1fr; }

  .split { gap: 2rem; }

  .use-cases-list { gap: 0.5rem; }

  .logo-row { gap: 1.5rem; }

  .why-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  h1 { font-size: 1.65rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .section { padding: 3rem 0; }
  .card { padding: 1.5rem; }
}
