/* ═══════════════════════════════════════════════════════════
   Pathshala ERP — Theme layer  (loads AFTER style.css)
   Purple brand, calm surfaces, AA contrast, 44px tap targets.
   Overrides tokens first, then refines components by class.
   Sections: 1 tokens · 2 base · 3 buttons · 4 header · 5 hero
   6 sections/cards · 7 tables · 8 pricing · 9 FAQ · 10 forms
   11 CTA band · 12 footer · 13 floating UI · 14 motion
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Tokens ──────────────────────────────────────────── */
:root {
  --primary:        #6d28d9;
  --primary-dark:   #4c1d95;
  --primary-light:  #f5f3ff;
  --primary-mid:    #ede9fe;
  --purple:         #7e22ce;
  --purple-light:   #faf5ff;
  --secondary:      #047857;
  --secondary-dark: #065f46;
  --secondary-light:#ecfdf5;
  --accent:         #b45309;
  --accent-light:   #fffbeb;

  --text:         #1a1530;
  --text-light:   #565a73;
  --text-lighter: #6f7389;
  --bg-alt:  #faf9fd;
  --bg-dark: #150f2e;
  --border:  #e6e3f0;
  --border-0:#f0eef7;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --shadow:    0 1px 2px rgba(26,21,48,0.06), 0 1px 3px rgba(26,21,48,0.05);
  --shadow-md: 0 6px 16px -4px rgba(26,21,48,0.10), 0 2px 4px -2px rgba(26,21,48,0.05);
  --shadow-lg: 0 16px 32px -12px rgba(26,21,48,0.16), 0 4px 8px -4px rgba(26,21,48,0.06);
  --shadow-xl: 0 28px 56px -16px rgba(26,21,48,0.20), 0 8px 16px -8px rgba(26,21,48,0.08);
  --shadow-blue: 0 10px 28px -8px rgba(109,40,217,0.35);

  --header-h: 68px;
  --ui-ring: #7c3aed;
  --ui-cloud: #0369a1;        /* cloud product accent (distinct from offline purple) */
  --ui-cloud-light: #f0f9ff;
  --ui-section: 88px;         /* vertical section rhythm (8px grid) */
}
@media (max-width: 768px) {
  :root { --header-h: 64px; --ui-section: 56px; }
}

/* ── 2. Base ────────────────────────────────────────────── */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { overflow-x: hidden; overflow-x: clip; text-rendering: optimizeLegibility; }
::selection { background: var(--primary-mid); color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--text); line-height: 1.25; text-wrap: balance; }
p { text-wrap: pretty; }
main a:not(.btn) { text-underline-offset: 3px; }
main p a:not(.btn), main li a:not(.btn) { text-decoration: underline; text-decoration-color: rgba(109,40,217,0.35); }
main p a:not(.btn):hover, main li a:not(.btn):hover { text-decoration-color: currentColor; }
code { font-size: 0.88em; padding: 2px 6px; border-radius: 6px; background: var(--primary-light); color: var(--primary-dark); overflow-wrap: anywhere; }
pre { overflow-wrap: anywhere; }

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--ui-ring);
  outline-offset: 2px;
  border-radius: 6px;
}
.cta-section :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

@media (max-width: 480px) {
  .container { padding: 0 18px; }
}

