/* ─────────────────────────────────────────────────────────────────────
   Emcentra marketing site — "serious product, doodle wrapper"
   Product UI mockups stay crisp (navy/red, monospace). The marketing
   chrome around them is hand-drawn: wobbly frames, sticky notes, Emmy.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --c-blue: #1B3A6B;
  --c-blue-deep: #0F2548;
  --c-red: #DC143C;
  --c-ink: #0F172A;
  --c-body: #334155;
  --c-muted: #64748B;
  --c-paper: #FFFFFF;
  --c-cream: #FEF8E7;
  --c-cream-soft: #FFFBEB;
  --c-grey-bg: #F8FAFC;
  --c-yellow: #FCD34D;
  --c-green: #10B981;
  --c-pink: #FBCFE8;
  --c-pink-deep: #F9A8D4;
  --c-pencil: #334155;

  --shadow-sm: 0 1px 2px rgba(15, 37, 72, 0.04);
  --shadow-md: 0 2px 4px rgba(15, 37, 72, 0.06), 0 12px 28px rgba(15, 37, 72, 0.06);
  --shadow-lg: 0 6px 12px rgba(15, 37, 72, 0.08), 0 30px 60px rgba(15, 37, 72, 0.10);

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'Caveat', 'Kalam', 'Comic Sans MS', cursive;
  --font-body: var(--font-hand);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-body);
  background: var(--c-paper);
  font-size: 21px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Headings switch to the handwritten face — size bumped to compensate
   for readability. Body copy stays Inter. Product UI mockups override
   back to Inter via .ui-mock. */
h1, h2, h3 {
  font-family: var(--font-hand);
  color: var(--c-ink);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}
h4 {
  font-family: var(--font-hand);
  color: var(--c-ink);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}
