/* ═══════════════════════════════════════════════════════════
   Pathshala ERP — Main Stylesheet  v4.0
   Modern, premium, conversion-optimised  |  April 2026
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --primary:        #2563eb;
  --primary-dark:   #1e40af;
  --primary-light:  #eff6ff;
  --primary-mid:    #dbeafe;
  --secondary:      #059669;
  --secondary-dark: #047857;
  --secondary-light:#ecfdf5;
  --accent:         #f59e0b;
  --accent-light:   #fffbeb;
  --purple:         #7c3aed;
  --purple-light:   #f5f3ff;

  --text:         #0f172a;
  --text-light:   #64748b;
  --text-lighter: #94a3b8;
  --bg:      #ffffff;
  --bg-alt:  #f8fafc;
  --bg-dark: #0f172a;
  --border:  #e2e8f0;
  --border-0:#f1f5f9;

  --radius:    12px;
  --radius-sm:  8px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow:    0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.05);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.1), 0 2px 4px -2px rgba(15,23,42,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.1), 0 4px 6px -4px rgba(15,23,42,0.06);
  --shadow-xl: 0 20px 40px -8px rgba(15,23,42,0.15), 0 8px 16px -8px rgba(15,23,42,0.08);
  --shadow-blue: 0 8px 24px rgba(37,99,235,0.25);

  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:    1200px;
  --header-h: 72px;
  --transition: 0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ── Utilities ──────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-2 { margin-top: 2rem; }
.full-width { width: 100%; }
.required { color: #dc2626; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 100%);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
}
.btn-white:hover { background: #f0f0f0; color: var(--primary); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.link-btn {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  padding: 0;
}
.link-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  height: var(--header-h);
  transition: all 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.logo strong { color: var(--primary); }
.logo-text { font-weight: 700; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  font-size: 0.925rem;
  transition: all 0.2s;
}
.main-nav a:hover { background: var(--bg-alt); text-decoration: none; color: var(--primary); }
.main-nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-cta.btn { margin-left: 8px; }

/* ── Header Actions (lang + hamburger) ───────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 3;
}

/* ── Language Dropdown ───────────────────────────────── */
.lang-dropdown {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1.4;
}
.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.lang-globe { font-size: 1rem; line-height: 1; }
.lang-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
  line-height: 1;
}
.lang-dropdown.open .lang-arrow { transform: rotate(180deg); }

/* Dropdown menu */
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 1001;
  max-height: 320px;
  overflow-y: auto;
}
.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: block;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
  font-weight: 500;
}
.lang-option:hover {
  background: var(--bg-alt);
  text-decoration: none;
  color: var(--primary);
}
.lang-option.active {
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-light);
}

/* Hide Google Translate bar/banner but keep widget element accessible */
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}
body > .skiptranslate { display: none !important; }
body { top: 0 !important; }
#google_translate_element .skiptranslate { display: block !important; position: absolute; left: -9999px; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
  }
  .main-nav a { display: block; padding: 12px 0; }
  .nav-cta.btn { margin: 12px 0 0; text-align: center; }
  .header-actions { order: 3; }
  .lang-btn .lang-label { display: none; }
  .lang-btn { padding: 6px 10px; }
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  padding: calc(var(--header-h) + 72px) 0 80px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 80%, rgba(5,150,105,0.05) 0%, transparent 60%),
    #f8fafc;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 50%, var(--secondary) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--secondary-light);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 9999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 540px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; margin-bottom: 36px; }
.hero-proof {
  display: flex;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.proof-item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid var(--border);
}
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child  { border-right: none; }
.proof-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.proof-item span { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }

