/* ========================================
   CSS VARIABLES
======================================== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --light: #f8fafc;
  --light-alt: #f1f5f9;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --max-width: 1100px;
  --header-height: 64px;
  --submenu-height: 48px;
  --total-sticky-height: 112px;
  --radius-xs: 6px;
  --radius-pill: 100px;
  --bg-alt: var(--light-alt);
  --accent: var(--primary-dark);
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--total-sticky-height);
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 20px); }

p { color: var(--muted); }

main {
  flex: 1;
}

/* ========================================
   CONTAINER
======================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ========================================
   HEADER
======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-md);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  min-width: 0;
}

/* Logo - supports both text and image */
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--primary);
}

.logo img {
  height: 40px;
  width: auto;
}

/* ========================================
   PRIMARY NAVIGATION
======================================== */
.main-nav {
  display: none;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-xs);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.main-nav a:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}

.main-nav a.active,
.main-nav .nav-dropdown-toggle.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

.main-nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.header-cta {
  display: none;
  flex-shrink: 0;
}

/* ========================================
   SECONDARY SUB-MENU (TIER 2)
======================================== */
.sub-menu {
  position: sticky;
  top: var(--header-height);
  z-index: 99;
  background: white;
  border-bottom: 1px solid var(--border);
  height: var(--submenu-height);
  overflow: hidden;
}

.sub-menu-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--space-md);
  margin: 0 calc(-1 * var(--space-md));
}

.sub-menu-inner::-webkit-scrollbar {
  display: none;
}

.sub-menu-label {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-right: 8px;
}

.sub-menu-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sub-menu-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
}

.sub-menu-nav a:hover {
  color: var(--text);
  background: var(--light-alt);
}

.sub-menu-nav a.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

.sub-menu-nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========================================
   MOBILE MENU (Pure CSS with details/summary)
======================================== */
.mobile-menu {
  display: block;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
  list-style: none;
}

.mobile-menu-toggle::-webkit-details-marker {
  display: none;
}

.mobile-menu-toggle::marker {
  display: none;
}

.mobile-menu-toggle:hover {
  background: var(--light-alt);
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Hamburger icon */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Animate hamburger to X when open */
.mobile-menu[open] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu[open] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu[open] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
.mobile-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.mobile-nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
  background: var(--light-alt);
  color: var(--primary);
}

.mobile-nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.mobile-menu-cta {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.mobile-menu-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Legacy menu toggle - hide if using new mobile menu */
.menu-toggle {
  display: none;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background: #fde68a;
  color: black;
  border-color: transparent;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 14px;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: var(--dark);
  padding: var(--space-2xl) 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-col p,
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.8;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Footer logo - text fallback */
.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-sm);
}

.footer-logo span {
  color: var(--primary);
}