/* ── 3. Buttons ─────────────────────────────────────────── */
.btn {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1.02rem; }
.btn-primary, .btn-cta {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(26,21,48,0.12), 0 6px 16px -6px rgba(109,40,217,0.55);
  letter-spacing: 0;
}
.btn-primary:hover, .btn-cta:hover {
  background: #5b21b6;
  color: #fff;
  box-shadow: 0 1px 2px rgba(26,21,48,0.12), 0 12px 24px -8px rgba(109,40,217,0.6);
  transform: translateY(-1px);
}
.btn-outline { border: 1.5px solid var(--primary); background: #fff; }
.btn-outline-light { border: 1.5px solid var(--border); background: #fff; box-shadow: var(--shadow); }
.btn-outline-light:hover { background: var(--primary-light); }
.btn-outline-white { border-width: 1.5px; }
.btn-white { color: var(--primary-dark); box-shadow: 0 8px 24px -8px rgba(0,0,0,0.35); }
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); }
.whatsapp-cta { border-color: #128c4a; color: #0e7a40; }
.whatsapp-cta:hover { background: #128c4a; border-color: #128c4a; color: #fff; }
@media (max-width: 600px) {
  .btn { white-space: normal; max-width: 100%; }
}

/* ── 4. Header + navigation ─────────────────────────────── */
.site-header {
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s, background-color .25s;
}
.site-header.scrolled, .site-header.ui-scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 20px -12px rgba(26,21,48,0.25);
}
.logo { font-size: 1.15rem; min-height: 44px; }
.logo-icon { background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%); box-shadow: 0 4px 10px -4px rgba(109,40,217,0.6); }
.main-nav a { color: #3b3654; padding: 10px 14px; }
.main-nav a:hover { background: var(--primary-light); }
.main-nav a.active { background: var(--primary-light); color: var(--primary); }
.main-nav a.btn, .main-nav a.btn:hover { color: #fff; background: var(--primary); padding: 8px 16px; }
.main-nav a.btn:hover { background: #5b21b6; }

.lang-btn { min-height: 40px; border-width: 1px; color: #3b3654; }
.lang-menu { border-radius: var(--radius); padding: 6px; max-height: min(70vh, 420px); overflow-y: auto; z-index: 1001; }
.lang-option { border-radius: 8px; padding: 10px 12px; }

.nav-toggle { width: 44px; height: 44px; padding: 0 8px; justify-content: center; border-radius: 10px; }
.nav-toggle:hover { background: var(--primary-light); }

@media (max-width: 768px) {
  .lang-btn { min-height: 44px; min-width: 44px; justify-content: center; }
  .main-nav { border-bottom: 1px solid var(--border); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav ul { padding: 12px 18px 20px; gap: 2px; align-items: stretch; }
  .main-nav a { padding: 13px 14px; font-size: 1rem; }
  .main-nav a.btn { min-height: 48px; padding: 12px 16px; margin-top: 10px; }
}

/* ── 5. Hero (home) + page hero (inner pages) ───────────── */
.hero {
  padding: calc(var(--header-h) + 72px) 0 88px;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(124,58,237,0.13) 0%, transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(109,40,217,0.07) 0%, transparent 70%),
    linear-gradient(180deg, #f8f5ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-0);
}
.hero::before, .page-hero::before { display: none; }
.hero .container { gap: 56px; }
.hero-badge, .freshness-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: #fff;
  color: var(--secondary);
  border: 1px solid #a7f3d0;
  font-size: 0.82rem; font-weight: 600;
  box-shadow: var(--shadow);
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -0.035em; margin-bottom: 20px; }
.text-gradient { background-image: linear-gradient(120deg, #6d28d9 0%, #9333ea 100%); }
.hero-subtitle { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--text-light); margin-bottom: 32px; }
.hero-cta { gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-proof {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  border-top: 0; padding-top: 0;
}
.proof-item, .proof-item:first-child {
  padding: 14px 10px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.proof-item:last-child { border-right: 1px solid var(--border); }
.proof-item strong { font-size: 1.3rem; line-height: 1.2; color: var(--primary-dark); }
.proof-item span { display: block; margin-top: 4px; font-size: 0.76rem; line-height: 1.35; color: var(--text-light); }

/* Decorative product illustration fills the empty second hero column (desktop only). */
@media (min-width: 961px) {
  .hero .container:not(:has(.hero-visual))::after {
    content: '';
    align-self: center;
    aspect-ratio: 560 / 440;
    background: url('/images/ui-hero-app.svg') center / contain no-repeat;
  }
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-subtitle { max-width: 640px; }
}
@media (max-width: 768px) {
  .hero { padding: calc(var(--header-h) + 32px) 0 48px; }
  .hero-cta { flex-direction: column; margin-bottom: 28px; }
  .hero-cta .btn { width: 100%; }
  .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.page-hero {
  padding: calc(var(--header-h) + 56px) 0 56px;
  background:
    radial-gradient(50% 90% at 50% 0%, rgba(124,58,237,0.12) 0%, transparent 70%),
    linear-gradient(180deg, #f8f5ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-0);
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.03em; max-width: 880px; margin-left: auto; margin-right: auto; }
.page-hero p { font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 640px; }
@media (max-width: 768px) {
  .page-hero { padding: calc(var(--header-h) + 32px) 0 36px; }
}

/* ── 6. Sections + cards ────────────────────────────────── */
.india-section, .features-detail, .faq-section, .decision-section, .related-section,
.pricing-section, .about-section, .contact-section, .demo-section, .lead-form-section {
  padding-top: var(--ui-section); padding-bottom: var(--ui-section);
}
.page-hero + .pricing-section, .page-hero + .features-detail, .page-hero + .about-section,
.page-hero + .contact-section, .page-hero + .demo-section { padding-top: 56px; }
.india-section + .features-detail, .features-detail + .india-section,
.india-section + .india-section, .features-detail + .features-detail { padding-top: 0; }

.section-title { font-size: clamp(1.55rem, 3.2vw, 2.2rem); line-height: 1.2; letter-spacing: -0.025em; margin-bottom: 12px; }
.section-subtitle { font-size: clamp(0.98rem, 1.3vw, 1.08rem); max-width: 640px; margin-bottom: 40px; }

.feature-grid { gap: 20px; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature-card, .india-card, .related-card, .decision-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feature-card { padding: 28px; }
.feature-card::after { display: none; }
.feature-card:hover, .india-card:hover, .related-card:hover {
  border-color: #c4b5fd; box-shadow: var(--shadow-lg); transform: translateY(-2px);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-mid) 100%);
  border: 1px solid #ddd6fe;
  font-size: 1.5rem; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.08rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature-card p, .india-card p, .related-card p { font-size: 0.94rem; line-height: 1.65; color: var(--text-light); }

.india-grid { gap: 20px; margin-top: 40px; }
.india-card { padding: 28px; }
.india-card h3 { font-size: 1.08rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.related-card { padding: 24px; }
.related-card h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--primary-dark); }

/* Download / guide panels */
.feature-detail-card {
  display: block;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.feature-detail-card h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.feature-detail-card p { margin-bottom: 16px; }
.feature-detail-card p:last-child { margin-bottom: 0; }
.feature-detail-card .btn-lg { width: 100%; max-width: 440px; }
.feature-detail-card details { padding: 4px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-alt); font-size: 0.9rem; }
.feature-detail-card details summary { cursor: pointer; font-weight: 600; padding: 8px 0; line-height: 28px; }
.feature-detail-card details p { margin: 4px 0 12px; color: var(--text-light); }

.guide-toc { background: #fff; border-color: var(--border); border-radius: var(--radius-lg); padding: 24px 28px 24px 44px; box-shadow: var(--shadow); line-height: 1.7; }
ol.guide-toc li { padding: 8px 0 8px 4px; }
ol.guide-toc li::marker { color: var(--primary); font-weight: 700; }
ol.guide-toc li + li { border-top: 1px solid var(--border-0); }

.benefit-list li {
  position: relative; padding: 12px 0 12px 32px;
  font-size: 0.97rem; color: #3b3654; border-bottom-color: var(--border);
}
.benefit-list li:last-child { border-bottom: 0; }
.benefit-list li::before {
  content: ''; position: absolute; left: 4px; top: 19px;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}

.answer-first {
  max-width: 860px; margin: 0 auto 40px;
  padding: 20px 24px;
  text-align: left;
  font-size: 1.03rem; line-height: 1.75; color: #2f2a47;
  background: var(--primary-light);
  border: 1px solid #ddd6fe; border-left: 4px solid var(--primary);
  border-radius: var(--radius);
}
.about-story h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -0.02em; margin-top: 40px; }
.about-story .comparison-table, .about-story .table-scroll { margin: 16px 0 28px; }
.about-story .benefit-list { margin: 8px 0 20px; }
/* Stacked titles inside one long section (download page) need more air than their inline 36px. */
.features-detail .section-title[style] { margin-top: 64px !important; margin-bottom: 20px; }
/* Home "Popular Guides": plain link list becomes tappable rows. */
#guides li a {
  display: block; padding: 14px 18px; min-height: 48px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--primary-dark); font-weight: 600; text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
#guides li a:hover { border-color: #c4b5fd; box-shadow: var(--shadow-md); }
.answer-first-section .section-title { margin-bottom: 16px; }
.answer-first-section p { color: #3b3654; }
.about-story p, .prose-narrow > p { color: #45415c; }
@media (max-width: 600px) {
  .feature-card, .india-card { padding: 22px; }
  .feature-detail-card { padding: 22px 18px; }
  .answer-first { padding: 16px 18px; font-size: 0.98rem; margin-bottom: 28px; }
  .guide-toc { padding: 16px 18px 16px 36px; }
}

/* ── 7. Comparison tables ───────────────────────────────── */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); background: #fff;
}
.table-scroll .comparison-table { border: 0; box-shadow: none; border-radius: 0; }
.comparison-table {
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: #fff; font-size: 0.94rem; line-height: 1.5;
}
.comparison-table caption { padding: 14px 18px; background: #fff; }
.table-scroll .comparison-table caption { position: sticky; left: 0; max-width: min(100vw - 40px, 640px); }
.comparison-table thead th {
  background: var(--primary-dark); color: #fff;
  padding: 14px 18px; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.01em;
  vertical-align: bottom;
}
.comparison-table thead th.col-ours { background: var(--primary); }
.comparison-table thead th a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.comparison-table td, .comparison-table tbody th[scope="row"] {
  padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left;
}
.comparison-table tbody tr:last-child > * { border-bottom: 0; }
.comparison-table tbody td { background: #fff; color: #3b3654; }
.comparison-table tbody tr:nth-child(even) td { background: var(--bg-alt); }
.comparison-table tbody td:first-child, .comparison-table tbody th[scope="row"] {
  font-weight: 600; color: var(--text);
}
.comparison-table tbody th[scope="row"] { background: #f3f0fa; }
.comparison-table tbody tr:hover td { background: var(--primary-light); }
.comparison-table td.win { color: var(--secondary); font-weight: 600; }
.comparison-table td.col-ours { background: var(--primary-light); }
/* Keep the feature-name column in view while the table scrolls sideways. */
.table-scroll .comparison-table tbody th[scope="row"],
.table-scroll .comparison-table thead th:first-child {
  position: sticky; left: 0; z-index: 1;
  box-shadow: 1px 0 0 var(--border);
}
@media (max-width: 640px) {
  .comparison-table { font-size: 0.86rem; }
  .comparison-table thead th, .comparison-table td, .comparison-table tbody th[scope="row"] { padding: 12px; }
  .table-scroll .comparison-table { min-width: 600px; }
  .table-scroll .comparison-table tbody th[scope="row"] { width: 124px; min-width: 124px; }
}

/* ── 8. Pricing: offline (purple) vs cloud (blue) ───────── */
.product-duo { gap: 28px; align-items: stretch; }
.pricing-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 32px; box-shadow: var(--shadow-md);
}
.pricing-card > .btn { margin-top: auto; }
.pricing-card.popular, .product-block.product-offline {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, var(--primary-light) 0, #fff 180px);
  box-shadow: 0 24px 48px -20px rgba(109,40,217,0.35);
}
.product-block.product-cloud {
  border: 1px solid #bae6fd;
  background: linear-gradient(180deg, var(--ui-cloud-light) 0, #fff 180px);
}
.popular-badge { background: var(--primary); box-shadow: 0 6px 14px -4px rgba(109,40,217,0.5); }
.product-tag { align-self: flex-start; padding: 6px 14px; background: var(--primary); font-size: 0.72rem; }
.product-tag-cloud { background: var(--ui-cloud); }
.product-block h2 { font-size: clamp(1.3rem, 2.4vw, 1.5rem); margin: 16px 0 6px; letter-spacing: -0.02em; }
.pricing-for { font-size: 0.9rem; line-height: 1.55; margin-bottom: 20px; }
.pricing-price { flex-wrap: wrap; gap: 4px 8px; margin-bottom: 16px; }
.pricing-price .price { font-size: clamp(2.4rem, 6vw, 3rem); line-height: 1; color: var(--primary-dark); }
.pricing-price .period { font-size: 0.95rem; }
.product-note { font-size: 0.92rem; line-height: 1.6; }
.product-trial { border: 1px solid #a7f3d0; color: #064e3b; line-height: 1.55; }
.product-sub { margin: 4px 0 8px; font-size: 0.8rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-light); }
.plan-list { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 20px; }
.plan-list li { padding: 12px 16px; min-height: 60px; }
.plan-name strong { font-size: 1rem; }
.plan-name small { line-height: 1.4; }
.plan-price { font-size: 1.15rem; color: var(--text); }
.product-cloud .btn-outline { border-color: var(--ui-cloud); color: var(--ui-cloud); }
.product-cloud .btn-outline:hover { background: var(--ui-cloud); color: #fff; }
.pricing-features li { padding: 10px 0 10px 30px; font-size: 0.94rem; border-bottom-color: var(--border-0); }
.pricing-features li::before {
  content: ''; left: 2px; top: 16px;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--secondary); border-bottom: 2.5px solid var(--secondary);
  transform: rotate(-45deg);
}

.decision-grid { gap: 24px; }
.decision-card { display: flex; flex-direction: column; padding: 28px; border-top: 4px solid var(--primary); }
.decision-card + .decision-card { border-top-color: var(--ui-cloud); }
.decision-card h3 { font-size: 1.12rem; letter-spacing: -0.01em; margin-bottom: 16px; }
.decision-card ul { list-style: none; padding-left: 0; margin-bottom: 24px; }
.decision-card li { position: relative; padding-left: 28px; margin-bottom: 12px; color: #45415c; }
.decision-card li::before {
  content: ''; position: absolute; left: 2px; top: 8px;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}
.decision-card + .decision-card li::before { border-color: var(--ui-cloud); }
.decision-card > .btn { margin-top: auto; align-self: flex-start; }
.decision-more { color: var(--text-light); }
.pricing-guarantee {
  max-width: 720px; padding: 24px 28px;
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: var(--radius); box-shadow: var(--shadow); text-align: left;
}
.pricing-guarantee h3 { font-size: 1.08rem; }
@media (max-width: 600px) {
  .pricing-card { padding: 24px 18px; border-radius: var(--radius-lg); }
  .decision-card { padding: 22px 18px; }
  .decision-card > .btn { align-self: stretch; }
}

/* ── 9. FAQ accordions ──────────────────────────────────── */
.faq-list { margin-top: 36px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; background: #fff; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-md); border-color: #c4b5fd; }
.faq-item[open] { border-color: var(--primary); box-shadow: 0 10px 24px -14px rgba(109,40,217,0.45); }
.faq-item summary {
  min-height: 56px; padding: 16px 20px;
  font-size: 1rem; line-height: 1.45; color: var(--text);
  border-radius: var(--radius);
}
.faq-item summary:hover, .faq-item[open] summary { background: transparent; border-bottom: 0; }
.faq-item[open] summary { color: var(--primary-dark); }
.faq-item summary::after {
  content: ''; width: 9px; height: 9px; margin: -4px 6px 0 0;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq-item p { padding: 0 20px 20px; font-size: 0.96rem; line-height: 1.7; color: #45415c; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] > :not(summary) { animation: ui-faq-in .22s ease-out both; }
}
@keyframes ui-faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── 10. Forms + contact ────────────────────────────────── */
.form-wrapper { border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 40px; }
.form-header h2 { font-size: clamp(1.35rem, 2.8vw, 1.75rem); }
.form-group input, .form-group select, .form-group textarea {
  min-height: 48px; padding: 12px 14px; font-size: 1rem;
  border: 1px solid #cfcadf; border-radius: var(--radius-sm);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #6f7389; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124,58,237,0.18);
}
.checkbox-label { min-height: 28px; align-items: center; }
.checkbox-label input[type="checkbox"] { width: 20px; height: 20px; margin-top: 0; flex-shrink: 0; }
.trust-badges span { border: 1px solid var(--border); white-space: normal; }
.error-msg { color: #b91c1c; }

.contact-grid, .demo-grid { gap: 40px; }
.contact-info h2 { font-size: clamp(1.35rem, 2.8vw, 1.75rem); letter-spacing: -0.02em; margin-bottom: 20px; }
.contact-method {
  padding: 18px 20px; margin-bottom: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-method h3 { font-size: 1.02rem; margin-bottom: 6px; }
.contact-method a { font-weight: 600; overflow-wrap: anywhere; }
.contact-cta { margin-top: 24px; border: 1px solid #ddd6fe; border-radius: var(--radius); }
.contact-form-wrapper .form-wrapper {
  padding: 28px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
  .form-wrapper, .contact-form-wrapper .form-wrapper { padding: 22px 16px; border-radius: var(--radius-lg); }
}

/* ── 11. CTA band ───────────────────────────────────────── */
.cta-section {
  padding: var(--ui-section) 0;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(168,85,247,0.55) 0%, transparent 60%),
    linear-gradient(135deg, #3b1578 0%, #5b21b6 55%, #6d28d9 100%);
}
.cta-section h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -0.025em; }
.cta-section p { opacity: 1; color: #e9e3fb; font-size: clamp(1rem, 1.4vw, 1.1rem); margin-bottom: 28px; }
.cta-section .btn { margin: 6px; }
@media (max-width: 600px) {
  .cta-section .btn { display: flex; width: 100%; margin: 10px 0 0; }
}

/* ── 12. Footer ─────────────────────────────────────────── */
.site-footer { padding: 64px 0 28px; color: #b9b4d0; background: var(--bg-dark); }
.footer-grid { gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: #b9b4d0; max-width: 320px; }
.footer-brand .logo strong { color: #c4b5fd; }
.footer-links h4 { color: #fff; margin-bottom: 14px; }
.footer-links li { margin-bottom: 0; padding: 5px 0; font-size: 0.9rem; line-height: 1.5; color: #9c96b8; }
.footer-links a { display: inline-block; padding: 4px 0; color: #d2cde6; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-guides { padding-top: 28px; border-top: 1px solid #2a2350; }
.footer-contact { color: #9c96b8; line-height: 2; }
.footer-bottom { border-top-color: #2a2350; color: #9c96b8; }
.footer-bottom strong { color: #fff; }
@media (max-width: 768px) {
  .site-footer { padding: 48px 0 calc(92px + env(safe-area-inset-bottom, 0px)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-links a { padding: 8px 0; }
  .footer-links li { padding: 2px 0; }
}

/* ── 13. Floating UI: sticky bar, WhatsApp, demo button ─── */
.mobile-sticky-bar {
  gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.97); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px -12px rgba(26,21,48,0.25);
}
.sticky-btn { min-height: 46px; border-radius: var(--radius-sm); font-size: 0.92rem; }
.sticky-call { background: var(--primary); }
.sticky-whatsapp, .sticky-whatsapp:hover { background: #128c4a; }
.whatsapp-float { background: #128c4a; min-height: 48px; box-shadow: 0 10px 24px -8px rgba(18,140,74,0.6); }
.whatsapp-float:hover { background: #0e7a40; }
.floating-demo-btn { background: var(--primary); box-shadow: 0 10px 24px -8px rgba(109,40,217,0.6); }
.floating-demo-btn:hover { background: #5b21b6; box-shadow: 0 14px 28px -8px rgba(109,40,217,0.65); }
@media (max-width: 768px) {
  /* The sticky bar already carries WhatsApp: shrink the float to an icon so it covers less text. */
  .whatsapp-float {
    width: 52px; height: 52px; min-height: 0; padding: 0; gap: 0;
    justify-content: center; border-radius: 50%;
    font-size: 0; right: 14px; bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .whatsapp-float svg { width: 26px; height: 26px; }
  /* style.css means this to be desktop-only; main.js sets it inline, so enforce it here. */
  .floating-demo-btn { display: none !important; }
}

/* ── 14. Motion ─────────────────────────────────────────── */
.ui-reveal { opacity: 0; transform: translateY(14px); }
.ui-reveal.ui-in { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s ease-out; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ui-reveal { opacity: 1; transform: none; }
  .btn:hover, .feature-card:hover, .india-card:hover, .related-card:hover, .pricing-card:hover { transform: none; }
}
@media print {
  .ui-reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .mobile-sticky-bar, .whatsapp-float, .floating-demo-btn { display: none !important; }
}

/* ── 15. Lead form errors (2026-11-13) ─────────────────── */
.form-error-box { display: none; margin: 0 0 14px; padding: 12px 14px; border-radius: 10px;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .95rem; line-height: 1.45; }
.form-error-box .btn { color: #166534; border-color: #16a34a; background: #fff; }