/* Mockup */
.hero-visual { display: flex; justify-content: center; }
.mockup-browser {
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(15,23,42,0.06);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}
.mockup-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup-bar span:first-child      { background: #ff6059; }
.mockup-bar span:nth-child(2)      { background: #febc2e; }
.mockup-bar span:nth-child(3)      { background: #28c840; }
.mockup-dashboard {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f8fafc;
}
.mini-stat {
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}
.mini-stat span { font-size: 1rem; margin-right: 4px; }
.mini-stat b    { display: block; font-size: 1.15rem; font-weight: 800; margin-top: 4px; }
.s1 { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: var(--primary-dark); }
.s2 { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #065f46; }
.s3 { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #15803d; }
.s4 { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #92400e; }

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: calc(var(--header-h) + 32px) 0 48px; }
  .hero-proof { gap: 16px; flex-wrap: wrap; }
  .hero-cta { flex-direction: column; }
  .hero-visual { order: -1; }
}

/* ══════════════════════════════════════════════════════════
   SECTION STYLES
   ══════════════════════════════════════════════════════════ */
.section-title {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* Pain Points */
.pain-section {
  padding: 72px 0;
  background: var(--bg);
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.pain-card {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid #fecaca;
  background: linear-gradient(160deg, #fff5f5 0%, #fff 100%);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f87171, #ef4444);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.pain-card:hover::before { transform: scaleX(1); }
.pain-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
/* ensure emoji icon renders as block for margin spacing */
.pain-icon { font-size: 2rem; margin-bottom: 10px; display: block; line-height: 1; }
.pain-card h3 { font-size: 1.05rem; margin-bottom: 6px; font-weight: 700; }
.pain-card p { color: var(--text-light); font-size: 0.93rem; line-height: 1.65; }

.solution-section, .features-section {
  padding: 72px 0;
  background: var(--bg-alt);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.feature-card {
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.feature-card:hover::after    { transform: scaleX(1); }
.feature-card:hover           { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 0.925rem; }

/* India Section */
.india-section { padding: 80px 0; background: var(--bg); }
.india-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.india-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.india-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.india-card span { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.india-card h3 { font-size: 1rem; margin-bottom: 6px; }
.india-card p { color: var(--text-light); font-size: 0.9rem; }

/* ══════════════════════════════════════════════════════════
   SOLUTIONS HUB
   ══════════════════════════════════════════════════════════ */
.solutions-hub { padding: 72px 0; background: var(--bg); }
.solutions-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px;
  margin-top: 44px;
}
.solutions-group h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-0);
}
.solutions-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.solutions-links a {
  font-size: 0.9rem;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.15s;
  font-weight: 500;
}
.solutions-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
  padding-left: 14px;
}

.testimonials-section {
  padding: 88px 0;
  background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 50%, #f5f3ff 100%);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  padding: 32px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.2s;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px; right: 28px;
  font-size: 4rem;
  color: var(--primary-mid);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary-mid);
}
.stars { color: var(--accent); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 20px;
  color: var(--text);
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-0);
}
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.875rem; font-weight: 700; }
.testimonial-author span   { font-size: 0.8rem; color: var(--text-light); }

.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 40%, var(--purple) 100%);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2  { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-section p   { font-size: 1.1rem; opacity: 0.88; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-btn-group   { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════
   LEAD FORM
   ══════════════════════════════════════════════════════════ */
.lead-form-section {
  padding: 88px 0;
  background: var(--bg-alt);
}
.form-wrapper {
  max-width: 740px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-0);
}
.form-header { text-align: center; margin-bottom: 36px; }
.form-header h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.form-header p  { color: var(--text-light); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all 0.2s;
  background: var(--bg);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}
.form-group input.error,
.form-group select.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.error-msg { color: #dc2626; font-size: 0.8rem; margin-top: 4px; min-height: 1.2em; }
.form-checkboxes { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] { margin-top: 3px; accent-color: var(--primary); }
.form-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 12px;
}
.form-social-proof {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 8px;
}

/* Form Divider */
.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 16px;
  color: var(--text-lighter);
  font-size: 0.85rem;
  font-weight: 600;
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* WhatsApp CTA */
.whatsapp-cta { border-color: #25d366; color: #25d366; }
.whatsapp-cta:hover { background: #25d366; color: #fff; }

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.trust-badges span {
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--bg);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-0);
  white-space: nowrap;
  font-weight: 500;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-wrapper { padding: 24px 16px; }
}

/* ══════════════════════════════════════════════════════════
   OTP MODAL
   ══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 1.5rem;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.modal-icon { font-size: 3rem; margin-bottom: 16px; }
.modal h3 { font-size: 1.4rem; margin-bottom: 8px; }
.modal p { color: var(--text-light); margin-bottom: 20px; font-size: 0.95rem; }

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.otp-digit {
  width: 48px; height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.otp-digit:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.otp-error { color: #dc2626; font-size: 0.9rem; margin-bottom: 16px; }
.otp-resend { margin-top: 16px; font-size: 0.9rem; color: var(--text-light); }

.success-icon { font-size: 4rem; }
.trial-info {
  margin: 20px 0;
  padding: 16px;
  background: var(--secondary-light);
  border-radius: var(--radius-sm);
  text-align: left;
}
.trial-info h4 { color: var(--secondary); margin-bottom: 8px; }
.trial-info p { margin-bottom: 4px; font-size: 0.9rem; color: var(--text); }

/* ══════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════ */
.faq-section { padding: 88px 0; background: var(--bg-alt); }
.faq-list { max-width: 760px; margin: 44px auto 0; }
.faq-updated { max-width: 760px; margin: 16px auto 0; font-size: 0.8rem; color: var(--text-muted, var(--text-light)); text-align: right; }
.hero-freshness { font-size: 0.78rem; color: var(--text-light); margin-top: 12px; opacity: 0.75; }
.faq-item {
  border: 1.5px solid var(--border-0);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: 0 4px 18px rgba(37,99,235,0.09); }
.faq-item[open] { border-color: var(--primary); }
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s;
}
.faq-item summary:hover { background: var(--bg-alt); }
.faq-item summary::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--primary); flex-shrink: 0; transition: transform 0.25s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { background: var(--bg-alt); border-bottom: 1px solid var(--border-0); }
.faq-item p { padding: 16px 22px 20px; color: var(--text-light); line-height: 1.75; font-size: 0.92rem; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ══════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ══════════════════════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--header-h) + 56px) 0 56px;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(124,58,237,0.06) 0%, transparent 60%),
    #f8fafc;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 50%, var(--secondary) 100%);
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.page-hero p  { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════
   LANDING PAGE — HERO
   ══════════════════════════════════════════════════════════ */
.landing-hero {
  padding: calc(var(--header-h) + 52px) 0 68px;
  background: linear-gradient(155deg, #f0f7ff 0%, #dbeafe 45%, #ede9fe 100%);
  position: relative;
  overflow: hidden;
}
/* Top accent bar — same as main hero */
.landing-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 50%, var(--secondary) 100%);
  z-index: 1;
}
/* Subtle radial blobs for depth */
.landing-hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.landing-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--text);
}
.landing-subtitle {
  font-size: 1.12rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 22px;
}

