/* ============================================================
   Tecveq LMS — Showcase Page Styles
   Color system: Emerald Green (EdTech Modern) — matches Next.js site
   Responsive: 320px / 768px / 1024px / 1440px+
   Accessibility: WCAG 2.1 AA contrast ratios
   ============================================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  /* Brand — Emerald */
  --brand: #10b981;
  --brand-strong: #059669;
  --brand-deep: #047857;
  --brand-foreground: #ffffff;
  --brand-soft: #d1fae5;
  --brand-soft-2: #ecfdf5;

  /* Warm accent — Amber */
  --warm: #f59e0b;
  --warm-soft: #fef3c7;
  --warm-deep: #b45309;

  /* Traffic-light status colors (signature motif) */
  --status-good: #10b981;      /* attendance >= 75% */
  --status-warn: #f59e0b;      /* attendance 50-74% */
  --status-bad: #ef4444;       /* attendance < 50% */
  --status-good-soft: #d1fae5;
  --status-warn-soft: #fef3c7;
  --status-bad-soft: #fee2e2;

  /* Neutral surface (light mode default) */
  --bg: #f8fafb;
  --bg-elev: #ffffff;
  --bg-muted: #f1f5f4;
  --surface-border: #e2e8e7;
  --surface-border-strong: #cbd5d3;

  /* Text */
  --text: #0f1f1c;
  --text-muted: #475560;
  --text-soft: #64748b;
  --text-on-brand: #ffffff;
  --text-on-dark: #ffffff;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 31, 28, 0.04), 0 2px 8px rgba(15, 31, 28, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 31, 28, 0.06), 0 12px 32px rgba(15, 31, 28, 0.04);
  --shadow-lg: 0 12px 40px rgba(15, 31, 28, 0.10), 0 24px 64px rgba(15, 31, 28, 0.06);
  --shadow-glow: 0 0 0 4px rgba(16, 185, 129, 0.15);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  --gradient-brand-soft: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  --gradient-mesh:
    radial-gradient(at 18% 18%, rgba(209, 250, 229, 0.55) 0px, transparent 50%),
    radial-gradient(at 82% 12%, rgba(254, 243, 199, 0.35) 0px, transparent 50%),
    radial-gradient(at 60% 85%, rgba(219, 234, 254, 0.40) 0px, transparent 50%);

  /* Radius */
  --r-sm: 0.375rem;
  --r-md: 0.625rem;
  --r-lg: 0.875rem;
  --r-xl: 1.25rem;
  --r-2xl: 1.75rem;
  --r-full: 9999px;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-8: 3rem;
  --s-10: 4rem;
  --s-12: 6rem;

  /* Layout */
  --maxw: 1200px;
  --nav-h: 64px;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Dark mode */
[data-theme="dark"] {
  --brand: #34d399;
  --brand-strong: #10b981;
  --brand-deep: #059669;
  --brand-foreground: #0a1f1c;
  --brand-soft: #064e3b;
  --brand-soft-2: #0a3329;

  --warm: #fbbf24;
  --warm-soft: #78350f;
  --warm-deep: #fcd34d;

  --status-good: #34d399;
  --status-warn: #fbbf24;
  --status-bad: #f87171;
  --status-good-soft: #064e3b;
  --status-warn-soft: #78350f;
  --status-bad-soft: #7f1d1d;

  --bg: #0a1f1c;
  --bg-elev: #0f2926;
  --bg-muted: #163733;
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-strong: rgba(255, 255, 255, 0.15);

  --text: #f0fdf9;
  --text-muted: #9eb5b0;
  --text-soft: #7a948f;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45), 0 24px 64px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 0 4px rgba(52, 211, 153, 0.20);

  --gradient-brand: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  --gradient-brand-soft: linear-gradient(135deg, #064e3b 0%, #0a3329 100%);
  --gradient-mesh:
    radial-gradient(at 18% 18%, rgba(6, 78, 59, 0.55) 0px, transparent 50%),
    radial-gradient(at 82% 12%, rgba(120, 53, 15, 0.35) 0px, transparent 50%),
    radial-gradient(at 60% 85%, rgba(219, 234, 254, 0.10) 0px, transparent 50%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv01', 'cv02';
  transition: background var(--t-base), color var(--t-base);
  /* Prevent sub-pixel gaps between sections in dark mode */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* Force body background to match the section background to hide white lines */
[data-theme="dark"] body { background: var(--bg) !important; }
[data-theme="dark"] html { background: var(--bg) !important; }

/* Prevent any section from creating visible gaps in dark mode */
[data-theme="dark"] .section,
[data-theme="dark"] .specs-strip,
[data-theme="dark"] .trust-strip,
[data-theme="dark"] .demo-section,
[data-theme="dark"] .compliance-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .cta-section,
[data-theme="dark"] .hero,
[data-theme="dark"] .site-header,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .mobile-menu {
  background-color: var(--bg) !important;
}
/* Allow muted sections to use --bg-muted (slightly lighter) but no white bleed */
[data-theme="dark"] .specs-strip,
[data-theme="dark"] .demo-section,
[data-theme="dark"] .compliance-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .trust-strip,
[data-theme="dark"] .site-footer {
  background-color: var(--bg-muted) !important;
}
/* Hero keeps its mesh gradient */
[data-theme="dark"] .hero { background: var(--bg) !important; background-image: var(--gradient-mesh) !important; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Accessibility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--brand); color: var(--brand-foreground);
  padding: 12px 20px; border-radius: var(--r-md); z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout primitives ---------- */
html, body {
  overflow-x: hidden;                /* prevent horizontal scroll globally */
  max-width: 100vw;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .container { padding-left: 32px; padding-right: 32px; }
}

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 12px;
}
[data-theme="dark"] .section-eyebrow { color: var(--brand); }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-title .grad {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-subtitle {
  margin-top: 16px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-muted);
  max-width: 640px;
}
.section-header { text-align: center; margin: 0 auto 48px; max-width: 760px; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
  min-height: 44px; /* touch target */
}
.btn svg {
  width: 16px; height: 16px;
  min-width: 16px; min-height: 16px;
  max-width: 18px; max-height: 18px;
  flex-shrink: 0;
}
.btn-lg svg { width: 18px; height: 18px; max-width: 20px; max-height: 20px; }
.btn-primary {
  background: var(--gradient-brand);
  color: var(--brand-foreground);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); opacity: 0.95; }
.btn-secondary {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--surface-border);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-strong); }
[data-theme="dark"] .btn-secondary:hover { color: var(--brand); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); }
.btn-lg { padding: 14px 24px; font-size: 16px; min-height: 52px; }
.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-1px); }
.btn-block { width: 100%; }

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--surface-border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-logo {
  width: 36px; height: 36px;
  background: var(--gradient-brand);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-foreground);
}
.brand-logo svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); }
.brand-text b { color: var(--text); }
.brand-text b span { color: var(--brand-strong); }
[data-theme="dark"] .brand-text b span { color: var(--brand); }

