:root {
  /* Color Palette - Educational, Warm, and Professional */
  --color-primary: #3b82f6; /* Trusting Blue */
  --color-secondary: #10b981; /* Growth Green */
  --color-accent: #f59e0b; /* Friendly Amber */
  --color-text-main: #1f2937;
  --color-text-muted: #4b5563;
  --color-bg-light: #f9fafb;
  --color-white: #ffffff;
  --color-warm-bg: #fffcf0; /* Very soft warm yellow for Page 1 */
  
  /* Spacing */
  --wf-space-xs: 8px;
  --wf-space-sm: 16px;
  --wf-space-md: 24px;
  --wf-space-lg: 40px;
  --wf-space-xl: 64px;
  --wf-space-2xl: 80px;

  /* Typography */
  --font-family-display: 'Outfit', sans-serif;
  --font-family-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-body);
  color: var(--color-text-main);
  background-color: #e5e7eb;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout Containers */
.brochure-container {
  max-width: 1200px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page {
  width: 100%;
  min-height: 100vh;
  background: var(--color-white);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--wf-space-xl) clamp(1rem, 5vw, 4rem);
  flex-grow: 1;
}

/* Page Specific Themes */
.page-front { background-color: var(--color-warm-bg); }
.page-problem { background-color: #f0f7ff; }
.page-workflow { background-color: #ffffff; }
.page-benefits { background-color: #f0fdf4; }

/* Typography Elements */
h1, h2, h3 {
  font-family: var(--font-family-display);
  margin-top: 0;
  line-height: 1.2;
}

.tagline {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--wf-space-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #111827;
  margin-bottom: var(--wf-space-md);
}

.highlight-text {
  color: var(--color-primary);
}

.sub-hero {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin-bottom: var(--wf-space-lg);
}

/* Components */
.placeholder-image {
  background: #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
}

.placeholder-image::after {
  content: attr(data-label);
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
}

.placeholder-image.portrait { aspect-ratio: 3/4; }
.placeholder-image.square { aspect-ratio: 1/1; }

.btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Icon Grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--wf-space-md);
  margin-top: var(--wf-space-xl);
}

.icon-card {
  text-align: center;
  padding: var(--wf-space-md);
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
}

.icon-box {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  color: white;
  border-radius: 16px;
  margin: 0 auto var(--wf-space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Problem-Solution Styles */
.problem-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wf-space-xl);
  margin-top: var(--wf-space-lg);
}

.problem-card {
  background: white;
  padding: var(--wf-space-md);
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.persona-item {
  display: flex;
  gap: var(--wf-space-sm);
  margin-bottom: var(--wf-space-md);
}

.persona-icon {
  width: 48px;
  height: 48px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Workflow Visualization */
.workflow-track {
  display: flex;
  flex-direction: column;
  gap: var(--wf-space-lg);
  position: relative;
  margin-top: var(--wf-space-xl);
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: var(--wf-space-xl);
  position: relative;
}

.workflow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 32px;
  top: 64px;
  height: calc(100% - 32px);
  border-left: 2px dashed var(--color-primary);
  opacity: 0.3;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
  z-index: 2;
}

.step-content {
  flex-grow: 1;
}

/* Benefits Layout */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--wf-space-md);
}

.benefit-box {
  padding: var(--wf-space-md);
  border-radius: 20px;
  background: white;
}

.benefit-box h3 {
  color: var(--color-secondary);
  margin-bottom: var(--wf-space-sm);
}

.impact-stats {
  margin-top: var(--wf-space-xl);
  display: flex;
  justify-content: space-around;
  background: var(--color-text-main);
  color: white;
  padding: var(--wf-space-xl) var(--wf-space-md);
  border-radius: 24px;
  text-align: center;
}

.stat-item h4 {
  font-size: 2.5rem;
  margin: 0;
  color: var(--color-secondary);
}

/* Mobile View Overrides */
.mobile-body {
  background-color: white;
}
.mobile-body .page {
  box-shadow: none;
  min-height: auto;
}
.mobile-body .brochure-container {
  margin: 0;
  gap: 0;
}
.mobile-body .container {
  padding: var(--wf-space-lg) var(--wf-space-sm);
}

/* Responsive */
@media (max-width: 768px) {
  .problem-section, .benefits-grid {
    grid-template-columns: 1fr;
  }
  .workflow-step {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--wf-space-sm);
  }
  .workflow-step:not(:last-child)::after {
    left: 32px;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .impact-stats {
    flex-direction: column;
    gap: var(--wf-space-md);
  }
}
