:root {
  /* Variante 2 - Salmon Accent for Stretch Pages */
  /* Primary Colors */
  --primary-black: #0D1321;      /* Main text, headers */
  --primary-accent: #FF9178;      /* Salmon - CTAs, links, important elements */

  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F0EBD8;        /* Eggshell - sections */
  --bg-tertiary: #F8F9FA;         /* Very light gray */

  /* Text */
  --text-primary: #0D1321;
  --text-secondary: #3C4E68;
  --text-muted: #6B7280;

  /* Borders & Dividers */
  --border-color: #E5E7EB;

  /* State Colors */
  --hover-accent: #FF7A5C;        /* Darker salmon for hover */

  /* Legacy Support - mapped to new colors */
  --stretch-bg: #f9fafb;
  --stretch-accent: var(--primary-accent);
  --stretch-secondary: var(--text-secondary);
  --stretch-warning: #f59e0b;
  --ink: var(--text-primary);
}

/* Base styles */
html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  background: var(--stretch-bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

/* Enhanced typography */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Custom button styles */
.btn-stretch-primary {
  background: linear-gradient(135deg, var(--primary-accent), var(--hover-accent));
  border: none;
  border-radius: 1rem;
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 145, 120, 0.3);
}

.btn-stretch-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 145, 120, 0.4);
}

.btn-stretch-secondary {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  color: var(--ink);
  font-weight: 600;
  padding: 1rem 2rem;
  transition: all 0.2s ease;
}

.btn-stretch-secondary:hover {
  border-color: var(--stretch-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 145, 120, 0.1);
}

/* Enhanced card styles */
.stretch-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.stretch-card:hover {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.stretch-price-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.stretch-price-card:hover {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 640px) {
  .stretch-price-card {
    padding: 1.75rem;
  }
  .stretch-price-card .text-4xl {
    font-size: 1.75rem;
  }
}

.progress-pill {
  font-size: 0.7rem;
}

/* Problem section enhancements */
#problem .stretch-card {
  position: relative;
  overflow: hidden;
}

#problem .stretch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-accent), var(--hover-accent));
}

/* Benefits section animations */
.benefit-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #FFF5F2, #FFE8E3);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Testimonial enhancements */
.testimonial-card {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: 2rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--stretch-accent);
  opacity: 0.3;
}

/* Process step enhancements */
.process-step {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -2rem;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--stretch-accent), transparent);
  transform: translateY(-50%);
}

.process-step:last-child::after {
  display: none;
}

/* CTA section enhancements */
.cta-strong {
  background: linear-gradient(135deg, #FFF5F2, #FFE8E3);
  border: 2px solid var(--stretch-accent);
  position: relative;
  overflow: hidden;
}

.cta-strong::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 145, 120, 0.1), transparent 70%);
  animation: pulse-gentle 4s ease-in-out infinite;
}

@keyframes pulse-gentle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Hero section improvements */
.hero-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 242, 0.95));
  backdrop-filter: blur(10px);
}

/* Navigation enhancements */
.stretch-nav {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.9);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .stretch-card {
    padding: 1.5rem;
  }
  
  .process-step::after {
    display: none;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .benefit-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

/* Focus styles for accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--stretch-accent);
  outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
  background: rgba(255, 145, 120, 0.2);
  color: var(--ink);
}

/* Loading state for buttons */
.btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Subtle animations for content reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced gradient backgrounds for variety */
.gradient-emerald {
  background: linear-gradient(135deg, #FFF5F2, #FFE8E3);
}

.gradient-neutral {
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.gradient-warm {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

/* Icon hover effects */
.icon-hover {
  transition: transform 0.3s ease;
}

.icon-hover:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Simplified color scheme utilities */
.bg-primary {
  background-color: var(--stretch-accent);
}

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

.border-primary {
  border-color: var(--stretch-accent);
}

.bg-secondary {
  background-color: var(--stretch-secondary);
}

.text-secondary {
  color: var(--stretch-secondary);
}

.bg-warning {
  background-color: var(--stretch-warning);
}

.text-warning {
  color: var(--stretch-warning);
}

/* Muted interaction states */
.btn-neutral {
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  color: var(--ink);
  transition: all 0.2s ease;
}

.btn-neutral:hover {
  background: #e5e7eb;
  border-color: var(--stretch-accent);
  transform: translateY(-1px);
}

/* Scroll chapter cards - ensure equal heights */
.scroll-chapter {
  align-items: stretch;
}

.scroll-chapter > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Ensure both the text card and image wrapper have the same height */
.scroll-chapter > div > div {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  height: 100%;
  flex: 1 1 auto;
}

.scroll-chapter img {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

/* For image containers, ensure they fill the parent */
.scroll-chapter > div.relative {
  display: flex;
  flex-direction: column;
}

/* Mobile responsive - stack vertically with auto heights */
@media (max-width: 767px) {
  .scroll-chapter > div > div,
  .scroll-chapter img {
    min-height: 300px;
  }
}