.nav-links {
  display: none; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.nav-links a:hover { color: var(--text); background: var(--bg-muted); }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta-primary { display: none; }
.nav-cta-whatsapp { display: none; }
@media (min-width: 640px) { .nav-cta-whatsapp { display: inline-flex; } }
@media (min-width: 768px) { .nav-cta-primary { display: inline-flex; } }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.theme-toggle:hover { background: var(--bg-muted); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.mobile-menu-btn {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  align-items: center; justify-content: center;
  color: var(--text);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 60;
  position: relative;
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 55;
  padding: 24px 20px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open {
  display: flex !important;
}
.mobile-menu a {
  padding: 14px 16px;
  font-size: 16px; font-weight: 500;
  color: var(--text);
  border-radius: var(--r-md);
  border: 1px solid var(--surface-border);
}
.mobile-menu a:hover { background: var(--bg-muted); }
.mobile-menu .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 48px 0 64px;
  background: var(--bg);
  background-image: var(--gradient-mesh);
}
@media (min-width: 1024px) { .hero { padding: 80px 0 96px; } }
.hero::before, .hero::after {
  content: ''; position: absolute;
  border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 0;
}
.hero::before {
  width: 300px; height: 300px;
  background: color-mix(in srgb, var(--brand) 25%, transparent);
  top: -80px; right: -80px;
}
.hero::after {
  width: 280px; height: 280px;
  background: color-mix(in srgb, var(--warm) 25%, transparent);
  bottom: -60px; left: -60px;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
[data-theme="dark"] .hero-badge {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}
.hero h1 .grad {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}
.hero-ctas {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.hero-trust {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 13px; color: var(--text-soft);
}
.hero-trust div { display: flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--brand); }

/* Hero dashboard mock */
.hero-mock {
  position: relative;
  margin: 0 auto;
  max-width: 480px;
}
.hero-mock-bg {
  position: absolute; inset: -16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 20%, transparent), color-mix(in srgb, var(--warm) 10%, transparent));
  border-radius: var(--r-2xl);
  filter: blur(24px);
  z-index: 0;
}
.hero-mock-card {
  position: relative; z-index: 1;
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--surface-border);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 12px; height: 12px; border-radius: 50%; background: #cbd5d3; }
.mock-dots span:nth-child(1) { background: #f87171; }
.mock-dots span:nth-child(2) { background: var(--warm); }
.mock-dots span:nth-child(3) { background: var(--brand); }
.mock-title { font-size: 11px; font-weight: 600; color: var(--text-soft); }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stat {
  padding: 10px;
  border-radius: var(--r-md);
  font-size: 11px;
}
.mock-stat .lbl { display: flex; align-items: center; gap: 4px; font-weight: 500; opacity: 0.8; margin-bottom: 4px; }
.mock-stat .lbl svg { width: 14px; height: 14px; }
.mock-stat .val { font-size: 20px; font-weight: 800; line-height: 1; }
.mock-stat.emerald { background: var(--brand-soft); color: var(--brand-deep); }
[data-theme="dark"] .mock-stat.emerald { color: var(--brand); }
.mock-stat.amber { background: var(--warm-soft); color: var(--warm-deep); }
[data-theme="dark"] .mock-stat.amber { color: var(--warm); }
.mock-stat.sky { background: #dbeafe; color: #1e40af; }
[data-theme="dark"] .mock-stat.sky { background: #1e3a8a; color: #93c5fd; }

.mock-card {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-md);
  padding: 12px;
}
.mock-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px; font-weight: 700;
}
.mock-card-head svg { width: 14px; height: 14px; color: var(--brand); }
.mock-sched-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  font-size: 11px;
  border-bottom: 1px solid var(--surface-border);
}
.mock-sched-row:last-child { border-bottom: none; }
.mock-sched-row .t { font-family: var(--font-mono); color: var(--text-soft); width: 36px; }
.mock-sched-row .s { flex: 1; min-width: 0; }
.mock-sched-row .s b { display: block; font-weight: 600; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-sched-row .s small { font-size: 9px; color: var(--text-soft); }
.live-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px; border-radius: var(--r-full);
  background: var(--status-bad-soft); color: var(--status-bad);
  font-size: 9px; font-weight: 700;
}
.live-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--status-bad); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.mock-chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 48px; }
.mock-chart-bars .bar {
  flex: 1; background: var(--gradient-brand); border-radius: 3px 3px 0 0;
  animation: barGrow 0.8s ease-out backwards;
}
@keyframes barGrow { from { height: 0; } }
.mock-chart-labels { display: flex; justify-content: space-between; margin-top: 4px; font-size: 9px; color: var(--text-soft); }