/* ── Two-column grid ─────────────────────────── */
.landing-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 44px;
  align-items: start;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.landing-hero-grid > * { min-width: 0; }

/* ── Bullet list ─────────────────────────────── */
.landing-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.landing-hero-bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.55;
}
.landing-hero-bullets b { color: var(--text); font-weight: 600; }
.lhb-icon {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--secondary-light);
  color: var(--secondary);
  font-size: 0.78rem;
  margin-top: 1px;
}

/* ── CTA buttons row ─────────────────────────── */
.landing-hero-content .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

/* ── Proof bar ───────────────────────────────── */
.landing-hero-content .hero-proof {
  display: flex;
  gap: 0;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(37,99,235,0.15);
}
.landing-hero-content .proof-item {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(37,99,235,0.12);
}
.landing-hero-content .proof-item:first-child { padding-left: 0; }
.landing-hero-content .proof-item:last-child { border-right: none; }
.landing-hero-content .proof-item strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}
.landing-hero-content .proof-item span {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: capitalize;
}

/* ── Sidebar card ────────────────────────────── */
.landing-hero-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-xl);
  position: sticky;
  top: calc(var(--header-h) + 16px);
  border-top: 4px solid var(--primary);
}
.landing-hero-card h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}
.landing-hero-card > p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 18px;
}
.landing-hero-card-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.landing-hero-card .trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
  justify-content: flex-start;
}
.landing-hero-card .trust-badges span {
  font-size: 0.78rem;
  padding: 4px 10px;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 960px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .landing-hero-card {
    position: static;
    padding: 22px;
    border-top-width: 4px;
  }
  .landing-hero h1 { font-size: 2.2rem; }
}
@media (max-width: 640px) {
  .landing-hero { padding: calc(var(--header-h) + 28px) 0 44px; }
  .landing-hero h1 { font-size: 1.9rem; }
  .landing-hero-content .hero-cta { flex-direction: column; }
  .landing-hero-content .hero-cta .btn { width: 100%; justify-content: center; }
}