/* Footer logo - image */
.footer-logo-link {
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.footer-logo-img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

/* Footer address */
.footer-address {
  font-style: normal;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.8;
}

/* Language switcher */
.lang-switch {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.lang-switch button,
.lang-switch .lang-btn {
  padding: var(--space-xs) var(--space-md);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.lang-switch button:hover,
.lang-switch .lang-btn:hover {
  border-color: var(--primary);
  color: white;
}

.lang-switch button.active,
.lang-switch .lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.lang-switch .lang-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Footer legal links */
.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.footer-copyright {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}

/* ========================================
   PAGE CONTENT
======================================== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.page-hero h1 {
  color: white;
  margin-bottom: var(--space-md);
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.page-content {
  padding: var(--space-3xl) 0;
}

.content-placeholder {
  background: var(--light-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--space-2xl);
  text-align: center;
  color: var(--muted);
}

/* ========================================
   MEDIA QUERIES
======================================== */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (max-width: 1023px) {
  .logo img {
    height: 34px;
  }
}

/* Desktop breakpoint - show full navigation */
@media (min-width: 1024px) {
  :root {
    --header-height: 72px;
    --submenu-height: 52px;
    --total-sticky-height: 124px;
  }

  .container {
    padding: 0 var(--space-xl);
  }

  .header-inner {
    padding: 0 var(--space-md);
    gap: var(--space-xs);
  }

  /* Hide mobile menu, show desktop nav */
  .mobile-menu {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;       /* push nav + CTA to the right as a group */
  }

  .main-nav ul {
    gap: 8px;
  }

  /* Consistent typography for links AND the dropdown toggle button */
  .main-nav a,
  .main-nav .nav-dropdown-toggle {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
  }

  .header-cta {
    display: block;
  }

  .header-cta .btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .logo img {
    height: 36px;
  }

  /* Sub-menu desktop improvements */
  .sub-menu-label {
    display: block;
  }

  .sub-menu-nav a {
    padding: 10px 16px;
    font-size: 14px;
  }

  .page-hero {
    padding: var(--space-4xl) 0;
  }

  .page-content {
    padding: var(--space-4xl) 0;
  }
}

/* Large desktop - restore header/logo/CTA comfort */
@media (min-width: 1280px) {
  .header-inner {
    padding: 0 var(--space-xl);
    gap: var(--space-md);
  }

  .header-cta .btn {
    font-size: 14px;
    padding: var(--space-xs) var(--space-md);
  }

  .logo img {
    height: 42px;
  }

  .sub-menu-nav a {
    padding: 10px 18px;
  }
}

/* ========================================
   HOMEPAGE - HERO
======================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, #334155 100%);
  padding: var(--space-3xl) 0 var(--space-4xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  gap: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-lg);
}

.hero-subhead {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero-buttons,
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: stretch;
  max-width: 380px;
  margin: 0 auto;
}

.hero-buttons .btn,
.hero-cta-group .btn {
  text-align: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.btn-light {
  background: white;
  color: var(--primary);
  border-color: white;
}

.btn-light:hover {
  background: var(--light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.3);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 16px;
}

/* Dashboard Mock */
.dashboard-mock {
  background: var(--dark-light);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: var(--space-md);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.dashboard-header {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.dashboard-dot:nth-child(1) { background: #EF4444; }
.dashboard-dot:nth-child(2) { background: #F59E0B; }
.dashboard-dot:nth-child(3) { background: #10B981; }

.dashboard-content {
  display: grid;
  gap: var(--space-sm);
}

.dashboard-row {
  display: flex;
  gap: var(--space-sm);
}

.dashboard-stat {
  flex: 1;
  background: #334155;
  border-radius: var(--radius);
  padding: var(--space-sm);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.stat-bar {
  height: 4px;
  background: var(--dark);
  border-radius: 2px;
  margin-top: var(--space-xs);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 2px;
}

.stat-bar-fill.green { background: var(--success); width: 78%; }
.stat-bar-fill.blue { background: var(--primary); width: 62%; }
.stat-bar-fill.cyan { background: #06B6D4; width: 89%; }

.dashboard-chart {
  background: #334155;
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  align-items: flex-end;
  gap: var(--space-xs);
  height: 100px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), var(--primary-light));
  border-radius: 3px 3px 0 0;
  min-height: 10px;
}

.chart-bar:nth-child(1) { height: 45%; }
.chart-bar:nth-child(2) { height: 65%; }
.chart-bar:nth-child(3) { height: 55%; }
.chart-bar:nth-child(4) { height: 80%; }
.chart-bar:nth-child(5) { height: 70%; }
.chart-bar:nth-child(6) { height: 90%; }
.chart-bar:nth-child(7) { height: 75%; }

.dashboard-lines {
  background: #334155;
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.dashboard-line {
  height: 8px;
  background: var(--dark);
  border-radius: 4px;
}

.dashboard-line:nth-child(1) { width: 100%; }
.dashboard-line:nth-child(2) { width: 85%; }
.dashboard-line:nth-child(3) { width: 60%; }

/* ========================================
   HOMEPAGE - SECTIONS
======================================== */
.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: var(--light-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   HOMEPAGE - PROBLEM SECTION
======================================== */
.problem-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.problem-content h2 {
  margin-bottom: var(--space-lg);
}

.problem-content > p {
  margin-bottom: var(--space-md);
  font-size: 18px;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.problem-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.problem-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.problem-text {
  font-weight: 600;
  color: var(--dark);
}

/* ========================================
   HOMEPAGE - SOLUTIONS GRID
======================================== */
.solutions-grid {
  display: grid;
  gap: var(--space-lg);
}

.solution-card {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-xl);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.solution-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.solution-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--light) 0%, var(--light-alt) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.solution-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
}

.solution-card h3 {
  margin-bottom: var(--space-sm);
}

.solution-card p {
  font-size: 14px;
  line-height: 1.7;
}

.section-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ========================================
   HOMEPAGE - APPROACH / PROCESS
======================================== */
.process-steps {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.process-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step-content h3 {
  font-size: 16px;
  margin-bottom: var(--space-xs);
}

.step-content p {
  font-size: 14px;
}

/* CTA Card */
.cta-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  border-radius: 24px;
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card h3 {
  color: white;
  font-size: 20px;
  margin-bottom: var(--space-sm);
}

.cta-card > p {
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-lg);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   HOMEPAGE - IMPACT SECTION
======================================== */
.impact-list {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.impact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.impact-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-check svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 3;
  fill: none;
}

.impact-item span {
  font-weight: 500;
  color: var(--dark);
}

.impact-closing {
  text-align: center;
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* ========================================
   HOMEPAGE - WHY SECTION
======================================== */
.why-content {
  display: grid;
  gap: var(--space-xl);
}

.why-header h2 {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 500px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.why-bullet {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.why-item span {
  font-weight: 500;
  color: var(--dark);
}

.operating-card {
  background: white;
  border: 2px solid var(--primary-light);
  border-radius: 16px;
  padding: var(--space-lg);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.operating-card h4 {
  color: var(--primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.operating-card p {
  color: var(--dark);
  font-weight: 500;
}

/* ========================================
   HOMEPAGE - CONTACT SECTION
======================================== */
.contact-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.contact-section > .container {
  position: relative;
  z-index: 1;
}

.contact-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.contact-header h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.contact-header > p {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.contact-form {
  background: white;
  border-radius: 24px;
  padding: var(--space-xl);
  max-width: 560px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  padding: var(--space-sm) var(--space-md);
  font-family: inherit;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--light);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  text-align: center;
}

.form-submit .btn {
  width: 100%;
}

.form-note {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--space-md);
}

.form-status {
  display: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  font-size: 14px;
  text-align: center;
  margin-bottom: var(--space-md);
}

.form-status.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-turnstile {
  display: flex;
  justify-content: flex-start;
  margin-bottom: var(--space-md);
}

/* ========================================
   HOMEPAGE - RESPONSIVE
======================================== */
@media (min-width: 640px) {
  .hero-buttons,
  .hero-cta-group {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: none;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-group.full-width {
    grid-column: span 2;
  }

  .problem-list {
    flex-direction: row;
    max-width: none;
    justify-content: center;
    gap: var(--space-2xl);
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: var(--space-4xl) 0;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-3xl);
  }

  .hero-content {
    text-align: left;
  }

  .hero-subhead {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .section {
    padding: var(--space-4xl) 0;
  }

  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin: 0 auto var(--space-md);
  }

  .cta-card {
    padding: var(--space-2xl) var(--space-3xl);
  }

  .cta-card h3 {
    font-size: 24px;
  }

  .why-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
  }

  .why-header {
    text-align: left;
  }

  .why-header h2 {
    text-align: left;
  }

  .why-list {
    margin: 0;
  }

  .operating-card {
    margin: 0;
  }
}

/* ========================================
   SERVICE PAGES
======================================== */

/* Breadcrumb */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: 14px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.breadcrumb-list a {
  color: var(--muted);
  transition: color 0.2s;
}

.breadcrumb-list a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--border);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* Service Hero with Chat Mock */
.service-hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, #334155 100%);
  padding: var(--space-2xl) 0 var(--space-3xl);
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.service-hero .hero-inner {
  position: relative;
  z-index: 1;
}

.service-hero h1 {
  color: white;
  margin-bottom: var(--space-md);
}

/* Chat Mock */
.chat-mock {
  background: var(--dark-light);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: var(--space-md);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #334155;
  margin-bottom: var(--space-md);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.chat-title {
  flex: 1;
}

.chat-title span {
  display: block;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.chat-title small {
  color: var(--success);
  font-size: 12px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.chat-message {
  max-width: 85%;
  padding: var(--space-sm) var(--space-md);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-message.bot {
  background: #334155;
  color: rgba(255,255,255,0.9);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-sm) var(--space-md);
  background: #334155;
  border-radius: 12px;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  max-width: 60px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.2); }
}

.chat-kpis {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.chat-kpi {
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Overview Section */
.overview-grid {
  display: grid;
  gap: var(--space-2xl);
}

.overview-text p {
  margin-bottom: var(--space-md);
  font-size: 16px;
  line-height: 1.7;
}

.overview-text p:last-child {
  margin-bottom: 0;
}

.kpi-cards {
  display: grid;
  gap: var(--space-md);
}

.kpi-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.kpi-card h4 {
  font-size: 15px;
  margin-bottom: 2px;
}

.kpi-card p {
  font-size: 13px;
  margin: 0;
}

/* What Is / Isn't Cards */
.what-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.what-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
}

.what-card.is {
  border-left: 4px solid var(--success);
}

.what-card.isnt {
  border-left: 4px solid var(--muted);
}

.what-card h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.what-card.is h4 {
  color: var(--success);
}

.what-card.isnt h4 {
  color: var(--muted);
}

.what-card p {
  font-size: 14px;
  margin: 0;
}

/* Use Cases Grid */
.usecases-grid {
  display: grid;
  gap: var(--space-lg);
}

.usecase-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: all 0.2s;
}

.usecase-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.usecase-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--light) 0%, var(--light-alt) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.usecase-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
}

.usecase-card h3 {
  font-size: 16px;
  margin-bottom: var(--space-xs);
}

.usecase-card p {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* Features Section */
.features-grid {
  display: grid;
  gap: var(--space-2xl);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.feature-check {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-check svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 3;
  fill: none;
}

.feature-item span {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

/* Integration Diagram */
.integration-diagram {
  background: var(--light-alt);
  border-radius: 16px;
  padding: var(--space-xl);
}

.diagram-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.diagram-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.diagram-node {
  background: white;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: var(--space-sm) var(--space-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  min-width: 140px;
}

.diagram-node.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.diagram-arrow {
  width: 2px;
  height: 20px;
  background: var(--border);
  position: relative;
}

.diagram-arrow::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--border);
}

.diagram-branches {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* Process Steps (5 columns) */
.process-steps-5 {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  gap: var(--space-lg);
}

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}

.pricing-header {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.pricing-header h3 {
  font-size: 20px;
  margin-bottom: var(--space-xs);
}

.pricing-header .price {
  font-size: 14px;
  color: var(--muted);
}

.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 14px;
  color: var(--text);
}

.pricing-feature svg {
  width: 16px;
  height: 16px;
  stroke: var(--success);
  stroke-width: 3;
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-cta {
  text-align: center;
}

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--space-lg);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-lg);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--muted);
  line-height: 1.7;
}

/* Service Page Responsive */
@media (min-width: 640px) {
  .what-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-steps-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .diagram-flow {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .diagram-arrow {
    width: 30px;
    height: 2px;
  }

  .diagram-arrow::after {
    bottom: auto;
    top: 50%;
    left: auto;
    right: -4px;
    transform: translateY(-50%);
    border-left: 6px solid var(--border);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: none;
  }
}

@media (min-width: 768px) {
  .usecases-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kpi-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-hero {
    padding: var(--space-3xl) 0 var(--space-4xl);
  }

  .overview-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .process-steps-5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .kpi-cards {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   PILLAR PAGES
======================================== */

/* Blueprint Mock Visual */
.blueprint-mock {
  background: var(--dark-light);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: var(--space-lg);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.blueprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #334155;
  margin-bottom: var(--space-md);
}

.blueprint-title {
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.blueprint-status {
  display: flex;
  gap: var(--space-xs);
}

.status-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.status-chip.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.status-chip.pending {
  background: rgba(251, 191, 36, 0.2);
  color: #FBBF24;
}

.blueprint-layers {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.blueprint-layer {
  background: #334155;
  border-radius: 8px;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.layer-icon {
  width: 32px;
  height: 32px;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.layer-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary-light);
  stroke-width: 2;
  fill: none;
}

.layer-content {
  flex: 1;
  min-width: 0;
}

.layer-name {
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}

.layer-desc {
  font-size: 11px;
  color: var(--muted);
}

.blueprint-connector {
  width: 2px;
  height: 16px;
  background: #475569;
  margin-left: 28px;
  position: relative;
}

.blueprint-connector::before,
.blueprint-connector::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
  left: -2px;
}

.blueprint-connector::before {
  top: -3px;
}

.blueprint-connector::after {
  bottom: -3px;
}

/* Principles Cards */
.principles-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.principle-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  text-align: center;
}

.principle-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.principle-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.principle-card h3 {
  font-size: 16px;
  margin-bottom: var(--space-xs);
}

.principle-card p {
  font-size: 14px;
  margin: 0;
}

/* Architecture Diagram */
.architecture-diagram {
  background: var(--light-alt);
  border-radius: 16px;
  padding: var(--space-xl);
  overflow-x: auto;
}

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 300px;
}

.arch-layer {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.arch-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.arch-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.arch-node {
  background: white;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: var(--space-sm) var(--space-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  min-width: 100px;
}

.arch-node.core {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  min-width: 160px;
}

.arch-node.automation {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}

.arch-node.ai {
  background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
  border-color: #8B5CF6;
  color: white;
}

.arch-connector-row {
  display: flex;
  justify-content: center;
  padding: var(--space-xs) 0;
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arch-connector-line {
  width: 2px;
  height: 20px;
  background: var(--border);
}

.arch-connector-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--border);
}

.arch-description {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.arch-description p {
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto;
}

/* Outcomes Checklist */
.outcomes-grid {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.outcome-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.outcome-check {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.outcome-check svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 3;
  fill: none;
}

.outcome-item span {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.outcomes-closing {
  text-align: center;
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* Related Links */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.related-link {
  font-size: 14px;
  color: var(--primary);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--primary);
  border-radius: 20px;
  transition: all 0.2s;
}

.related-link:hover {
  background: var(--primary);
  color: white;
}

/* Pillar Page Responsive */
@media (min-width: 640px) {
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .arch-layers {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
  }

  .arch-layer {
    flex: 1;
    max-width: 200px;
  }

  .arch-connector-row {
    flex-direction: column;
    padding: 0 var(--space-sm);
    align-self: center;
  }

  .arch-connector-line {
    width: 30px;
    height: 2px;
  }

  .arch-connector-arrow {
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid var(--border);
    border-right: none;
  }
}

/* ========================================
   AI MARKETING AUTOMATION PAGE
======================================== */

/* Funnel Mock Visual */
.funnel-mock {
  background: var(--dark-light);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: var(--space-lg);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.funnel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #334155;
  margin-bottom: var(--space-md);
}

.funnel-title {
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.funnel-stats {
  display: flex;
  gap: var(--space-xs);
}

.funnel-stat {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.2);
  color: var(--primary-light);
}

.funnel-stages {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.funnel-stage {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: #334155;
  border-radius: 8px;
  padding: var(--space-sm) var(--space-md);
  transition: transform 0.2s;
}

.funnel-stage:hover {
  transform: translateX(4px);
}

.stage-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stage-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage-icon.lead {
  background: rgba(37, 99, 235, 0.2);
  color: var(--primary-light);
}

.stage-icon.qualify {
  background: rgba(251, 191, 36, 0.2);
  color: #FBBF24;
}

.stage-icon.crm {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.stage-icon.email {
  background: rgba(168, 85, 247, 0.2);
  color: #A855F7;
}

.stage-icon.sales {
  background: rgba(236, 72, 153, 0.2);
  color: #EC4899;
}

.stage-content {
  flex: 1;
  min-width: 0;
}

.stage-name {
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}

.stage-desc {
  font-size: 11px;
  color: #94a3b8;
}

.stage-arrow {
  color: #64748b;
  font-size: 12px;
}

.funnel-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) 0;
}

.funnel-connector svg {
  width: 16px;
  height: 16px;
  stroke: #64748b;
  stroke-width: 2;
  fill: none;
}

/* Problem Cards */
.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.problem-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.problem-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.problem-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.problem-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.problem-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Workflow Flow */
.workflow-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.workflow-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.workflow-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.workflow-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.workflow-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.workflow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 18px;
}

.workflow-connector-line {
  width: 2px;
  height: 20px;
  background: var(--border);
}

/* Capabilities Grid */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.capability-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-xl);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.capability-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.capability-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.capability-card h3 {
  font-size: 18px;
  margin-bottom: var(--space-xs);
}

.capability-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* Implementation Steps (4 steps) */
.implementation-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.impl-step {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-xl);
  text-align: center;
}

.impl-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto var(--space-md);
}

.impl-step h3 {
  font-size: 18px;
  margin-bottom: var(--space-xs);
}

.impl-step p {
  font-size: 14px;
  line-height: 1.6;
}

/* AI Marketing Automation Responsive */
@media (min-width: 640px) {
  .problems-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .problem-card {
    flex-direction: column;
    text-align: center;
  }

  .problem-icon {
    margin: 0 auto;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .implementation-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .capabilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .workflow-flow {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }

  .workflow-step {
    flex: 1;
    flex-direction: column;
    text-align: center;
    max-width: 180px;
  }

  .workflow-number {
    margin: 0 auto var(--space-sm);
  }

  .workflow-connector {
    padding: 0;
    align-self: center;
  }

  .workflow-connector-line {
    width: 30px;
    height: 2px;
  }

  .implementation-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   BUSINESS PROCESS AUTOMATION PAGE
======================================== */

/* Workflow Mock Visual */
.workflow-mock {
  background: var(--dark-light);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: var(--space-lg);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.workflow-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #334155;
  margin-bottom: var(--space-md);
}

.workflow-mock-title {
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.workflow-mock-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.workflow-mock-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.workflow-mock-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: #334155;
  border-radius: 8px;
  padding: var(--space-sm) var(--space-md);
}

.workflow-mock-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workflow-mock-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.workflow-mock-icon.trigger {
  background: rgba(37, 99, 235, 0.2);
  color: var(--primary-light);
}

.workflow-mock-icon.logic {
  background: rgba(251, 191, 36, 0.2);
  color: #FBBF24;
}

.workflow-mock-icon.approval {
  background: rgba(168, 85, 247, 0.2);
  color: #A855F7;
}

.workflow-mock-icon.sync {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.workflow-mock-icon.report {
  background: rgba(236, 72, 153, 0.2);
  color: #EC4899;
}

.workflow-mock-label {
  flex: 1;
}

.workflow-mock-label-name {
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.workflow-mock-label-desc {
  font-size: 11px;
  color: #94a3b8;
}

.workflow-mock-connector {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.workflow-mock-connector svg {
  width: 14px;
  height: 14px;
  stroke: #64748b;
  stroke-width: 2;
  fill: none;
}

/* Bottlenecks Grid */
.bottlenecks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.bottleneck-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bottleneck-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.bottleneck-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bottleneck-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.bottleneck-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.bottleneck-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Use Cases Grid */
.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.use-case-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.use-case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.use-case-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.use-case-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.use-cases-note {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--space-xl);
  font-style: italic;
}

/* Architecture Section */
.architecture-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.architecture-text h3 {
  font-size: 20px;
  margin-bottom: var(--space-md);
}

.architecture-text p {
  margin-bottom: var(--space-lg);
}

.architecture-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.architecture-checklist-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 15px;
  color: var(--text);
}

.architecture-checklist-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--success);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* System Map */
.system-map {
  background: var(--light-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-xl);
}

.system-map-title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.system-map-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.system-map-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.system-map-node {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-sm) var(--space-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  min-width: 80px;
}

.system-map-node.core {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.system-map-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) 0;
}

.system-map-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  stroke-width: 2;
  fill: none;
}

/* BPA Responsive */
@media (min-width: 480px) {
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) {
  .bottlenecks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .bottlenecks-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .use-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .architecture-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .use-cases-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .system-map-flow {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-md);
  }

  .system-map-arrow {
    padding: 0;
  }

  .system-map-arrow svg {
    transform: rotate(-90deg);
  }

  .system-map-node {
    flex-shrink: 0;
  }
}

/* ==========================================================================
   CRM & SYSTEM INTEGRATION PAGE
   ========================================================================== */

/* Integration Flow Visual */
.integration-flow-visual {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.integration-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.integration-flow-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
}

.integration-node {
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  min-width: 100px;
  transition: all 0.3s ease;
}

.integration-node:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.integration-node.source {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-color: #0ea5e9;
}

.integration-node.core {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  padding: var(--space-md) var(--space-lg);
  min-width: 140px;
}

.integration-node.automation {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
}

.integration-node.output {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #10b981;
}

.integration-node-icon {
  font-size: 24px;
  margin-bottom: var(--space-xs);
}

.integration-node-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.integration-node.core .integration-node-label {
  color: white;
  font-size: 15px;
}

.integration-flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) 0;
}

.integration-flow-connector svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
}

/* Pillar Stats */
.pillar-stats-row {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.pillar-stat {
  text-align: center;
}

.pillar-stat-number {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.pillar-stat-label {
  font-size: 14px;
  color: var(--muted);
  max-width: 180px;
}

/* Benefits Section */
.integration-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.integration-benefit-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.integration-benefit-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.integration-benefit-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.integration-benefit-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.integration-benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.integration-benefit-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* Systems Grid */
.systems-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.system-category {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.system-category:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.system-category-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.system-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.system-category-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.system-category-icon.crm { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.system-category-icon.marketing { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.system-category-icon.automation { background: linear-gradient(135deg, #f59e0b, #d97706); }
.system-category-icon.support { background: linear-gradient(135deg, #10b981, #059669); }
.system-category-icon.ecommerce { background: linear-gradient(135deg, #ec4899, #db2777); }
.system-category-icon.analytics { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.system-category h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.system-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.system-logo {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-xs) var(--space-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}

.system-logo:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Integration Architecture */
.integration-architecture-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.architecture-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.checklist-item:hover {
  border-color: var(--primary);
}

.checklist-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checklist-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.checklist-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.checklist-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.architecture-diagram {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: var(--space-lg);
}

.diagram-layers {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.diagram-layer {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-md);
}

.diagram-layer-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.diagram-layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.diagram-item {
  background: var(--bg-alt);
  border-radius: 6px;
  padding: var(--space-xs) var(--space-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.diagram-layer.sources .diagram-item {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
}

.diagram-layer.middleware .diagram-item {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
}

.diagram-layer.core .diagram-item {
  background: var(--primary);
  color: white;
}

.diagram-layer.outputs .diagram-item {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #047857;
}

.diagram-connector {
  display: flex;
  justify-content: center;
  padding: var(--space-xs) 0;
}

.diagram-connector svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  stroke-width: 2;
  fill: none;
}

/* Implementation Timeline */
.implementation-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.timeline-step {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-step:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.timeline-step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
}

.timeline-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.timeline-step p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.timeline-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.timeline-deliverable {
  background: var(--bg-alt);
  border-radius: 6px;
  padding: var(--space-xs) var(--space-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

/* Outcomes Grid */
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.outcome-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.outcome-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.outcome-metric {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.outcome-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.outcome-description {
  font-size: 14px;
  color: var(--muted);
}

/* CRM Responsive */
@media (min-width: 480px) {
  .integration-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) {
  .systems-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .implementation-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .integration-flow {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .integration-flow-row {
    flex-direction: column;
    width: auto;
  }

  .integration-flow-connector {
    padding: 0 var(--space-sm);
  }

  .integration-flow-connector svg {
    transform: rotate(-90deg);
  }

  .integration-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .systems-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .integration-architecture-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .implementation-timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .outcomes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   AI CONSULTING & STRATEGY PAGE
======================================== */

/* Strategy Dashboard Mock */
.strategy-mock {
  background: var(--dark-light);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: var(--space-lg);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.strategy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #334155;
  margin-bottom: var(--space-md);
}

.strategy-title {
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.strategy-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.2);
  color: #FBBF24;
}

.strategy-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Roadmap Timeline */
.strategy-roadmap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.roadmap-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.phase-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #475569;
  border: 2px solid #475569;
}

.phase-marker.done {
  background: var(--success);
  border-color: var(--success);
}

.phase-marker.active {
  background: transparent;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.roadmap-phase span {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

.roadmap-line {
  flex: 1;
  height: 2px;
  background: #475569;
  margin: 0 var(--space-xs);
  margin-bottom: 16px;
}

.roadmap-line.done {
  background: var(--success);
}

.roadmap-line.active {
  background: linear-gradient(90deg, var(--success) 0%, var(--primary) 100%);
}

/* Strategy KPIs */
.strategy-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.strategy-kpi {
  background: #334155;
  border-radius: 8px;
  padding: var(--space-sm);
  text-align: center;
}

.strategy-kpi .kpi-label {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.strategy-kpi .kpi-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.strategy-kpi .kpi-value.high {
  color: var(--success);
}

/* Strategy Matrix */
.strategy-matrix {
  background: #334155;
  border-radius: 8px;
  padding: var(--space-md);
}

.matrix-title {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  background: #475569;
  border-radius: 4px;
  overflow: hidden;
  height: 80px;
}

.matrix-cell {
  background: var(--dark-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px;
}

.matrix-cell.high-impact.low-effort {
  background: rgba(16, 185, 129, 0.1);
}

.matrix-cell.high-impact.high-effort {
  background: rgba(251, 191, 36, 0.1);
}

.matrix-cell.low-impact.low-effort {
  background: rgba(96, 165, 250, 0.1);
}

.matrix-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.matrix-cell.high-impact .matrix-dot {
  background: var(--success);
}

/* Why AI Fails Grid */
.fail-grid {
  display: grid;
  gap: var(--space-lg);
}

.fail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: all 0.2s;
}

.fail-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.fail-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.fail-icon svg {
  width: 24px;
  height: 24px;
  stroke: #DC2626;
  stroke-width: 2;
  fill: none;
}

.fail-card h3 {
  font-size: 16px;
  margin-bottom: var(--space-xs);
}

.fail-card p {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* Framework Steps */
.framework-steps {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.framework-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

/* Use Cases Grid 8 */
.usecases-grid-8 {
  display: grid;
  gap: var(--space-lg);
}

/* Deliverables Grid */
.deliverables-grid {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.deliverables-col h3 {
  font-size: 18px;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary);
}

.deliverables-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.deliverables-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.deliverables-list svg {
  width: 20px;
  height: 20px;
  stroke: var(--success);
  stroke-width: 3;
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.deliverables-list span {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.deliverables-note {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

/* Engagement Grid */
.engagement-grid {
  display: grid;
  gap: var(--space-lg);
}

.engagement-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  position: relative;
}

.engagement-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.engagement-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}

.engagement-header {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.engagement-header h3 {
  font-size: 20px;
  margin-bottom: var(--space-xs);
}

.engagement-subtitle {
  font-size: 14px;
  color: var(--muted);
}

.engagement-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.engagement-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 14px;
  color: var(--text);
}

.engagement-feature svg {
  width: 16px;
  height: 16px;
  stroke: var(--success);
  stroke-width: 3;
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.engagement-cta {
  text-align: center;
}

.engagement-note {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-top: var(--space-lg);
}

/* AI Consulting Responsive */
@media (min-width: 640px) {
  .fail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .framework-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .usecases-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }

  .deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .engagement-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .fail-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .usecases-grid-8 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .framework-steps {
    grid-template-columns: repeat(5, 1fr);
  }

  .framework-step {
    flex-direction: column;
    text-align: center;
  }

  .framework-step .step-number {
    margin: 0 auto var(--space-md);
  }
}

/* ========================================
   COOKIE CONSENT
======================================== */

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: var(--space-lg);
  z-index: 9998;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
}

.cookie-banner-content {
  flex: 1;
  min-width: 280px;
}

.cookie-banner-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.cookie-banner-title svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

.cookie-banner-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Cookie Buttons */
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.cookie-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.cookie-btn-primary {
  background: var(--primary);
  color: white;
}

.cookie-btn-primary:hover {
  background: var(--primary-dark);
}

.cookie-btn-secondary {
  background: var(--light-alt);
  color: var(--dark);
  border: 1px solid var(--border);
}

.cookie-btn-secondary:hover {
  background: var(--border);
}

.cookie-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.cookie-btn-outline:hover {
  background: var(--light-alt);
  border-color: var(--muted);
}

/* Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Preferences Modal */
.cookie-preferences-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
}

.cookie-modal-overlay.visible .cookie-preferences-modal {
  transform: scale(1) translateY(0);
}

.cookie-modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
}

.cookie-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--light-alt);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cookie-modal-close:hover {
  background: var(--border);
}

.cookie-modal-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.cookie-modal-close svg {
  width: 18px;
  height: 18px;
}

.cookie-modal-body {
  padding: var(--space-lg);
  overflow-y: auto;
  flex: 1;
}

.cookie-modal-intro {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.cookie-modal-intro a {
  color: var(--primary);
  text-decoration: underline;
}

/* Cookie Category */
.cookie-category {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.cookie-category:last-of-type {
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.cookie-category-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle-wrapper {
  position: relative;
  flex-shrink: 0;
}

.cookie-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-label {
  display: block;
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.cookie-toggle-label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.cookie-toggle-input:checked + .cookie-toggle-label {
  background: var(--primary);
}

.cookie-toggle-input:checked + .cookie-toggle-label::after {
  transform: translateX(22px);
}

.cookie-toggle-input:focus-visible + .cookie-toggle-label {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.cookie-toggle-input:disabled + .cookie-toggle-label {
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-toggle-input:disabled:checked + .cookie-toggle-label {
  background: var(--muted);
}

.cookie-always-on {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

/* Modal Footer */
.cookie-modal-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
  background: var(--light-alt);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: flex-end;
}

/* Footer Cookie Link */
.footer-cookie-link {
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s ease;
  font-family: inherit;
}

.footer-cookie-link:hover,
.footer-cookie-link:focus {
  color: var(--primary-light);
}

.footer-cookie-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Screen Reader Only */
.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;
}

/* Cookie Consent Responsive */
@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-banner-actions .cookie-btn {
    width: 100%;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
  }
}

/* ==========================================
   MailerLite Consent Checkbox Styles
   ========================================== */

.form-group-checkbox {
  margin-top: 1rem;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-input {
  /* Hide native checkbox but keep accessible */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted, #94a3b8);
}

.checkbox-box {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border-color, #475569);
  border-radius: 0.25rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-top: 0.125rem;
}

/* Checkmark */
.checkbox-box::after {
  content: '';
  width: 0.5rem;
  height: 0.75rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}

/* Checked state */
.checkbox-input:checked + .checkbox-label .checkbox-box {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
}

.checkbox-input:checked + .checkbox-label .checkbox-box::after {
  transform: rotate(45deg) scale(1);
}

/* Focus state */
.checkbox-input:focus + .checkbox-label .checkbox-box {
  outline: 2px solid var(--primary-light, #3b82f6);
  outline-offset: 2px;
}

/* Error state */
.checkbox-input[aria-invalid="true"] + .checkbox-label .checkbox-box {
  border-color: var(--error, #ef4444);
}

/* Error message */
.form-error {
  display: block;
  color: var(--error, #ef4444);
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  padding-left: 2rem;
}

/* Hover state */
.checkbox-label:hover .checkbox-box {
  border-color: var(--border-hover, #64748b);
}

.checkbox-input:checked + .checkbox-label:hover .checkbox-box {
  background: var(--primary-dark, #1d4ed8);
  border-color: var(--primary-dark, #1d4ed8);
}

/* Responsive */
@media (max-width: 640px) {
  .checkbox-label {
    font-size: 0.8125rem;
  }
  
  .checkbox-text {
    line-height: 1.4;
  }
}

/* ==========================================
   BLOG
   ========================================== */
.blog-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.blog-card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-top: var(--space-sm);
  transition: color 0.2s;
}

.blog-card-link:hover {
  color: var(--primary-dark);
}

.blog-article {
  max-width: 760px;
  margin: 0 auto;
}

.blog-article h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.blog-article h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.blog-article p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.blog-article ul,
.blog-article ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.blog-article li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: var(--space-xs);
  list-style: disc;
}

.blog-article ol li {
  list-style: decimal;
}

.blog-article a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article a:hover {
  color: var(--primary-dark);
}

.blog-article blockquote {
  border-left: 4px solid var(--primary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--light-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.blog-article blockquote p {
  margin-bottom: 0;
  font-style: italic;
}

/* ---- Blog Prose Styles ---- */

/* H4 */
.blog-article h4 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: clamp(16px, 2vw, 18px);
}

/* Horizontal rule */
.blog-article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-2xl) 0;
}

/* Tables — responsive wrapper via overflow on the element itself */
.blog-article table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: var(--space-lg) 0 var(--space-xl);
  font-size: 15px;
  line-height: 1.5;
}

.blog-article thead {
  background: var(--light-alt);
}

.blog-article th {
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  text-align: left;
  color: var(--dark);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.blog-article td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}

.blog-article tbody tr:last-child td {
  border-bottom: none;
}

.blog-article tbody tr:hover {
  background: rgba(241, 245, 249, 0.5);
}

/* Code blocks (pre > code) — compatible with Prism.js */
.blog-article pre {
  background: var(--dark);
  color: #e2e8f0;
  padding: var(--space-lg);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-lg) 0 var(--space-xl);
  font-size: 14px;
  line-height: 1.6;
  tab-size: 2;
}

.blog-article pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

/* Inline code */
.blog-article code {
  background: var(--light-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  color: var(--dark);
}

/* When Prism is active, let it fully control background + colors */
.blog-article pre[class*="language-"] {
  background: #f5f2f0;
  color: #000;
}

.blog-article pre[class*="language-"] code {
  background: none;
  color: inherit;
}

/* ---- End Blog Prose Styles ---- */

.blog-hero-meta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-top: var(--space-md);
}

/* ==========================================
   NAV DROPDOWN (Desktop header only)
   ========================================== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
  display: flex;
  align-items: center;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

/* Hover / focus / open states — match .main-nav a:hover exactly */
.main-nav .nav-dropdown-toggle:hover,
.main-nav .nav-dropdown-toggle:focus-visible,
.main-nav .nav-dropdown:hover > .nav-dropdown-toggle,
.main-nav .nav-dropdown-toggle[aria-expanded="true"] {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}

.main-nav .nav-dropdown-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Caret removed — hidden as fallback */
.nav-caret {
  display: none;
}

/* --- Dropdown menu panel (closed by default) --- */
.main-nav .nav-dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 8px;
  z-index: 999;

  /* Force vertical list (override main-nav ul flex) */
  flex-direction: column;
  align-items: stretch;
  gap: 0;

  list-style: none;
  margin-left: 0;
  padding: 10px;

  min-width: 260px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Open on hover + keyboard focus (desktop only) */
@media (min-width: 992px) {
  .main-nav .nav-dropdown:hover > .nav-dropdown-menu,
  .main-nav .nav-dropdown:focus-within > .nav-dropdown-menu {
    display: flex;
  }
}

/* Click fallback (aria-expanded) */
.main-nav .nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu {
  display: flex;
}

.main-nav .nav-dropdown-menu li {
  width: 100%;
}

.main-nav .nav-dropdown-menu li a {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}

.main-nav .nav-dropdown-menu li a:hover {
  background: rgba(0,0,0,0.06);
  color: var(--primary);
}

/* Hover buffer: invisible bridge between button and menu */
@media (min-width: 992px) {
  .nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 12px;
  }
}

/* ==========================================
   BLOG PAGINATION
   ========================================== */
.blog-pagination {
  margin-top: 60px;
  text-align: center;
}

.blog-pagination ul {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
}

.blog-pagination a {
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  transition: background 0.15s;
}

.blog-pagination a:hover {
  background: rgba(37, 99, 235, 0.16);
}

.blog-pagination .pagination-current span {
  background: var(--primary);
  color: #fff;
}

.blog-pagination .disabled span {
  opacity: 0.4;
}

/* ========================================
   BLOG RESPONSIVE IMPROVEMENTS
   Mobile-first: base → 481 px → 992 px
   Scoped with blog-specific selectors so
   service / homepage layouts are unaffected.
======================================== */

/* ---- Base (mobile-first) ---- */

/* Blog article hero — center content + reduce mobile padding.
   :has(.blog-hero-meta) ensures service-page heroes are untouched. */
.service-hero:has(.blog-hero-meta) {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-2xl);
}

.service-hero:has(.blog-hero-meta) h1 {
  font-size: clamp(26px, 5vw, 48px);
}

/* Hero description — constrain width + center */
.service-hero:has(.blog-hero-meta) > .container > p:not(.blog-hero-meta) {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Hero meta — add bottom spacing before H1 */
.blog-hero-meta {
  margin-bottom: var(--space-sm);
}

/* Blog article body — readable measure (72ch ≈ 720 px) */
.blog-article {
  max-width: 72ch;
}

/* Article typography — improved line-height */
.blog-article p,
.blog-article li {
  line-height: 1.8;
}

/* Article H2 — tighter mobile scale */
.blog-article h2 {
  font-size: clamp(22px, 3.5vw, 32px);
}

/* Remove top margin when H2 is the first element */
.blog-article h2:first-child {
  margin-top: 0;
}

/* Blog index card meta — uppercase badge style */
.solution-card .blog-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Blog card link — larger tap target */
.blog-card-link {
  padding: var(--space-xs) 0;
}

/* FAQ — ensure 48 px min tap target on mobile */
.faq-item summary {
  min-height: 48px;
}

/* Related service pills — minimum touch target */
.related-links .related-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- Tablet (≥ 481 px) ---- */
@media (min-width: 481px) {
  /* Blog article hero — moderate padding */
  .service-hero:has(.blog-hero-meta) {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }

  /* Slightly larger body text on wider viewports */
  .blog-article p,
  .blog-article li {
    font-size: 17px;
  }

  .service-hero:has(.blog-hero-meta) > .container > p:not(.blog-hero-meta) {
    font-size: 17px;
  }
}

/* ---- Desktop (≥ 992 px) ---- */
@media (min-width: 992px) {
  /* Blog article hero — generous desktop padding */
  .service-hero:has(.blog-hero-meta) {
    padding: var(--space-3xl) 0 var(--space-4xl);
  }

  .service-hero:has(.blog-hero-meta) h1 {
    font-size: clamp(36px, 4vw, 48px);
  }

  .service-hero:has(.blog-hero-meta) > .container > p:not(.blog-hero-meta) {
    font-size: 18px;
  }

  /* Article H2 — slightly larger on desktop */
  .blog-article h2 {
    font-size: clamp(26px, 3vw, 36px);
  }
}

/* ========================================
   MOBILE ACCORDION NAV
======================================== */
.mobile-accordion {
  border-radius: var(--radius);
}

/* Toggle button — matches .mobile-nav-link styling */
.mobile-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, color 0.2s;
}

.mobile-accordion-toggle:hover {
  background: var(--light-alt);
  color: var(--primary);
}

.mobile-accordion-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Chevron icon rotation */
.mobile-accordion-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mobile-accordion.is-open > .mobile-accordion-toggle > .mobile-accordion-chevron {
  transform: rotate(180deg);
}

/* Submenu — animated max-height */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-accordion.is-open > .mobile-submenu {
  max-height: 600px;
}

/* Submenu links */
.mobile-submenu-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-xl);
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.mobile-submenu-link:hover {
  background: var(--light-alt);
  color: var(--primary);
}

.mobile-submenu-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Active states for accordion toggle + submenu links */
.mobile-accordion-toggle.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

.mobile-submenu-link.active {
  color: var(--primary);
  font-weight: 500;
}

