/* ─────────────────────────────────────────────────────────────────────
 * webMOBI demo pages — shared styling
 * Mirrors the design tokens from v3_webmobi-platform-demo.html so the
 * demo pages feel native to the rest of the marketing surface.
 * ───────────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

:root {
  /* NexaLink primary */
  --nexa:       #0047A1;
  --nexa-hover: #003580;
  --nexa-light: #E8F0FE;
  /* NexaLink accent cyan */
  --cyan:       #00AEE8;
  --cyan-light: #E0F7FF;
  /* WebMobi gradient palette */
  --wm-purple:        #7C3AED;
  --wm-purple-light:  #EDE9FE;
  --wm-blue:          #3B82F6;
  --wm-cyan:          #06B6D4;

  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  --green-500: #10B981;
  --green-50:  #ECFDF5;
  --rose-500:  #F43F5E;
  --rose-50:   #FFF1F2;

  --max:    1100px;
  --pad-x:  clamp(16px, 4vw, 32px);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.04), 0 1px 3px 0 rgba(0,0,0,0.06);
  --shadow:    0 8px 24px -8px rgba(0,71,161,0.15), 0 2px 6px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 24px 48px -12px rgba(0,71,161,0.18), 0 8px 16px -4px rgba(0,0,0,0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--gray-800);
  background: var(--gray-50);
}

a { color: var(--nexa); text-decoration: none; }
a:hover { color: var(--nexa-hover); text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad-x); }

/* ── Top bar ─────────────────────────────────────────────────────── */
.topbar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 16px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: var(--gray-900);
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--nexa), var(--cyan));
  display: grid; place-items: center; color: white; font-weight: 900;
}
.topbar-cta {
  display: flex; gap: 8px;
}
.btn {
  display: inline-block;
  padding: 10px 18px;
  font-weight: 600; font-size: 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--nexa); color: white;
}
.btn-primary:hover { background: var(--nexa-hover); color: white; }
.btn-secondary {
  background: white; color: var(--nexa); border-color: var(--gray-300);
}
.btn-secondary:hover { color: var(--nexa-hover); background: var(--gray-50); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  padding: 56px var(--pad-x) 40px;
  text-align: center;
  background: linear-gradient(180deg, white 0%, var(--gray-50) 100%);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nexa);
  background: var(--nexa-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero p.lead {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--gray-600);
  max-width: 720px;
  margin: 0 auto 28px;
}

/* ── Video container (the workflow video) ───────────────────────── */
.video-wrap {
  max-width: 880px;
  margin: 0 auto 32px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-900), #0a1628);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.video-wrap iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
/* When iframe src is the placeholder marker, show this overlay instead. */
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  color: white;
  background: linear-gradient(135deg, #0a1628 0%, #1e3a8a 100%);
}
.video-placeholder .play-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.4);
  display: grid; place-items: center;
  font-size: 32px;
  margin-bottom: 18px;
}
.video-placeholder p { color: rgba(255,255,255,0.85); margin-bottom: 8px; }
.video-placeholder .placeholder-marker {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 12px;
  background: rgba(255,255,255,0.15);
  padding: 8px 14px; border-radius: 999px;
  color: rgba(255,255,255,0.95);
}

.hero-cta { margin-top: 12px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Demo sections (Step N walkthrough) ─────────────────────────── */
.demos { padding: 32px 0 72px; }
.demo-section {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px clamp(20px, 4vw, 40px);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.demo-step-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.demo-section h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.demo-section p.lead-sm {
  font-size: 16px; color: var(--gray-600); margin-bottom: 18px;
  max-width: 640px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.feature-card {
  padding: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.feature-card .icon { font-size: 22px; margin-bottom: 8px; }
.feature-card h3 {
  font-size: 14px; font-weight: 700; color: var(--gray-900);
  margin-bottom: 4px;
}
.feature-card p { font-size: 13px; color: var(--gray-600); margin: 0; }

/* ── Bottom CTA ─────────────────────────────────────────────────── */
.bottom-cta {
  background: linear-gradient(135deg, var(--nexa) 0%, var(--cyan) 100%);
  color: white;
  text-align: center;
  padding: 64px var(--pad-x);
  margin-top: 24px;
}
.bottom-cta h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  margin-bottom: 12px;
}
.bottom-cta p {
  color: rgba(255,255,255,0.92);
  margin-bottom: 24px;
  max-width: 600px; margin-inline: auto;
}
.bottom-cta .btn-primary {
  background: white; color: var(--nexa);
}
.bottom-cta .btn-primary:hover { background: var(--gray-50); color: var(--nexa-hover); }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--gray-900); color: var(--gray-400);
  text-align: center; padding: 32px var(--pad-x);
  font-size: 14px;
}
.footer a { color: var(--gray-300); }

/* ── B2B vs B2C split chip on hero ──────────────────────────────── */
.audience-pills { display: inline-flex; gap: 8px; margin-bottom: 20px; }
.audience-pills a {
  padding: 8px 16px;
  font-size: 13px; font-weight: 600;
  border-radius: 999px;
  background: white; color: var(--gray-700);
  border: 1px solid var(--gray-300);
  text-decoration: none;
}
.audience-pills a.active { background: var(--nexa); color: white; border-color: var(--nexa); }
.audience-pills a:hover { color: var(--nexa); }
.audience-pills a.active:hover { color: white; }
