/* ===== SECTION AND HERO LAYOUT STYLES ===== */

/*
SECTION STYLING SYSTEM:
Creates visual rhythm through alternating backgrounds, consistent spacing,
and specialized treatments for hero and call-to-action sections across all pages.

APPROACH:
- Hero sections: Bold gradient backgrounds with extra spacing
- Standard sections: White/gray backgrounds with consistent padding
- CTA sections: Prominent gradient backgrounds for conversion focus
- Affiliate pages: Green accent variants for brand distinction
- Spacing: Proportional scales from mobile to desktop
- Rhythm: Clear visual separation through backgrounds and spacing

DESIGN PRINCIPLE:
Each major section is a self-contained visual unit with its own background,
spacing, and styling. This creates clear rhythm and hierarchy across pages
while maintaining consistent spacing and alignment.
*/

/* ===== HERO SECTION STYLING ===== */

/*
Main hero sections for landing and affiliate pages
Bold gradient backgrounds with maximum visual impact
Extra vertical spacing for prominence
*/

/* --- HERO SECTION UPDATES --- */

.hero {
  background: #ffffff;
  color: #1f2937;
  padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

/* H1 - Full width, centered, above everything */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #111827;
  margin: 0 auto var(--spacing-xl) auto; /* Centered with bottom margin */
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 1200px; /* Match container width */
}

/* Hero content - contains text + visual side-by-side on desktop */
.hero-content {
  display: flex;
  flex-direction: column; /* Stacked on mobile by default */
  align-items: center;
  gap: var(--spacing-2xl);
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop: Side-by-side layout */
@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
  }

  .hero-text {
    flex: 0 0 45%; /* Takes 45% of width */
    max-width: 500px;
    text-align: left; /* Left-aligned on desktop */
  }

  .hero-visual {
    flex: 0 0 55%; /* Takes 55% of width */
    max-width: 650px;
  }
}

/* Hero text section */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centered on mobile */
  gap: var(--spacing-md);
  width: 100%;
}

/* Hero subtitle */
.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  color: #6b7280;
  margin: 0 0 var(--spacing-md) 0;
  text-align: center; /* Centered on mobile */
}

@media (min-width: 1024px) {
  .hero-subtitle {
    text-align: left; /* Left-aligned on desktop */
  }
}

/* Button group */
.button-group {
  display: flex;
  justify-content: center; /* Centered on mobile */
  width: 100%;
}

@media (min-width: 1024px) {
  .button-group {
    justify-content: flex-start; /* Left-aligned on desktop */
  }
}

/* Hero trust text */
.hero-trust {
  font-size: 0.95rem;
  color: #6b7280;
  margin: var(--spacing-sm) 0 0 0;
  text-align: center; /* Centered on mobile */
}

/* Hero visual section */
.hero-visual {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  position: relative;
}

/* --- NEW: Feature Pills Styles --- */
.feature-pills {
  display: flex;
  flex-direction: row; /* Changed from column */
  flex-wrap: wrap; /* Allow wrapping */
  gap: 0.75rem; /* Tighter spacing */
  width: 100%;
  margin-bottom: var(--spacing-lg);
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f9fafb; /* Subtle background */
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s ease;
  width: auto;
}

.pill:hover {
  background: #f3f4f6;
  transform: translateX(4px); /* Subtle hover effect */
}

.pill-icon {
  width: 18px;
  height: 18px;
  color: #7c3aed; /* Purple check */
  flex-shrink: 0;
}

/* Button Group - Left aligned on desktop */
.button-group {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centered on mobile */
  gap: var(--spacing-sm);
  width: 100%;
  margin-top: var(--spacing-md);
}