h1 { font-size: clamp(2.75rem, 5.5vw, 5rem); margin: 0 0 1rem; }
h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.9rem; margin: 0 0 0.5rem; font-weight: 700; }
/* Product UI mockups go back to Inter — they simulate the real app. */
.ui-mock, .ui-mock h1, .ui-mock h2, .ui-mock h3, .ui-mock h4,
.ui-mock p, .ui-mock span, .ui-mock div, .ui-mock td, .ui-mock th,
.ui-mock .ui-label, .ui-mock .ui-chip {
  font-family: var(--font-ui);
}
.ui-mock h1, .ui-mock h2, .ui-mock h3, .ui-mock h4 { font-weight: 800; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.container-wide { max-width: 1680px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--c-cream-soft); }
.section-ink { background: var(--c-blue-deep); color: #E2E8F0; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }

/* ── Handwritten accent font — use SPARINGLY (labels only) ─────────── */
.hand { font-family: var(--font-hand); font-weight: 700; color: var(--c-blue); }
.hand-tag { font-family: var(--font-hand); font-size: 1.5rem; color: var(--c-red); display: inline-block; transform: rotate(-3deg); }
.hand-note { font-family: var(--font-hand); font-size: 1.3rem; color: var(--c-blue); }

/* ── Top navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(15,37,72,0.06);
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-scrolled { box-shadow: 0 2px 8px rgba(15,37,72,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 64px; width: auto; }
@media (max-width: 720px) { .nav-logo img { height: 48px; } }
.nav-logo-sub { font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: var(--c-muted); text-transform: uppercase; line-height: 1; }
.nav-logo-brand { display: flex; flex-direction: column; gap: 2px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-family: var(--font-hand); font-weight: 700; color: var(--c-body); font-size: 1.2rem; }
.nav-links a { color: var(--c-body); }
.nav-links a:hover { color: var(--c-blue); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ── Buttons (Caveat for playful CTAs, Inter stays on product-UI actions) ─ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.2rem;
  border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap; letter-spacing: 0.2px;
}
.btn-primary { background: var(--c-red); color: #fff; box-shadow: 0 4px 10px rgba(220,20,60,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(220,20,60,0.35); text-decoration: none; }
.btn-secondary { background: var(--c-blue); color: #fff; box-shadow: 0 4px 10px rgba(27,58,107,0.2); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(27,58,107,0.3); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--c-blue); border: 2px solid var(--c-blue); }
.btn-outline:hover { background: var(--c-blue); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--c-body); }
.btn-ghost:hover { color: var(--c-blue); text-decoration: none; }

/* ── Hand-drawn button: rough outline ──────────────────────────── */
.btn-doodle {
  position: relative;
  background: #fff; color: var(--c-ink);
  border: 2.5px solid var(--c-ink);
  border-radius: 18px 14px 20px 12px / 14px 20px 12px 18px;
  padding: 12px 28px;
  font-family: var(--font-hand);
  font-weight: 700; font-size: 1.3rem;
  box-shadow: 3px 3px 0 var(--c-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-doodle:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--c-ink); text-decoration: none; color: var(--c-red); }
.btn-doodle:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--c-ink); }
.btn-doodle.btn-doodle-red { border-color: var(--c-red); box-shadow: 3px 3px 0 var(--c-red); color: var(--c-red); }
.btn-doodle.btn-doodle-red:hover { box-shadow: 4px 4px 0 var(--c-red); background: var(--c-red); color: #fff; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  /* subtle notebook-paper feel */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.4; z-index: 0;
  background-image: radial-gradient(circle, rgba(27,58,107,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-kicker { display: inline-block; padding: 6px 14px; background: var(--c-cream); border: 1.5px solid rgba(27,58,107,0.15); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--c-blue); letter-spacing: 0.3px; margin-bottom: 22px; }
.hero-kicker::before { content: '🚑'; margin-right: 6px; }
.hero h1 { max-width: 640px; }
.hero h1 .wiggle { position: relative; color: var(--c-red); display: inline-block; }
.hero h1 .wiggle svg { position: absolute; left: -6px; right: -6px; bottom: -8px; width: calc(100% + 12px); height: 14px; }
.hero-sub { font-size: 19px; color: var(--c-muted); max-width: 560px; margin: 0 0 32px; line-height: 1.55; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 24px; margin-top: 42px; font-size: 14px; color: var(--c-muted); flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust span::before { content: '✓'; color: var(--c-green); font-weight: 900; }
.hero-visual { position: relative; }

/* ── Wobbly "laptop" frame that holds product UI mockups ───────── */
.laptop-frame {
  position: relative;
  background: #fff;
  border: 3px solid var(--c-ink);
  border-radius: 28px 24px 30px 22px / 22px 30px 24px 28px;
  padding: 14px 14px 28px 14px;
  box-shadow: 10px 10px 0 rgba(220,20,60,0.12), var(--shadow-lg);
  transform: rotate(-0.4deg);
}
.laptop-frame::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -14px; width: 70%; height: 6px;
  background: var(--c-ink); border-radius: 0 0 10px 10px;
}
.laptop-frame.no-tilt { transform: none; }
.laptop-bar { display: flex; gap: 6px; padding: 0 4px 12px; align-items: center; }
.laptop-dot { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.laptop-dot.r { background: #fca5a5; }
.laptop-dot.y { background: #fde68a; }
.laptop-dot.g { background: #86efac; }
.laptop-url { flex: 1; background: #f1f5f9; border-radius: 999px; padding: 6px 12px; font-size: 12px; color: #94a3b8; margin-left: 10px; font-family: ui-monospace, Menlo, monospace; }

/* ── Sticky-note ────────────────────────────────────────────────── */
.sticky {
  display: inline-block;
  background: var(--c-yellow);
  padding: 18px 22px;
  min-width: 140px;
  box-shadow: 3px 5px 14px rgba(0,0,0,0.08);
  position: relative;
  border-radius: 2px;
  transform: rotate(-2deg);
  font-weight: 700;
  color: var(--c-ink);
}
.sticky::before {
  /* fold corner */
  content: ''; position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid; border-width: 0 18px 18px 0;
  border-color: transparent #fef3c7 transparent transparent;
  filter: drop-shadow(-1px 1px 1px rgba(0,0,0,0.1));
}
.sticky.pink { background: var(--c-pink); transform: rotate(1.5deg); }
.sticky.pink::before { border-color: transparent var(--c-pink-deep) transparent transparent; }
.sticky.blue { background: #dbeafe; transform: rotate(-1deg); }
.sticky.blue::before { border-color: transparent #bfdbfe transparent transparent; }
.sticky.green { background: #d1fae5; transform: rotate(2deg); }
.sticky.green::before { border-color: transparent #a7f3d0 transparent transparent; }
.sticky-label { font-family: var(--font-hand); font-size: 1.2rem; color: var(--c-muted); display: block; font-weight: 700; }
/* Numbers stay in Inter so they're unambiguous at a glance. */
.sticky-value { font-family: var(--font-hand); font-size: 3rem; font-weight: 700; color: var(--c-ink); line-height: 1; display: block; margin-top: 4px; }

/* ── Stats band ────────────────────────────────────────────────── */
.stats-band { padding: 60px 0; background: var(--c-cream); border-top: 2px dashed rgba(15,37,72,0.1); border-bottom: 2px dashed rgba(15,37,72,0.1); position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: center; }
.stat-card .sticky { width: 100%; text-align: center; }

/* ── Section head ──────────────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 56px; max-width: 720px; margin-left: auto; margin-right: auto; position: relative; }
.section-kicker { display: inline-block; font-family: var(--font-hand); font-size: 1.7rem; color: var(--c-red); margin-bottom: 4px; transform: rotate(-2deg); font-weight: 700; }
.section-head p { font-size: 18px; color: var(--c-muted); margin-top: 10px; }

/* ── Feature pillars ──────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: #fff;
  border: 2px solid var(--c-ink);
  border-radius: 20px 16px 22px 14px / 14px 22px 16px 20px;
  padding: 32px 28px;
  box-shadow: 4px 4px 0 rgba(27,58,107,0.1);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.pillar:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(220,20,60,0.15); }
.pillar-icon { width: 64px; height: 64px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; background: var(--c-cream); border-radius: 50%; border: 2px solid var(--c-ink); }
.pillar-icon svg { width: 38px; height: 38px; }
.pillar h3 { font-size: 1.9rem; margin-bottom: 10px; color: var(--c-ink); }
.pillar p { color: var(--c-muted); font-size: 15px; margin: 0 0 14px; }
.pillar-link { font-weight: 700; color: var(--c-red); font-size: 14px; }

/* ── Feature spotlight row (alternating) ───────────────────────── */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 80px; }
.spotlight.reverse .spotlight-copy { order: 2; }
.spotlight.reverse .spotlight-visual { order: 1; }
.spotlight-kicker { font-family: var(--font-hand); font-size: 1.4rem; color: var(--c-red); margin-bottom: 4px; display: block; }
.spotlight h2 { font-size: 2.75rem; margin-bottom: 14px; line-height: 1.05; }
.spotlight-copy p { font-size: 17px; color: var(--c-muted); margin: 0 0 18px; }
.spotlight-bullets { list-style: none; padding: 0; margin: 0 0 20px; }
.spotlight-bullets li { padding: 6px 0 6px 30px; position: relative; font-weight: 500; color: var(--c-body); }
.spotlight-bullets li::before {
  content: '✓'; position: absolute; left: 0; top: 5px;
  width: 22px; height: 22px;
  background: var(--c-green); color: #fff; border-radius: 50%;
  font-size: 13px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  transform: rotate(-5deg);
}
.spotlight-visual { position: relative; }

/* ── Annotations on spotlight mockups ──────────────────────────── */
.annotation {
  position: absolute;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--c-red);
  font-weight: 700;
  max-width: 200px;
  line-height: 1.1;
  z-index: 3;
}
.annotation.tl { top: -20px; left: -8px; transform: rotate(-4deg); }
.annotation.tr { top: -10px; right: -20px; transform: rotate(3deg); }
.annotation.bl { bottom: -28px; left: 12px; transform: rotate(-2deg); }
.annotation.br { bottom: -20px; right: 20px; transform: rotate(2deg); }

/* ── Product UI mockup — the inner "real" app screens ──────────── */
.ui-mock { background: #fff; border-radius: 10px; padding: 18px; color: var(--c-ink); font-size: 14px; }
.ui-mock-dark { background: linear-gradient(135deg, #1B3A6B 0%, #0F2548 100%); color: #fff; }
.ui-label { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #94a3b8; margin-bottom: 4px; }
.ui-chip { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; }
.ui-chip.red { background: #fee2e2; color: #991b1b; }
.ui-chip.green { background: #dcfce7; color: #166534; }
.ui-chip.blue { background: #dbeafe; color: #1e40af; }
.ui-chip.yellow { background: #fef3c7; color: #92400e; }
.ui-chip.grey { background: #e2e8f0; color: #475569; }
.ui-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.ui-row:last-child { border-bottom: none; }
.ui-mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--c-blue); }
.ui-bar { height: 8px; border-radius: 4px; background: #f1f5f9; overflow: hidden; margin: 6px 0; }
.ui-bar-fill { height: 100%; background: linear-gradient(90deg, #DC143C, #1B3A6B); border-radius: 4px; }

/* ── Squiggle divider ──────────────────────────────────────────── */
.squiggle-divider { display: block; width: 100%; height: 24px; margin: 0; }

/* ── Lifecycle winding road ────────────────────────────────────── */
.road-wrap { position: relative; padding: 40px 0; }
.road-svg { width: 100%; height: auto; display: block; }
.road-stops {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.road-stop {
  background: #fff;
  color: var(--c-ink);            /* explicit — parent .section-ink makes the default light */
  border: 2px solid var(--c-ink);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: 2px 2px 0 rgba(252,211,77,0.4);
  font-size: 13.5px;
  font-weight: 700;               /* stronger on dark section */
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.road-stop > div { color: var(--c-ink); }
.road-stop:hover { transform: translateY(-4px); box-shadow: 4px 6px 0 rgba(252,211,77,0.6); }
.road-stop-num {
  display: inline-block;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c-red);
  color: #fff;
  font-weight: 800; font-size: 13px;
  line-height: 30px;
  margin-bottom: 8px;
}

/* ── BI Gallery: infographic cards ─────────────────────────────── */
.bi-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bi-card {
  background: #fff;
  border: 2px solid var(--c-ink);
  border-radius: 18px 14px 20px 12px / 12px 20px 14px 18px;
  padding: 22px;
  box-shadow: 4px 4px 0 rgba(27,58,107,0.1);
  position: relative;
}
.bi-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--c-ink); }
.bi-card-sub { font-size: 12px; color: var(--c-muted); font-family: var(--font-hand); font-weight: 700; margin-bottom: 14px; }
.bi-bars { display: flex; align-items: end; gap: 8px; height: 110px; padding: 8px 0; border-bottom: 2px dashed var(--c-ink); }
.bi-bar { flex: 1; border-radius: 6px 6px 0 0; background: var(--c-blue); position: relative; min-width: 14px; }
.bi-bar.red { background: var(--c-red); }
.bi-bar.green { background: var(--c-green); }
.bi-bar.yellow { background: var(--c-yellow); }
.bi-bar-val { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-family: var(--font-hand); font-size: 14px; font-weight: 700; color: var(--c-ink); white-space: nowrap; }

.bi-donut { width: 140px; height: 140px; margin: 0 auto; }
.bi-kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; font-size: 12px; }
.bi-kpi { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dotted #cbd5e1; }
.bi-kpi-val { font-weight: 800; color: var(--c-ink); }
.bi-gauge { width: 100%; height: 140px; position: relative; }

/* ── Module grid ───────────────────────────────────────────────── */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.module {
  background: #fff;
  border: 2px solid var(--c-ink);
  border-radius: 14px 10px 14px 10px;
  padding: 22px 18px;
  text-align: left;
  position: relative;
  box-shadow: 3px 3px 0 rgba(27,58,107,0.08);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.module:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(220,20,60,0.15); }
.module-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.module h4 { font-size: 15px; margin: 0 0 4px; color: var(--c-ink); font-weight: 800; }
.module p { font-size: 12.5px; color: var(--c-muted); margin: 0; line-height: 1.4; }

/* ── Solution cards ────────────────────────────────────────────── */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card {
  background: #fff;
  border: 2.5px solid var(--c-ink);
  border-radius: 22px 16px 22px 16px;
  padding: 28px 26px;
  box-shadow: 5px 5px 0 rgba(27,58,107,0.1);
  position: relative;
}
.solution-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.solution-card p { font-size: 14.5px; color: var(--c-muted); margin: 0 0 14px; }
.solution-card ul { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--c-body); }
.solution-card li { padding: 4px 0 4px 22px; position: relative; }
.solution-card li::before { content: '→'; position: absolute; left: 0; top: 4px; color: var(--c-red); font-weight: 800; }
.solution-card .emmy { position: absolute; top: -28px; right: 16px; width: 72px; height: 72px; }

/* ── Pricing ────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: #fff;
  border: 2.5px solid var(--c-ink);
  border-radius: 20px 14px 20px 14px;
  padding: 28px 26px;
  box-shadow: 5px 5px 0 rgba(27,58,107,0.08);
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--c-red); box-shadow: 5px 5px 0 rgba(220,20,60,0.2); transform: translateY(-8px); }
.price-card.featured .price-ribbon { display: inline-block; padding: 4px 12px; background: var(--c-red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; transform: rotate(-3deg); }
.price-card h3 { font-size: 1.4rem; }
.price-card .price { font-size: 2rem; font-weight: 900; color: var(--c-ink); margin: 8px 0 4px; }
.price-card .price small { font-size: 1rem; color: var(--c-muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price-card li { padding: 6px 0 6px 26px; position: relative; font-size: 14.5px; color: var(--c-body); }
.price-card li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; background: var(--c-green); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* ── Testimonials ──────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.testimonial { position: relative; background: #fff; border: 2px solid var(--c-ink); border-radius: 20px 20px 20px 4px; padding: 24px 28px; box-shadow: 4px 4px 0 rgba(27,58,107,0.1); }
.testimonial p { font-family: var(--font-hand); font-size: 1.3rem; color: var(--c-ink); line-height: 1.4; margin: 0 0 14px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-muted); }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c-cream); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--c-blue); border: 2px solid var(--c-ink); }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 2px dashed rgba(15,37,72,0.15); padding: 18px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; color: var(--c-ink); font-size: 16px; user-select: none; }
.faq-q::after { content: '+'; font-family: var(--font-hand); font-size: 1.6rem; color: var(--c-red); font-weight: 800; transition: transform 0.2s ease; line-height: 1; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease, padding 0.25s ease; color: var(--c-muted); font-size: 15px; }
.faq-item.open .faq-a { max-height: 400px; padding-top: 12px; }

/* ── Final CTA ─────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #0F2548 0%, #1B3A6B 50%, #DC143C 120%);
  color: #fff; border-radius: 32px 28px 32px 28px;
  padding: 56px 60px; position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,37,72,0.2);
}
.cta-band h2 { color: #fff; max-width: 620px; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; font-size: 17px; margin: 12px 0 24px; }
.cta-band .confetti { position: absolute; top: 20px; right: 40px; width: 160px; opacity: 0.7; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer { background: #fff; border-top: 2px dashed rgba(15,37,72,0.12); padding: 64px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--c-muted); max-width: 300px; margin: 0 0 16px; }
.footer-col h4 { font-size: 12px; color: var(--c-ink); font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; font-size: 14px; }
.footer-col a { color: var(--c-muted); }
.footer-col a:hover { color: var(--c-blue); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(15,37,72,0.08); font-size: 13px; color: var(--c-muted); flex-wrap: wrap; gap: 12px; }
.footer-epicle { font-weight: 700; color: var(--c-ink); }

/* ── Floating Epicle sticky badge ──────────────────────────────── */
.epicle-badge {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  background: var(--c-yellow);
  padding: 10px 16px 10px 14px;
  border-radius: 2px;
  box-shadow: 3px 4px 14px rgba(0,0,0,0.15);
  transform: rotate(-4deg);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.epicle-badge:hover { transform: rotate(0deg); box-shadow: 4px 6px 16px rgba(0,0,0,0.2); text-decoration: none; color: var(--c-ink); }
.epicle-badge-pin { width: 10px; height: 10px; border-radius: 50%; background: var(--c-red); box-shadow: 0 0 0 3px rgba(220,20,60,0.2); }

/* ── Emmy mascot sizing ────────────────────────────────────────── */
.emmy { width: 160px; height: auto; }
.emmy-sm { width: 80px; }
.emmy-md { width: 120px; }
.emmy-lg { width: 220px; }
.emmy-xl { width: 300px; }

/* ── Utility ───────────────────────────────────────────────────── */
.center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }

/* ─────────────────────────────────────────────────────────────────
   Interactive demo modals — each spotlight's CTA opens one of these.
   The modal is edge-to-edge on mobile, centered card on desktop.
   ───────────────────────────────────────────────────────────────── */
.demo-modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,37,72,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  padding: 40px 20px;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}
.demo-modal-backdrop.open { display: flex; animation: dmFade 0.2s ease; }
@keyframes dmFade { from { opacity: 0; } to { opacity: 1; } }
.demo-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 960px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(15,37,72,0.35);
  border: 2.5px solid var(--c-ink);
  position: relative;
  animation: dmSlide 0.25s ease;
}
@keyframes dmSlide { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.demo-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px;
  background: linear-gradient(135deg, #1B3A6B 0%, #0F2548 100%);
  color: #fff;
  border-radius: 18px 18px 0 0;
}
.demo-modal-head h3 { color: #fff; font-size: 1.3rem; margin: 0; }
.demo-modal-head .demo-kicker {
  font-family: var(--font-hand); font-size: 1.3rem; color: #FCD34D;
  display: block; margin-bottom: 2px;
}
.demo-modal-close {
  background: rgba(255,255,255,0.12); color: #fff;
  border: none; width: 36px; height: 36px; border-radius: 10px;
  font-size: 22px; cursor: pointer; line-height: 1;
  transition: background 0.15s ease;
}
.demo-modal-close:hover { background: rgba(255,255,255,0.25); }
.demo-modal-body { padding: 28px 32px 32px; max-height: calc(100vh - 240px); overflow-y: auto; }
.demo-footnote { margin-top: 18px; font-size: 12.5px; color: var(--c-muted); font-family: var(--font-hand); }

/* ── Demo input + button common ──────────────────────────────── */
.demo-row { display: grid; gap: 14px; margin-bottom: 18px; }
.demo-row.two-col { grid-template-columns: 1fr 1fr; }
.demo-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
.demo-field { display: flex; flex-direction: column; }
.demo-field label { font-family: var(--font-ui); font-size: 12px; font-weight: 800; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.demo-field input, .demo-field select, .demo-field textarea {
  padding: 10px 12px; border-radius: 8px; border: 2px solid #e2e8f0;
  font-family: var(--font-ui); font-size: 14px; color: var(--c-ink);
  transition: border-color 0.15s ease;
}
.demo-field input:focus, .demo-field select:focus, .demo-field textarea:focus { outline: none; border-color: var(--c-blue); }
.demo-field textarea { min-height: 90px; resize: vertical; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.demo-runbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; background: var(--c-red); color: #fff;
  border: none; border-radius: 10px;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.2rem;
  cursor: pointer; transition: transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 10px rgba(220,20,60,0.25);
}
.demo-runbtn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(220,20,60,0.35); }
.demo-runbtn:disabled { opacity: 0.6; cursor: not-allowed; }
.demo-runbtn .spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: dmSpin 0.7s linear infinite;
}
@keyframes dmSpin { to { transform: rotate(360deg); } }

/* ── Result panels ───────────────────────────────────────────── */
.demo-result {
  margin-top: 22px; padding: 20px 22px;
  background: var(--c-cream-soft);
  border: 2px solid var(--c-ink);
  border-radius: 14px;
  animation: dmSlide 0.35s ease;
}
.demo-result-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--c-ink); font-size: 15px;
  margin-bottom: 14px;
}
.demo-result-title::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 4px rgba(16,185,129,0.18); }

/* ── Specific demo visuals ───────────────────────────────────── */
.demo-soap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-soap-panel {
  padding: 14px 16px; background: #fff; border-radius: 10px;
  border-left: 4px solid var(--c-blue); font-size: 13.5px; color: var(--c-body); line-height: 1.55;
}
.demo-soap-panel.s { border-left-color: var(--c-red); }
.demo-soap-panel.o { border-left-color: var(--c-blue); }
.demo-soap-panel.a { border-left-color: var(--c-green); }
.demo-soap-panel.p { border-left-color: var(--c-yellow); }
.demo-soap-panel b { color: var(--c-ink); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }

.demo-chat-thread { display: flex; flex-direction: column; gap: 10px; }
.demo-chat-bubble {
  padding: 10px 14px; border-radius: 14px 14px 14px 2px;
  background: #f1f5f9; color: var(--c-ink);
  font-size: 13.5px; line-height: 1.5; max-width: 85%;
  align-self: flex-start;
}
.demo-chat-bubble.me {
  background: var(--c-blue); color: #fff;
  border-radius: 14px 14px 2px 14px;
  align-self: flex-end;
}
.demo-chat-bubble.emmy { background: #fef8e7; border-left: 3px solid #FCD34D; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.demo-chip {
  padding: 8px 14px; background: #fff; border: 2px solid var(--c-ink);
  border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--c-ink);
  cursor: pointer; transition: all 0.15s ease;
}
.demo-chip:hover { background: var(--c-yellow); transform: translateY(-1px); }
.demo-chip:disabled { opacity: 0.4; cursor: not-allowed; }

.demo-typing { display: inline-flex; gap: 3px; padding: 0 4px; }
.demo-typing span { width: 6px; height: 6px; border-radius: 50%; background: #64748b; animation: dmType 1.2s infinite; }
.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dmType { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; transform: translateY(-2px); } }

.demo-queue-row {
  display: grid; grid-template-columns: 1fr 160px 120px 110px;
  gap: 12px; padding: 12px 16px;
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px;
  margin-bottom: 8px; align-items: center; font-size: 13.5px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.demo-queue-row.done { border-color: var(--c-green); background: #f0fdf4; }
.demo-queue-row .ui-mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--c-muted); }
.demo-queue-results {
  margin-top: 6px; padding: 10px 14px;
  background: #fff; border: 1.5px dashed var(--c-green);
  border-radius: 10px; font-size: 12.5px;
}

.demo-val-report { display: flex; flex-direction: column; gap: 8px; }
.demo-val-line {
  padding: 10px 14px; border-radius: 8px; font-size: 13px;
  display: flex; gap: 10px; align-items: flex-start;
}
.demo-val-line.pass { background: #f0fdf4; border-left: 4px solid var(--c-green); }
.demo-val-line.warn { background: #fef3c7; border-left: 4px solid #FCD34D; }
.demo-val-line.fail { background: #fee2e2; border-left: 4px solid var(--c-red); }
.demo-val-line b { color: var(--c-ink); }

/* ── Reveal animation ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .container, .container-wide { padding: 0 32px; }
  .road-stops { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .road-stop { padding: 12px 10px; font-size: 12px; }
}
@media (max-width: 1024px) {
  .hero-inner, .spotlight, .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .spotlight.reverse .spotlight-copy, .spotlight.reverse .spotlight-visual { order: unset; }
  .pillars, .bi-gallery, .solutions-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .modules { grid-template-columns: 1fr 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .road-stops { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .section { padding: 56px 0; }
  .pillars, .bi-gallery, .solutions-grid, .pricing-grid, .modules { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .cta-band { padding: 36px 28px; }
  .cta-band .confetti { display: none; }
  .epicle-badge { font-size: 11px; padding: 8px 12px 8px 10px; }
  .laptop-frame { transform: none; }
  .road-stops { grid-template-columns: 1fr 1fr; }
}