/* Breadcrumb */
.breadcrumb {
  padding: calc(var(--header-h) + 14px) 0 0;
  font-size: 0.82rem;
  position: relative;
  z-index: 2;
  background: transparent;
}
.breadcrumb ol { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li::after { content: '›'; margin-left: 6px; color: var(--text-lighter); font-size: 1rem; line-height: 1; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li:last-child { color: var(--text-light); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
/* reduce top padding when breadcrumb precedes landing-hero */
.breadcrumb + .landing-hero { padding-top: 16px; }

/* Landing Content */
.landing-content {
  padding: 64px 0 72px;
  background: var(--bg);
}
.content-article {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.04rem;
  line-height: 1.82;
  color: var(--text);
}
.content-article h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 38px 0 12px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-0);
}
.content-article h2:first-child { margin-top: 0; }
.content-article p { margin-bottom: 18px; }
.content-article ul {
  margin: 6px 0 18px 0;
  list-style: none;
  padding: 0;
}
.content-article ul li {
  padding: 5px 0 5px 24px;
  position: relative;
  color: var(--text-light);
  margin-bottom: 4px;
}
.content-article ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.9rem;
  top: 6px;
  font-weight: 700;
}
.content-article ol {
  margin: 6px 0 18px 0;
  padding: 0;
  counter-reset: article-counter;
  list-style: none;
}
.content-article ol li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-0);
  font-size: 1rem;
  color: var(--text-light);
  counter-increment: article-counter;
}
.content-article ol li::before {
  content: counter(article-counter);
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.content-article ol li:last-child { border-bottom: none; }
.content-article li strong { color: var(--text); font-weight: 700; }
.content-article strong { color: var(--text); font-weight: 700; }

/* Mid-page CTA Strip (Landing pages) */
.cta-strip {
  margin: 36px 0 24px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--purple-light) 100%);
  border: 1px solid var(--primary-mid);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-strip-copy h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 3px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.cta-strip-copy p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.92rem;
}
.cta-strip-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .cta-strip-inner { flex-direction: column; align-items: flex-start; }
  .cta-strip-actions { width: 100%; }
  .cta-strip-actions .btn { flex: 1; justify-content: center; }
}

/* Content Freshness */
.content-freshness {
  padding: 16px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-lighter);
  border-top: 1px solid var(--border);
}
.freshness-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--secondary-light);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 12px;
}

/* TL;DR Block (AI-citable summary) */
.tldr-block {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 18px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-light);
}
.tldr-block strong { color: var(--primary); font-weight: 700; }

/* Related Pages */
.related-section { padding: 60px 0; background: var(--bg-alt); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.related-card {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  color: var(--text);
}
.related-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); text-decoration: none; }
.related-card h3 { font-size: 1rem; margin-bottom: 4px; text-transform: capitalize; }
.related-card p { font-size: 0.85rem; color: var(--text-light); }

/* ══════════════════════════════════════════════════════════
   FEATURES PAGE
   ══════════════════════════════════════════════════════════ */
.features-detail { padding: 60px 0; }
.feature-detail-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.feature-detail-card.reverse { direction: rtl; }
.feature-detail-card.reverse > * { direction: ltr; }
.fdc-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 12px;
}
.fdc-content h2 { font-size: 1.6rem; margin-bottom: 12px; }
.fdc-content p { color: var(--text-light); margin-bottom: 16px; }
.fdc-content ul { list-style: none; margin-bottom: 20px; }
.fdc-content li { padding: 4px 0; padding-left: 24px; position: relative; color: var(--text-light); }
.fdc-content li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary); font-weight: 700; }
.fdc-icon { font-size: 4rem; padding: 24px; background: var(--bg-alt); border-radius: var(--radius); }

@media (max-width: 768px) {
  .feature-detail-card { grid-template-columns: 1fr; gap: 24px; }
  .feature-detail-card.reverse { direction: ltr; }
  .fdc-visual { text-align: center; }
}

/* Modules overview (features page) */
.modules-overview { padding: 60px 0; background: var(--bg-alt); }
.modules-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.module-mini {
  padding: 12px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}
.module-mini:hover { border-color: var(--primary); background: var(--primary-light); }
.module-mini span { margin-right: 4px; }

/* ══════════════════════════════════════════════════════════
   PRICING PAGE
   ══════════════════════════════════════════════════════════ */
.pricing-section { padding: 60px 0; }
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.toggle-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  cursor: pointer;
}
.toggle-label.active { color: var(--text); }
.save-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--secondary-light);
  color: var(--secondary);
  font-size: 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
}
.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 9999px;
  position: relative;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.toggle-switch.active { background: var(--primary); }