.btn-primary {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Hero trust - smaller, subtle */
.hero-trust {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0;
  text-align: center;
}

/* Hero Visual Adjustment */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 520px;
  aspect-ratio: 16/9; /* Modern widescreen ratio */
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: var(--border-radius-xl, 16px);
  color: #9ca3af;
  font-size: 1rem;
  margin-top: var(--spacing-md);
  border: 1px solid #d1d5db;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1); /* Nice soft shadow */
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .feature-pills {
    gap: 8px;
  }

  .pill {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}
/* ===== STANDARD SECTION STYLING ===== */

/*
Regular page sections with consistent spacing
White backgrounds with clean appearance
Applied to features, testimonials, FAQ sections
*/

.section {
  background: #ffffff;
  padding: var(--spacing-2xl) var(--spacing-lg);
  position: relative;
}

.section-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

/* Responsive section padding */
@media (max-width: 640px) {
  .section {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .section-container {
    gap: var(--spacing-lg);
  }
}

@media (min-width: 768px) {
  .section {
    padding: var(--spacing-2xl) var(--spacing-xl);
  }
}

@media (min-width: 1024px) {
  .section {
    padding: var(--spacing-3xl) var(--spacing-xl);
  }
}

/* ===== SECTION-SPECIFIC STYLING ===== */

/*
Styling for specific section types
Built on standard section but with unique characteristics
*/

/* Social Proof Section */
.social-proof {
  background: #ffffff;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

/* Solution Section - Condensed Single Row Design */
.solution {
  background: #ffffff;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.solution-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

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

.solution-step {
  font-size: 0.875rem;
  font-weight: 600;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.solution-badge {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-md);
  white-space: nowrap;
}

.solution-headline {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.solution-tagline {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.metric-comparison {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  flex-wrap: wrap;
}

.metric-item {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.metric-label {
  font-size: 0.8125rem;
  color: #6b7280;
  text-align: center;
}

.metric-before {
  opacity: 0.7;
}

.metric-after {
  opacity: 1;
}

.metric-arrow {
  color: #d1d5db;
  font-weight: 700;
  flex-shrink: 0;
}

.extension-placeholder {
  background: #fafbfc;
  border: 1px dashed #d1d5db;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: var(--spacing-md);
  min-height: auto;
  line-height: 1.6;
  text-align: left;
}

/* Responsive solution grid */
@media (max-width: 640px) {
  .solution {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .solution-grid {
    gap: var(--spacing-md);
  }

  .solution-card {
    padding: var(--spacing-md);
  }

  .metric-comparison {
    gap: var(--spacing-sm);
  }

  .metric-value {
    font-size: 1.125rem;
  }

  .solution-headline {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .solution {
    padding: var(--spacing-3xl) var(--spacing-xl);
  }

  .solution-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }

  .solution-card {
    padding: var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .solution {
    padding: var(--spacing-4xl) var(--spacing-xl);
  }

  .solution-card {
    padding: var(--spacing-xl);
  }

  .metric-comparison {
    gap: var(--spacing-lg);
  }
}

/* Pricing Section */
.pricing {
  background: #ffffff;
  padding: var(--spacing-3xl) var(--spacing-lg);
}

/* Testimonials Section */
/* Differentiators Section - Why UGC Reach is Different */
.differentiators {
  background: #f9fafb;
  padding: var(--spacing-3xl) var(--spacing-lg);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.differentiator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.differentiator-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  text-align: center;
  transition: all var(--transition-base);
}

.differentiator-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.feature-description {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Responsive differentiator grid */
@media (max-width: 640px) {
  .differentiators {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .differentiator-grid {
    gap: var(--spacing-md);
  }

  .differentiator-card {
    padding: var(--spacing-md);
  }

  .feature-icon {
    font-size: 2rem;
    height: 48px;
  }

  .feature-title {
    font-size: 1rem;
  }

  .feature-description {
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .differentiators {
    padding: var(--spacing-3xl) var(--spacing-xl);
  }

  .differentiator-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .differentiator-card {
    padding: var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .differentiators {
    padding: var(--spacing-4xl) var(--spacing-xl);
  }

  .differentiator-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
  }

  .differentiator-card {
    padding: var(--spacing-xl);
  }

  .feature-icon {
    font-size: 3rem;
    height: 64px;
  }

  .feature-title {
    font-size: 1.25rem;
  }
}

/* Testimonials Section with Carousel */
.testimonials {
  background: #ffffff;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

/* Testimonial grid - 3 columns */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

/* Testimonial card */
.testimonial-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Responsive testimonial card grid */
@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-card {
    padding: var(--spacing-xl);
  }
}

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

/* FAQ Section */
.faq {
  background: #ffffff;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

/* How It Works Section (Affiliate) */
.how-it-works {
  background: #ffffff;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

/* The Math Section (Affiliate) */
.the-math {
  background: #f9fafb;
  padding: var(--spacing-2xl) var(--spacing-lg);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

/* ===== FINAL CTA SECTION STYLING ===== */

/*
Final call-to-action sections with bold gradient backgrounds
Maximum visual prominence for conversion focus
Positioned at page bottom for call-to-action
*/

.final-cta {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* CTA Title */
.final-cta-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

/* CTA Subtitle/Description */
.final-cta-description {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  opacity: 0.95;
}

/* CTA Subtitle */
.final-cta-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
  margin: 0;
}

/* CTA Trust/Social Proof */
.final-cta-trust {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--spacing-md);
}

/* CTA Button Group */
.final-cta .button-group {
  margin-top: var(--spacing-lg);
  flex-direction: column;
}

@media (min-width: 640px) {
  .final-cta .button-group {
    flex-direction: row;
    justify-content: center;
  }
}

/* Affiliate page final CTA variant - green gradient */
.final-cta-affiliate {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

/* Responsive CTA spacing */
@media (max-width: 640px) {
  .final-cta {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .final-cta-container {
    gap: var(--spacing-md);
  }

  .final-cta-title {
    font-size: 1.75rem;
  }

  .final-cta-description {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .final-cta {
    padding: var(--spacing-3xl) var(--spacing-xl);
  }

  .final-cta-container {
    gap: var(--spacing-lg);
  }

  .final-cta-title {
    font-size: 2.5rem;
  }

  .final-cta-description {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .final-cta {
    padding: var(--spacing-4xl) var(--spacing-xl);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .final-cta-container {
    gap: var(--spacing-xl);
  }
}

/* ===== SUCCESS AND CANCEL PAGE SECTIONS ===== */

/*
Specialized sections for post-payment pages
Success and cancellation messaging with empathetic tone
*/

.success-hero,
.cancel-hero {
  background: #ffffff;
  padding: var(--spacing-3xl) var(--spacing-lg);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-container,
.cancel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xl);
  max-width: 600px;
  text-align: center;
}

/* Success Page Styling */
.success-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: var(--border-radius-full);
  margin-bottom: var(--spacing-md);
}

.success-icon {
  color: #10b981;
  font-size: 2rem;
}

.success-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1f2937;
  margin: 0;
}

.success-subtitle {
  font-size: 1.0625rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* Cancel Page Styling */
.cancel-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-radius: var(--border-radius-full);
  margin-bottom: var(--spacing-md);
}

.cancel-icon {
  color: #dc2626;
  font-size: 2rem;
}

.cancel-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1f2937;
  margin: 0;
}

.cancel-subtitle {
  font-size: 1.0625rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* Responsive success/cancel pages */
@media (max-width: 640px) {
  .success-hero,
  .cancel-hero {
    padding: var(--spacing-2xl) var(--spacing-md);
    min-height: auto;
  }

  .success-container,
  .cancel-container {
    gap: var(--spacing-md);
  }

  .success-icon-wrapper,
  .cancel-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .success-icon,
  .cancel-icon {
    font-size: 1.5rem;
  }

  .success-title,
  .cancel-title {
    font-size: 1.75rem;
  }

  .success-subtitle,
  .cancel-subtitle {
    font-size: 1rem;
  }
}

/* ===== TEXT ALIGNMENT UTILITIES ===== */

/*
Text alignment for different section contexts
Centered for hero/CTA sections
Left-aligned for content sections
*/

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

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ===== SECTION TITLE AND SUBTITLE STYLING ===== */

/*
Section headings and subheadings
Consistent typography across all sections
*/

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  color: #6b7280;
  text-align: center;
  margin: 0 0 var(--spacing-xl) 0;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Left-aligned section title/subtitle (if needed) */
.section-title.text-left,
.section-subtitle.text-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* ===== BACKGROUND COLOR VARIANTS ===== */

/*
Background variations for visual rhythm
White, light gray, and gradient options
*/

.bg-white {
  background: #ffffff;
}

.bg-light {
  background: #f9fafb;
}

.bg-primary-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
}

.bg-accent-gradient {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

/* ===== SECTION DIVIDERS ===== */

/*
Visual separators between sections
Subtle borders for definition
*/

.section-divider {
  height: 1px;
  background: #e5e7eb;
  margin: var(--spacing-xl) 0;
}

/* ===== VISUAL RHYTHM & SPACING ===== */

/*
Ensures consistent spacing between major sections
Creates visual rhythm across pages
*/

/* Large spacing between major sections */
.section + .section,
.section + .final-cta,
.hero + .section,
.final-cta + .footer {
  margin-top: 0;
}

/* Container max-width and centering */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* =========================================
   ZIG-ZAG SOLUTION LAYOUT (New Implementation)
   ========================================= */

/* Main Container for the Rows */
.solution-rows {
  display: flex;
  flex-direction: column;
  gap: 5rem; /* Space between each step */
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

/* Individual Row (Mobile Default: Stacked) */
.solution-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

/* DESKTOP LAYOUT (Zig-Zag) */
@media (min-width: 1024px) {
  .solution-row {
    grid-template-columns: 1fr 1fr; /* Split 50/50 */
    gap: 5rem; /* Large gap between text and visual */
  }

  /* Flip the order of every even row (2nd, 4th...) */
  .solution-row:nth-child(even) .row-content {
    order: 2;
  }
  .solution-row:nth-child(even) .row-visual {
    order: 1;
  }

  /* Add a connector line behind the visual steps */
  .solution-rows {
    position: relative;
  }

  .solution-rows::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: repeating-linear-gradient(
      to bottom,
      #e5e7eb 0,
      #e5e7eb 10px,
      transparent 10px,
      transparent 20px
    );
    transform: translateX(-50%);
    z-index: -1;
  }
}

/* --- ROW VISUAL STYLING --- */
.row-visual {
  background: #ffffff;
  border: 1px solid var(--color-gray-200); /* Fallback #e5e7eb */
  border-radius: 24px;
  padding: 1rem; /* Padding inside the frame */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
  overflow: hidden;
  position: relative;
}

.row-visual:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary-300); /* Fallback #d8b4fe */
}

/* Override Animation Container Size for Zig-Zag */
.row-visual .animation-container {
  height: 400px; /* Make it taller to breathe! */
  width: 100%;
  margin: 0;
  /* Ensure internal content centers */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- ROW CONTENT STYLING --- */
.step-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.solution-step-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary-600); /* Fallback #9333ea */
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.solution-badge-pill {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.row-headline {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.row-desc {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Inline Metric Styling */
.inline-metric {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .row-headline {
    font-size: 1.5rem;
  }
  .row-desc {
    font-size: 1rem;
  }
  .row-visual .animation-container {
    height: 320px;
  } /* Slightly smaller on mobile */
  .solution-rows {
    gap: 4rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }
}

/* ===== ACCESSIBILITY ===== */

/*
Ensures sections remain accessible
Proper contrast and focus handling
*/

@media (prefers-reduced-motion: reduce) {
  .hero,
  .final-cta {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    animation: none;
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  .hero,
  .final-cta {
    border: 2px solid #ffffff;
  }

  .section {
    border: 1px solid #1f2937;
  }
}

/* ===== PRINT STYLES ===== */

/*
Ensure sections print properly
Backgrounds may be removed for print efficiency
*/

@media print {
  .hero,
  .final-cta {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    page-break-inside: avoid;
  }

  .section {
    page-break-inside: avoid;
  }
}

@media (max-width: 640px) {
  /* Reduce container padding to almost zero for max width */
  #hero.hero {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2rem; /* Reduce top space slightly */
  }

  /* Allow content to go edge-to-edge if needed */
  .hero-content {
    width: 100%;
    padding: 0;
    gap: 2rem;
  }

  /* Ensure visual takes full width available */
  .hero-visual {
    width: 100%;
    margin-top: 1rem;
    /* Optional: Negative margin to pull it wider than the text padding */
    width: calc(100% + 1rem);
  }
}