.hero-mock-float-wa {
  position: absolute; bottom: -12px; left: -12px;
  background: var(--bg-elev); border: 1px solid var(--surface-border);
  border-radius: var(--r-lg); padding: 10px 12px;
  box-shadow: var(--shadow-md);
  max-width: 220px; z-index: 2;
}
.hero-mock-float-wa .h { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.hero-mock-float-wa .h .ic { width: 24px; height: 24px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; }
.hero-mock-float-wa .h .ic svg { width: 12px; height: 12px; }
.hero-mock-float-wa .h b { font-size: 10px; }
.hero-mock-float-wa p { font-size: 10px; color: var(--text-soft); line-height: 1.4; }

.hero-mock-float-quote {
  position: absolute; top: -10px; right: -8px;
  background: var(--warm); color: #fff;
  padding: 8px 12px; border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  z-index: 2;
}
.hero-mock-float-quote svg { width: 12px; height: 12px; }

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 24px 0;
  background: var(--bg-muted);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}
.trust-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; text-align: center; }
.trust-strip .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-soft); width: 100%; margin-bottom: 4px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
}
.trust-badge svg { width: 14px; height: 14px; color: var(--brand); }

/* ---------- Problem / Solution ---------- */
.pain-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pain-grid { grid-template-columns: repeat(4, 1fr); } }