.toggle-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}
.toggle-switch.active .toggle-knob { left: 25px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.pricing-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 28px;
  padding: 36px;
  position: relative;
  transition: all 0.2s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-blue);
  transform: scale(1.03);
  background: linear-gradient(180deg, var(--primary-light) 0%, #fff 20%);
}
.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-3px);
  box-shadow: 0 16px 40px rgba(37,99,235,0.3);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%; transform: translateX(-50%);
  padding: 5px 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
  letter-spacing: 0.02em;
}
.pricing-header h3 { font-size: 1.3rem; margin-bottom: 4px; }
.pricing-for { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; }
.pricing-price { margin-bottom: 28px; display: flex; align-items: baseline; gap: 4px; }
.pricing-price .price { font-size: 2.4rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.pricing-price .period { font-size: 0.9rem; color: var(--text-light); }
.pricing-features { margin-bottom: 28px; }
.pricing-features li {
  padding: 7px 0 7px 26px;
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
  border-bottom: 1px solid var(--border-0);
}
.pricing-features li:last-child  { border-bottom: none; }
.pricing-features li::before     { content: '✓'; position: absolute; left: 0; color: var(--secondary); font-weight: 700; }
.pricing-guarantee {
  max-width: 640px;
  margin: 48px auto 0;
  text-align: center;
  padding: 24px;
  background: var(--accent-light);
  border-radius: var(--radius);
}
.pricing-guarantee h3 { margin-bottom: 8px; }
.pricing-guarantee p { color: var(--text-light); font-size: 0.95rem; }

/* ══════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════ */
.about-section { padding: 60px 0; }
.about-story { max-width: 720px; margin: 0 auto 60px; }
.about-story h2 { font-size: 1.75rem; margin-bottom: 16px; }
.about-story p { color: var(--text-light); margin-bottom: 16px; font-size: 1.05rem; line-height: 1.8; }
.about-values { margin-bottom: 60px; }
.about-values h2 { text-align: center; font-size: 1.75rem; margin-bottom: 32px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.value-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.value-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value-card p { color: var(--text-light); font-size: 0.95rem; }
.about-numbers h2 { text-align: center; font-size: 1.75rem; margin-bottom: 32px; }
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.stat-box { text-align: center; min-width: 120px; }
.stat-box strong { display: block; font-size: 2rem; color: var(--primary); }
.stat-box span { font-size: 0.85rem; color: var(--text-light); }

/* ══════════════════════════════════════════════════════════
   CONTACT & DEMO PAGES
   ══════════════════════════════════════════════════════════ */
.contact-section, .demo-section { padding: 60px 0; }
.contact-grid, .demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
.contact-method { margin-bottom: 24px; }
.contact-method h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-method p { color: var(--text-light); }
.contact-cta {
  margin-top: 32px;
  padding: 24px;
  background: var(--primary-light);
  border-radius: var(--radius);
}
.contact-cta h3 { margin-bottom: 8px; }
.contact-cta p { color: var(--text-light); margin-bottom: 16px; }

/* Contact page: lead-form-section inside contact-form-wrapper */
.contact-form-wrapper .lead-form-section { padding: 0; background: transparent; }
.contact-form-wrapper .form-wrapper { box-shadow: none; padding: 0; }

.demo-steps { display: flex; flex-direction: column; gap: 24px; margin: 32px 0; }
.demo-step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: 1rem;
}
.demo-step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.demo-step p { color: var(--text-light); font-size: 0.9rem; }
.demo-guarantee {
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  margin-top: 24px;
}
.demo-guarantee h3 { margin-bottom: 8px; }
.demo-guarantee p { color: var(--text-light); font-size: 0.95rem; }

.demo-form-wrapper .lead-form-section { padding: 0; background: transparent; }

@media (max-width: 768px) {
  .contact-grid, .demo-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════════════════════ */
.legal-page {
  padding: calc(var(--header-h) + 48px) 0 60px;
}
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.legal-page p { color: var(--text-light); margin-bottom: 12px; line-height: 1.7; }

/* ══════════════════════════════════════════════════════════
   404
   ══════════════════════════════════════════════════════════ */
.error-page {
  padding: calc(var(--header-h) + 80px) 0 80px;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.error-code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 12px; }
.error-page h2 { font-size: 1.5rem; margin-bottom: 12px; }
.error-page p { color: var(--text-light); margin-bottom: 24px; }
.error-links { display: flex; gap: 12px; justify-content: center; }

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { margin-top: 14px; font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-brand .logo       { color: #fff; }
.footer-brand .logo strong { color: #93c5fd; }
.footer-links h4  { color: #fff; font-size: 0.78rem; font-weight: 700; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links li  { margin-bottom: 10px; }
.footer-links a   { color: #94a3b8; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-updated { color: #475569; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   VIDEO SECTION
   ══════════════════════════════════════════════════════════ */
.video-section {
  padding: 72px 0;
  background: var(--bg-alt);
}
.video-section--demo {
  padding: 48px 0 60px;
  background: #fff;
}
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(37,99,235,0.15);
  background: #000;
  /* Fallback for older browsers (iOS Safari < 15, etc.) */
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
}
@supports (aspect-ratio: 16 / 9) {
  .video-wrapper {
    aspect-ratio: 16 / 9;
    padding-bottom: 0;
    height: auto;
  }
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .video-cta { flex-direction: column; align-items: center; }
  .video-section, .video-section--demo { padding: 48px 0; }
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-content > *:nth-child(1) { animation: fadeInUp 0.55s ease both; }
.hero-content > *:nth-child(2) { animation: fadeInUp 0.55s 0.10s ease both; }
.hero-content > *:nth-child(3) { animation: fadeInUp 0.55s 0.20s ease both; }
.hero-content > *:nth-child(4) { animation: fadeInUp 0.55s 0.30s ease both; }

/* Global focus style */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Text selection */
::selection {
  background: rgba(37,99,235,0.18);
  color: var(--text);
}

/* Scroll-margin so anchor links don't hide behind sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ══════════════════════════════════════════════════════════
   VIDEO — MOBILE FIX
   ══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .video-wrapper {
    border-radius: 8px;
    margin: 20px auto 0;
    max-width: 100%;
  }
  .video-section .container,
  .video-section--demo .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ══════════════════════════════════════════════════════════
   DEFINITION SECTION
   ══════════════════════════════════════════════════════════ */
.definition-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.definition-block {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 16px 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
}
.definition-block strong { color: var(--text); }
.definition-block a { color: var(--primary); text-decoration: none; }
.definition-block a:hover { text-decoration: underline; }

/* Source attribution line in hero */
.hero-source {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-top: -4px;
  margin-bottom: 8px;
}

/* Optional field label */
.optional {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════════
   COMPARISON TABLE
   ══════════════════════════════════════════════════════════ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(37,99,235,0.08);
}
.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
}
.comparison-table th.col-ours { background: var(--primary-dark, #1d4ed8); }
.comparison-table th.col-them { background: #64748b; }
.comparison-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--bg-alt); }
.comparison-table td.win {
  color: var(--primary);
  font-weight: 600;
}
.comparison-table td.col-ours { background: rgba(37,99,235,0.04); }
@media (max-width: 640px) {
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}

/* ══════════════════════════════════════════════════════════
   GUIDE — TABLE OF CONTENTS
   ══════════════════════════════════════════════════════════ */
.guide-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 28px;
  max-width: 680px;
  margin: 0 auto 32px;
}
.guide-toc p { margin: 0 0 8px; font-weight: 600; }
.guide-toc ol {
  margin: 0;
  padding-left: 20px;
  line-height: 2;
}
.guide-toc a { color: var(--primary); text-decoration: none; font-size: 0.92rem; }
.guide-toc a:hover { text-decoration: underline; }
.guide-toc .container { padding: 0; }

/* Guide checklist */
.guide-checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.guide-checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.5;
}
.guide-checklist li:last-child { border-bottom: none; }
.guide-checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1rem;
}

/* Checklist block */
.checklist-block {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 20px 24px;
}
.checklist-block p { margin: 0; font-size: 0.92rem; line-height: 1.7; }

/* ══════════════════════════════════════════════════════════
   TEAM / FOUNDER SECTION
   ══════════════════════════════════════════════════════════ */
.team-section {
  padding: 64px 0;
  background: var(--bg);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.team-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.team-card:hover {
  box-shadow: 0 8px 32px rgba(37,99,235,0.1);
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.team-card h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--text);
}
.team-role {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 12px;
}
.team-bio {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ── WhatsApp Floating CTA ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  color: #fff;
}
.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .whatsapp-float svg {
    width: 20px;
    height: 20px;
  }
}