.pain-card {
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.pain-card .ic-pain {
  width: 44px; height: 44px;
  background: var(--status-bad-soft); color: var(--status-bad);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  position: relative;
}
.pain-card .ic-pain::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(239, 68, 68, 0.15);
  border-radius: var(--r-md);
}
.pain-card .ic-pain svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.pain-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.pain-card .pain-desc { font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.pain-card .solved {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px dashed var(--surface-border);
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px;
}
.pain-card .solved .check {
  width: 20px; height: 20px;
  background: var(--brand); color: var(--brand-foreground);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pain-card .solved .check svg { width: 12px; height: 12px; }
.pain-card .solved b { color: var(--text); }
.pain-card .solved span { color: var(--text-muted); }

/* ---------- Specs strip ---------- */
.specs-strip { background: var(--bg-muted); overflow: hidden; }
.specs-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr !important;            /* mobile: single column */
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
@media (min-width: 480px) { .specs-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (min-width: 768px)  { .specs-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (min-width: 1024px) { .specs-grid { grid-template-columns: repeat(4, 1fr) !important; } }
.spec-tile {
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-md);
  padding: 16px;
  /* Mobile: stack icon on top of label (vertical) for long text */
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  transition: all var(--t-fast);
  min-width: 0 !important;                          /* allow grid item to shrink */
  max-width: 100% !important;
  overflow: hidden;
  box-sizing: border-box !important;
  width: 100% !important;
}
@media (min-width: 768px) {
  /* Desktop: side-by-side horizontal layout */
  .spec-tile {
    flex-direction: row; align-items: center; gap: 12px;
  }
}
.spec-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.spec-tile .ic {
  width: 36px; height: 36px;
  background: var(--brand-soft); color: var(--brand-deep);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .spec-tile .ic { color: var(--brand); }
.spec-tile .ic svg { width: 18px; height: 18px; max-width: 18px; max-height: 18px; }
.spec-tile .lbl {
  font-size: 13px; font-weight: 600; line-height: 1.35;
  word-break: break-word;                /* prevent long words overflowing */
  overflow-wrap: anywhere;
  hyphens: auto;
  min-width: 0;
  max-width: 100%;
  display: block;
}

/* ---------- Differentiators (Big 3) ---------- */
.diff-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .diff-grid { grid-template-columns: repeat(3, 1fr); } }

.diff-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  overflow: hidden;
  transition: all var(--t-base);
}
.diff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.diff-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-brand);
}
.diff-card.warn::before { background: linear-gradient(135deg, #f59e0b, #d97706); }
.diff-card.danger::before { background: linear-gradient(135deg, #ef4444, #dc2626); }
.diff-emoji { font-size: 36px; margin-bottom: 16px; line-height: 1; }
.diff-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.01em; }
.diff-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.diff-visual { margin-top: 20px; padding: 16px; background: var(--bg-muted); border-radius: var(--r-md); border: 1px solid var(--surface-border); }

/* AI flag visual */
.ai-flag-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 12px; border-bottom: 1px solid var(--surface-border); }
.ai-flag-row:last-child { border-bottom: none; }
.ai-flag-row .name { flex: 1; font-weight: 600; }
.ai-flag-pill { padding: 3px 8px; border-radius: var(--r-full); font-size: 10px; font-weight: 700; }
.ai-flag-pill.high { background: var(--status-bad-soft); color: var(--status-bad); }
.ai-flag-pill.med { background: var(--status-warn-soft); color: var(--warm-deep); }
[data-theme="dark"] .ai-flag-pill.med { color: var(--warm); }
.ai-flag-pill.clean { background: var(--status-good-soft); color: var(--status-good); }

/* WhatsApp mini */
.wa-mini { background: #e5ddd5; border-radius: var(--r-md); padding: 12px; }
[data-theme="dark"] .wa-mini { background: #1f2c34; }
.wa-mini .bubble {
  background: #fff; padding: 8px 10px; border-radius: 8px; border-top-left-radius: 2px;
  font-size: 11px; color: #111; margin-bottom: 6px; max-width: 85%;
}
[data-theme="dark"] .wa-mini .bubble { background: #202c33; color: #fff; }
.wa-mini .legend { display: flex; gap: 8px; margin-top: 8px; font-size: 9px; }
.wa-mini .legend span { display: inline-flex; align-items: center; gap: 3px; }
.wa-mini .legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.wa-mini .legend .good i { background: var(--status-good); }
.wa-mini .legend .warn i { background: var(--status-warn); }
.wa-mini .legend .bad i { background: var(--status-bad); }

/* Bunk alert visual */
.bunk-alert {
  background: var(--status-bad-soft);
  border-left: 4px solid var(--status-bad);
  padding: 12px;
  border-radius: var(--r-md);
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px;
}
.bunk-alert svg { width: 18px; height: 18px; color: var(--status-bad); flex-shrink: 0; }
.bunk-alert b { color: var(--status-bad); display: block; margin-bottom: 2px; }
.bunk-alert span { color: var(--text-muted); }

/* ---------- Feature grid ---------- */
.feature-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 32px;
}
.feature-tab {
  padding: 8px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  transition: all var(--t-fast);
  min-height: 36px;
  display: inline-flex; align-items: center; gap: 6px;
}
.feature-tab:hover { color: var(--text); border-color: var(--brand); }
.feature-tab.active {
  background: var(--gradient-brand); color: var(--brand-foreground);
  border-color: transparent;
}
.feature-tab .count {
  background: rgba(0, 0, 0, 0.10); padding: 1px 6px; border-radius: var(--r-full);
  font-size: 11px;
}
.feature-tab.active .count { background: rgba(255, 255, 255, 0.25); }

.feature-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: all var(--t-base);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.feature-card .ic-wrap {
  width: 40px; height: 40px;
  background: var(--brand-soft); color: var(--brand-deep);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: all var(--t-fast);
}
[data-theme="dark"] .feature-card .ic-wrap { color: var(--brand); }
.feature-card:hover .ic-wrap { background: var(--gradient-brand); color: var(--brand-foreground); }
.feature-card .ic-wrap svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.feature-card .role-pill {
  display: inline-block; margin-top: 12px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--bg-muted); color: var(--text-soft);
}
.feature-card[data-role="admin"] .role-pill { background: var(--brand-soft); color: var(--brand-deep); }
.feature-card[data-role="teacher"] .role-pill { background: var(--warm-soft); color: var(--warm-deep); }
[data-theme="dark"] .feature-card[data-role="teacher"] .role-pill { color: var(--warm); }
.feature-card[data-role="student"] .role-pill { background: #dbeafe; color: #1e40af; }
[data-theme="dark"] .feature-card[data-role="student"] .role-pill { background: #1e3a8a; color: #93c5fd; }
.feature-card[data-role="parent"] .role-pill { background: #dcfce7; color: #166534; }
[data-theme="dark"] .feature-card[data-role="parent"] .role-pill { background: #14532d; color: #86efac; }
.feature-card[data-role="platform"] .role-pill { background: #f3e8ff; color: #6b21a8; }
[data-theme="dark"] .feature-card[data-role="platform"] .role-pill { background: #3b0764; color: #d8b4fe; }

/* ---------- Interactive Demo ---------- */
.demo-section { background: var(--bg-muted); }
.demo-frame {
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--surface-border);
}
.demo-browser-bar .dots { display: flex; gap: 6px; }
.demo-browser-bar .dots span { width: 12px; height: 12px; border-radius: 50%; background: #cbd5d3; }
.demo-browser-bar .dots span:nth-child(1) { background: #f87171; }
.demo-browser-bar .dots span:nth-child(2) { background: var(--warm); }
.demo-browser-bar .dots span:nth-child(3) { background: var(--brand); }
.demo-browser-bar .url {
  flex: 1; padding: 6px 12px; background: var(--bg-elev);
  border: 1px solid var(--surface-border); border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.demo-browser-bar .url::before { content: '🔒 '; }

.role-tabs {
  display: flex; gap: 8px;
  padding: 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--surface-border);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.role-tab {
  flex-shrink: 0;
  flex-grow: 0;
  padding: 10px 18px;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  transition: all var(--t-fast);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px;
  max-height: 44px;            /* prevent oversized tabs */
  white-space: nowrap;
  width: auto;                  /* let content size the tab naturally */
  line-height: 1.2;
}
.role-tab:hover { color: var(--text); border-color: var(--brand); }
.role-tab.active {
  background: var(--gradient-brand); color: var(--brand-foreground);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.role-tab .emoji { font-size: 16px; line-height: 1; }

.demo-body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 480px;
}
@media (min-width: 768px) {
  .demo-body { grid-template-columns: 220px 1fr; }
}

.demo-sidebar {
  background: var(--bg-muted);
  border-right: 1px solid var(--surface-border);
  padding: 12px;
  display: none;
}
@media (min-width: 768px) { .demo-sidebar { display: block; } }
.demo-sidebar h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-soft); padding: 8px 12px 4px;
}
.demo-sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  transition: all var(--t-fast);
  width: 100%;
  text-align: left;
}
.demo-sidebar-item:hover { background: var(--bg-elev); color: var(--text); }
.demo-sidebar-item.active { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
[data-theme="dark"] .demo-sidebar-item.active { color: var(--brand); }
.demo-sidebar-item svg { width: 16px; height: 16px; }

.demo-main { padding: 20px; }
.demo-role-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.demo-role-header h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.demo-role-header .crumb { font-size: 12px; color: var(--text-soft); }

/* Tile grid for current role — MOBILE ONLY (desktop uses sidebar) */
.tile-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 20px;
}
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
/* Hide tile-grid on desktop — sidebar provides navigation there */
@media (min-width: 768px) { .tile-grid { display: none !important; } }
.feature-tile {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-md);
  padding: 12px;
  text-align: left;
  font-size: 12px; font-weight: 600;
  color: var(--text);
  transition: all var(--t-fast);
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  min-height: 80px;
  max-height: 110px;          /* cap height so all tiles stay uniform */
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.feature-tile:hover { border-color: var(--brand); background: var(--brand-soft-2); transform: translateY(-2px); }
[data-theme="dark"] .feature-tile:hover { background: var(--brand-soft); }
.feature-tile.active { background: var(--gradient-brand); color: var(--brand-foreground); border-color: transparent; }
.feature-tile .ic { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-theme="dark"] .feature-tile .ic { color: var(--brand); }
.feature-tile.active .ic { background: rgba(255, 255, 255, 0.20); color: #fff; }
.feature-tile .ic svg { width: 14px; height: 14px; max-width: 14px; max-height: 14px; }
.feature-tile > span:not(.ic) {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

/* Preview panel — fake mini-dashboard */
.preview-panel {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  padding: 20px;
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.preview-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.preview-title svg { width: 16px; height: 16px; color: var(--brand); }

/* Counter cards (Admin Total Users style) */
.counter-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .counter-grid { grid-template-columns: repeat(4, 1fr); } }
.counter-card {
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  position: relative; overflow: hidden;
}
.counter-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-brand); }
.counter-card .ic { width: 32px; height: 32px; margin: 0 auto 8px; background: var(--brand-soft); color: var(--brand-deep); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .counter-card .ic { color: var(--brand); }
.counter-card .ic svg { width: 16px; height: 16px; }
.counter-card .val { font-size: 28px; font-weight: 800; line-height: 1; }
.counter-card .lbl { font-size: 11px; color: var(--text-soft); margin-top: 4px; }

/* Data table */
.demo-table {
  width: 100%; border-collapse: collapse;
  font-size: 12px;
}
.demo-table th, .demo-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--surface-border); }
.demo-table th { font-weight: 600; color: var(--text-soft); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.demo-table td { color: var(--text); }
.demo-table tr:hover td { background: var(--bg-muted); }
.status-pill { padding: 2px 8px; border-radius: var(--r-full); font-size: 10px; font-weight: 700; }
.status-pill.good { background: var(--status-good-soft); color: var(--status-good); }
.status-pill.warn { background: var(--status-warn-soft); color: var(--warm-deep); }
[data-theme="dark"] .status-pill.warn { color: var(--warm); }
.status-pill.bad { background: var(--status-bad-soft); color: var(--status-bad); }

/* WhatsApp demo mock */
.wa-mockup {
  max-width: 320px; margin: 0 auto;
  background: #e5ddd5; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--surface-border);
}
[data-theme="dark"] .wa-mockup { background: #0b141a; }
.wa-header {
  background: #075e54; color: #fff; padding: 12px;
  display: flex; align-items: center; gap: 10px;
}
.wa-header .av { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.20); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.wa-header .meta b { font-size: 13px; display: block; }
.wa-header .meta small { font-size: 10px; opacity: 0.7; }
.wa-body { padding: 12px; min-height: 280px; }
.wa-bubble { padding: 8px 10px; border-radius: 8px; font-size: 11px; margin-bottom: 6px; max-width: 80%; line-height: 1.45; }
.wa-bubble.bot { background: #fff; color: #111; border-top-left-radius: 2px; }
[data-theme="dark"] .wa-bubble.bot { background: #202c33; color: #fff; }
.wa-bubble.user { background: #d1f4cc; color: #111; border-top-right-radius: 2px; margin-left: auto; }
[data-theme="dark"] .wa-bubble.user { background: #005c4b; color: #fff; }
.wa-bubble b.t { display: block; font-size: 11px; color: #075e54; margin-bottom: 4px; }
[data-theme="dark"] .wa-bubble b.t { color: #25d366; }
.wa-bubble .ts { display: block; font-size: 8px; color: #667781; text-align: right; margin-top: 4px; }
.wa-bubble .check { color: #34b7f1; }
.wa-quick { display: inline-block; padding: 6px 12px; border: 1px solid #075e54; color: #075e54; border-radius: var(--r-full); font-size: 10px; font-weight: 600; margin-top: 6px; }
[data-theme="dark"] .wa-quick { border-color: #25d366; color: #25d366; }
.wa-student-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.wa-student-row .av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.wa-student-row .nm b { font-size: 11px; font-weight: 600; display: block; }
.wa-student-row .nm small { font-size: 9px; color: #667781; }
.wa-legend { display: flex; gap: 10px; margin-top: 8px; font-size: 9px; }
.wa-legend span { display: inline-flex; align-items: center; gap: 3px; }
.wa-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.wa-legend .good i { background: var(--status-good); }
.wa-legend .warn i { background: var(--status-warn); }
.wa-legend .bad i { background: var(--status-bad); }

/* Progress bars */
.progress-row { margin-bottom: 12px; }
.progress-row .h { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; }
.progress-bar { height: 6px; background: var(--bg-muted); border-radius: var(--r-full); overflow: hidden; }
.progress-bar .fill { height: 100%; border-radius: var(--r-full); transition: width 0.6s ease-out; }

/* Chart container */
.chart-container { position: relative; height: 200px; }

/* Demo banner */
.demo-banner {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
[data-theme="dark"] .demo-banner { background: var(--brand-soft-2); }
.demo-banner p { font-size: 13px; color: var(--text); }
.demo-banner p b { color: var(--brand-deep); }
[data-theme="dark"] .demo-banner p b { color: var(--brand); }

/* ---------- Roles section ---------- */
.roles-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .roles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .roles-grid { grid-template-columns: repeat(4, 1fr); } }
.role-card {
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-xl);
  padding: 24px;
  transition: all var(--t-base);
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.role-card .ic-big {
  width: 56px; height: 56px;
  background: var(--gradient-brand); color: var(--brand-foreground);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}
.role-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.role-card .tag { font-size: 12px; color: var(--brand-strong); font-weight: 600; margin-bottom: 16px; }
[data-theme="dark"] .role-card .tag { color: var(--brand); }
.role-card ul li {
  font-size: 13px; color: var(--text-muted);
  padding: 6px 0; padding-left: 22px;
  position: relative;
  border-bottom: 1px solid var(--surface-border);
}
.role-card ul li:last-child { border-bottom: none; }
.role-card ul li::before {
  content: '✓'; position: absolute; left: 0; top: 6px;
  color: var(--brand); font-weight: 800;
}

/* ---------- Comparison table ---------- */
.compare-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--surface-border); }
.compare-table th {
  background: var(--bg-muted);
  font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-soft);
}
.compare-table th.tecveq {
  background: var(--gradient-brand); color: var(--brand-foreground);
}
.compare-table td.feature { font-weight: 600; }
.compare-table .yes { color: var(--status-good); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.compare-table .no { color: var(--status-bad); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.compare-table .partial { color: var(--warm-deep); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
[data-theme="dark"] .compare-table .partial { color: var(--warm); }
.compare-table .yes svg, .compare-table .no svg, .compare-table .partial svg { width: 16px; height: 16px; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-muted); }

/* ---------- Audience ---------- */
.audience-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
.audience-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  transition: all var(--t-fast);
}
.audience-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.audience-card .ic {
  width: 40px; height: 40px;
  background: var(--brand-soft); color: var(--brand-deep);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .audience-card .ic { color: var(--brand); }
.audience-card .ic svg { width: 20px; height: 20px; }
.audience-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.audience-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Compliance ---------- */
.compliance-section { background: var(--bg-muted); }
.compliance-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 32px;
}
@media (min-width: 768px) { .compliance-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .compliance-grid { grid-template-columns: repeat(6, 1fr); } }
.compliance-badge {
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-md);
  padding: 16px 12px;
  text-align: center;
  transition: all var(--t-fast);
}
.compliance-badge:hover { border-color: var(--brand); transform: translateY(-2px); }
.compliance-badge .ic {
  width: 36px; height: 36px;
  margin: 0 auto 8px;
  background: var(--brand-soft); color: var(--brand-deep);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}
[data-theme="dark"] .compliance-badge .ic { color: var(--brand); }
.compliance-badge .nm { font-size: 12px; font-weight: 700; }

.sla-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .sla-grid { grid-template-columns: repeat(3, 1fr); } }
.sla-card {
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--brand);
}
.sla-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.sla-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.sla-card .big { font-size: 28px; font-weight: 800; color: var(--brand-strong); margin-bottom: 4px; line-height: 1; }
[data-theme="dark"] .sla-card .big { color: var(--brand); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--t-fast);
}
.faq-item.open { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left;
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-size: 15px; font-weight: 600;
  color: var(--text);
}
.faq-q .icon {
  width: 24px; height: 24px;
  background: var(--brand-soft); color: var(--brand-deep);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t-base);
}
[data-theme="dark"] .faq-q .icon { color: var(--brand); }
.faq-q .icon svg { width: 14px; height: 14px; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); background: var(--gradient-brand); color: var(--brand-foreground); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--t-base);
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 20px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ---------- Final CTA ---------- */
.cta-section {
  background: var(--gradient-brand);
  color: var(--brand-foreground);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -200px; right: -100px;
}
.cta-section::after {
  content: ''; position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  bottom: -150px; left: -100px;
}
.cta-section .container { position: relative; z-index: 1; text-align: center; }
.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 17px;
  opacity: 0.92;
  max-width: 640px; margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-bottom: 24px;
}
.cta-section .btn-primary { background: #fff; color: var(--brand-deep); }
.cta-section .btn-primary:hover { background: #f1f5f4; }
.cta-section .btn-secondary { background: rgba(255, 255, 255, 0.10); color: #fff; border-color: rgba(255, 255, 255, 0.30); }
.cta-section .btn-secondary:hover { background: rgba(255, 255, 255, 0.20); border-color: #fff; }
.cta-contact {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: center;
  font-size: 14px; opacity: 0.92;
}
.cta-contact a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cta-contact a:hover { text-decoration: underline; }

/* ---------- Contact form ---------- */
.contact-section { background: var(--bg-muted); }
.contact-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-card {
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.contact-info-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.contact-info-card > p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--surface-border); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ic {
  width: 40px; height: 40px;
  background: var(--brand-soft); color: var(--brand-deep);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .contact-row .ic { color: var(--brand); }
.contact-row .ic svg { width: 18px; height: 18px; }
.contact-row .meta small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.contact-row .meta b { font-size: 14px; }
.contact-form-card {
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 12px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-field label .req { color: var(--status-bad); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text);
  transition: all var(--t-fast);
  min-height: 44px;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--shadow-glow);
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-note { font-size: 11px; color: var(--text-soft); text-align: center; margin-top: 12px; }
.form-success {
  text-align: center; padding: 32px 16px;
}
.form-success .check {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--brand-soft); color: var(--brand-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .form-success .check { color: var(--brand); }
.form-success .check svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--surface-border);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); max-width: 320px; line-height: 1.6; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 14px;
}
.footer-col ul li { padding: 4px 0; }
.footer-col ul li a { font-size: 13px; color: var(--text-muted); transition: color var(--t-fast); }
.footer-col ul li a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  font-size: 12px;
  color: var(--text-soft);
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  border: 1px solid var(--surface-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.footer-social a:hover { color: var(--brand); border-color: var(--brand); }
.footer-social svg { width: 14px; height: 14px; }

/* ---------- Marquee (Built with) ---------- */
.marquee { overflow: hidden; padding: 20px 0; background: var(--bg-elev); border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }
.marquee-track {
  display: flex; gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap;
}
.marquee-item svg { width: 18px; height: 18px; color: var(--brand); }

/* ---------- Scroll reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
  .hero { padding: 32px 0 48px; }
  .hero-mock { max-width: 100%; }
  .hero-mock-float-wa { left: 0; max-width: 180px; }
  .hero-mock-float-quote { right: 0; }
  .section { padding: 48px 0; }
  .demo-body { min-height: auto; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 8px; }
}

/* ============================================================
   Floating Action Buttons — WhatsApp (left) + Back to Top (right)
   ============================================================ */
.fab {
  position: fixed;
  bottom: 24px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform var(--t-fast), opacity var(--t-base), visibility var(--t-base);
  text-decoration: none;
  border: none;
  padding: 0;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab:active { transform: translateY(-1px) scale(1.02); }
.fab svg { width: 26px; height: 26px; }

/* WhatsApp button — bottom LEFT */
.fab-whatsapp {
  left: 24px;
  background: #25d366;
  color: #ffffff;
}
.fab-whatsapp:hover { background: #1ebe5a; }
/* Subtle pulse to draw attention */
.fab-whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.6;
  z-index: -1;
  animation: fab-pulse 2.4s ease-out infinite;
}
@keyframes fab-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  70%  { transform: scale(1.6); opacity: 0;   }
  100% { transform: scale(1.6); opacity: 0;   }
}
@media (prefers-reduced-motion: reduce) {
  .fab-whatsapp::after { animation: none; }
}

/* Back-to-top button — bottom RIGHT */
.fab-top {
  right: 24px;
  background: var(--gradient-brand);
  color: var(--brand-foreground);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
.fab-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fab-top svg { width: 22px; height: 22px; }

/* Mobile sizing */
@media (max-width: 640px) {
  .fab { width: 52px; height: 52px; bottom: 20px; }
  .fab-whatsapp { left: 20px; }
  .fab-top { right: 20px; }
  .fab svg { width: 24px; height: 24px; }
}

/* Tooltip on hover (desktop only) */
@media (min-width: 768px) {
  .fab::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 50%;
    transform: translateY(50%);
    background: var(--text);
    color: var(--bg);
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-fast);
  }
  .fab-whatsapp::before { left: calc(100% + 12px); }
  .fab-top::before { right: calc(100% + 12px); }
  .fab:hover::before { opacity: 1; }
}

/* ============================================================
   AGGRESSIVE dark-mode fix — kill white lines on mobile
   The root cause is sub-pixel rendering gaps between sections
   when the viewport width is fractional (e.g. 374.5px on iPhones).
   Fix: force every section + html/body to use identical bg,
   remove all section top/bottom borders in dark mode, and
   add a tiny negative margin to overlap sections by 1px.
   ============================================================ */
[data-theme="dark"] html,
[data-theme="dark"] body {
  background-color: #0a1f1c !important;
  background-image: none !important;
}
/* Kill all section borders that create visible lines */
[data-theme="dark"] .specs-strip,
[data-theme="dark"] .demo-section,
[data-theme="dark"] .compliance-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .trust-strip,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .site-header,
[data-theme="dark"] .section {
  border-top: none !important;
  border-bottom: none !important;
}
/* Force every section's background to be opaque (no rgba leaking) */
/* STEP 1: Base dark bg for ALL sections (declared FIRST so muted can override) */
[data-theme="dark"] .section,
[data-theme="dark"] .hero,
[data-theme="dark"] .differentiators,
[data-theme="dark"] .features,
[data-theme="dark"] .roles,
[data-theme="dark"] .comparison,
[data-theme="dark"] .audience,
[data-theme="dark"] .faq,
[data-theme="dark"] .site-header,
[data-theme="dark"] .specs-strip,
[data-theme="dark"] .demo-section,
[data-theme="dark"] .compliance-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .trust-strip,
[data-theme="dark"] .site-footer {
  background-color: #0a1f1c !important;
  background-image: none !important;
}

/* STEP 2: Muted sections get the slightly-lighter bg (declared AFTER step 1, wins ties) */
[data-theme="dark"] .specs-strip,
[data-theme="dark"] .demo-section,
[data-theme="dark"] .compliance-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .trust-strip,
[data-theme="dark"] .site-footer {
  background-color: #163733 !important;
}

/* STEP 3: Hero keeps its mesh gradient (radial overlays only, no white bleed) */
[data-theme="dark"] .hero {
  background-color: #0a1f1c !important;
  background-image:
    radial-gradient(at 18% 18%, rgba(6, 78, 59, 0.55) 0px, transparent 50%),
    radial-gradient(at 82% 12%, rgba(120, 53, 15, 0.35) 0px, transparent 50%),
    radial-gradient(at 60% 85%, rgba(219, 234, 254, 0.10) 0px, transparent 50%) !important;
}

/* STEP 4: CTA keeps its brand gradient */
[data-theme="dark"] .cta-section {
  background-color: #059669 !important;
  background-image: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%) !important;
}
/* Prevent sub-pixel gaps by overlapping adjacent sections by 1px on mobile */
@media (max-width: 768px) {
  [data-theme="dark"] .section + .section,
  [data-theme="dark"] section + section,
  [data-theme="dark"] .trust-strip + .section,
  [data-theme="dark"] .section + .trust-strip,
  [data-theme="dark"] .specs-strip + .section,
  [data-theme="dark"] .section + .specs-strip,
  [data-theme="dark"] .demo-section + .section,
  [data-theme="dark"] .section + .demo-section,
  [data-theme="dark"] .compliance-section + .section,
  [data-theme="dark"] .section + .compliance-section,
  [data-theme="dark"] .contact-section + .section,
  [data-theme="dark"] .section + .contact-section,
  [data-theme="dark"] .site-footer,
  [data-theme="dark"] .site-header {
    margin-top: -1px;
    position: relative;
    z-index: 1;
  }
}
