/* ============================================
   CarePath Digital - Main Stylesheet
   ============================================ */

/* --------------------------------------------
   CSS Custom Properties (Variables)
   -------------------------------------------- */
:root {
  /* Colors - Sleek & Authoritative */
  --color-primary: #6366F1;
  --color-primary-dark: #4F46E5;
  --color-primary-light: #EEF2FF;
  --color-accent: #06B6D4;
  --color-accent-dark: #0891B2;
  --color-accent-light: #ECFEFF;
  --color-dark: #0F172A;
  --color-dark-soft: #1E293B;
  --color-text-primary: #0F172A;
  --color-text-secondary: #475569;
  --color-text-light: #94A3B8;
  --color-text-on-dark: #F8FAFC;
  --color-background: #FFFFFF;
  --color-background-alt: #F8FAFC;
  --color-border: #E2E8F0;
  --color-success: #10B981;
  --color-error: #EF4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A855F7 100%);
  --gradient-accent: linear-gradient(135deg, #06B6D4 0%, #6366F1 100%);
  --gradient-dark: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

  /* Typography - Clean & Modern */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes - More Dramatic Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  --text-5xl: clamp(3rem, 2.5rem + 3vw, 5rem);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows - Softer, more modern */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------
   CSS Reset
   -------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

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

ul, ol {
  list-style: none;
}

/* --------------------------------------------
   Typography
   -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 600;
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  font-weight: 400;
  line-height: 1.6;
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------
   Layout
   -------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

.section {
  padding: var(--spacing-4xl) 0;
  position: relative;
}

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

.section-dark {
  background: var(--gradient-dark);
  color: var(--color-text-on-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-text-on-dark);
}

.section-dark p {
  color: var(--color-text-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-3xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-lg);
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

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

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

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

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

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

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

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

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

/* Text Alignment */
.text-center {
  text-align: center;
}

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

/* --------------------------------------------
   Buttons
   -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  color: white !important;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-border);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--color-background-alt);
  border-color: var(--color-text-secondary);
  box-shadow: none;
}

.btn-white {
  background-color: white;
  color: var(--color-dark);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: white;
  box-shadow: var(--shadow-xl);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

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

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-base);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

/* --------------------------------------------
   Header & Navigation
   -------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

.logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

.mobile-menu-toggle span:nth-child(1) {
  margin-bottom: 6px;
}

.mobile-menu-toggle span:nth-child(3) {
  margin-top: 6px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Main Navigation */
.main-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  padding: var(--spacing-xl);
}

.main-nav.is-open {
  transform: translateX(0);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.nav-list a {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

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

.nav-list .btn {
  margin-top: var(--spacing-md);
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    transform: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-xl);
  }

  .nav-list a {
    font-size: var(--text-sm);
  }

  .nav-list .btn {
    margin-top: 0;
  }
}

/* Body padding for fixed header */
body {
  padding-top: 72px;
}

/* --------------------------------------------
   Hero Section
   -------------------------------------------- */
.hero {
  padding: var(--spacing-4xl) 0;
  background: var(--color-background);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: var(--gradient-glow);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-primary);
  animation: fadeInUp 0.8s ease-out;
}

.hero .hero-content:not(.thank-you) .lead {
  margin-bottom: var(--spacing-2xl);
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 576px) {
  .hero-buttons {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: var(--spacing-4xl) 0 6rem;
  }
}

/* --------------------------------------------
   Cards
   -------------------------------------------- */
.card {
  background-color: var(--color-background);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  color: white;
}

.card-icon > span {
  color: white;
}

.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Feature Card with centered content */
.feature-card {
  text-align: center;
}

.feature-card .card-icon {
  margin: 0 auto var(--spacing-lg);
}

/* --------------------------------------------
   Trust Bar
   -------------------------------------------- */
.trust-bar {
  padding: var(--spacing-2xl) 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background-alt);
}

.trust-stats {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  text-align: center;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.trust-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}

@media (min-width: 768px) {
  .trust-stats {
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing-4xl);
  }
}

/* --------------------------------------------
   Steps / Process
   -------------------------------------------- */
.steps {
  display: grid;
  gap: var(--spacing-xl);
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 80px;
}

.step::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.step p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (min-width: 992px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
  }

  .step {
    padding-left: 0;
    padding-top: 80px;
    text-align: center;
  }

  .step::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --------------------------------------------
   Testimonials
   -------------------------------------------- */
.testimonial {
  background-color: var(--color-background);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-content {
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
  font-weight: 400;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
  margin-bottom: var(--spacing-md);
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  color: white;
  font-size: var(--text-sm);
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 600;
}

.testimonial-title {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* --------------------------------------------
   Pricing Tables
   -------------------------------------------- */
.pricing-cards {
  display: grid;
  gap: var(--spacing-lg);
}

@media (min-width: 992px) {
  .pricing-cards {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.pricing-card {
  background-color: var(--color-background);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  border: 1px solid var(--color-border);
  position: relative;
  transition: all var(--transition-base);
}

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

.pricing-card.featured {
  background: var(--gradient-dark);
  border-color: transparent;
}

.pricing-card.featured .pricing-name,
.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-description,
.pricing-card.featured .pricing-features li {
  color: var(--color-text-on-dark);
}

.pricing-card.featured .pricing-features li::before {
  background-color: var(--color-accent);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: white;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.pricing-card.featured .pricing-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pricing-name {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card.featured .pricing-price {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-price span {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-secondary);
  -webkit-text-fill-color: var(--color-text-secondary);
}

.pricing-card.featured .pricing-price span {
  -webkit-text-fill-color: var(--color-text-light);
}

.pricing-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--spacing-sm);
}

.pricing-features {
  margin-bottom: var(--spacing-xl);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) 0;
  font-size: var(--text-sm);
}

.pricing-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  background-color: var(--color-success);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  flex-shrink: 0;
}

.pricing-features li.not-included::before {
  background-color: var(--color-text-light);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.pricing-features li.not-included {
  color: var(--color-text-light);
}

.pricing-card .btn {
  width: 100%;
}

/* --------------------------------------------
   Forms
   -------------------------------------------- */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-background);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234A5568'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  cursor: pointer;
  font-size: var(--text-sm);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

.form-success {
  text-align: center;
  padding: var(--spacing-2xl);
}

.form-success svg {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-md);
  color: var(--color-success);
}

.form-success h3 {
  color: var(--color-success);
  margin-bottom: var(--spacing-sm);
}

.form-error {
  background-color: #FED7D7;
  color: var(--color-error);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  font-size: var(--text-sm);
}

/* --------------------------------------------
   FAQ Accordion
   -------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
}

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

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding-bottom: var(--spacing-lg);
  color: var(--color-text-secondary);
}

/* --------------------------------------------
   Portfolio Grid
   -------------------------------------------- */
.portfolio-grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

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

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--color-background-alt);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: white;
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-xs);
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
}

/* --------------------------------------------
   Footer
   -------------------------------------------- */
.site-footer {
  background: var(--gradient-dark);
  color: white;
  padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: var(--spacing-md);
  color: white;
}

.footer-brand .logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
  color: white;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --------------------------------------------
   CTA Section
   -------------------------------------------- */
.cta-section {
  background: var(--gradient-dark);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: var(--gradient-glow);
  opacity: 0.5;
  pointer-events: none;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: var(--color-text-light);
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 576px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* --------------------------------------------
   Utility Classes
   -------------------------------------------- */
.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;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

/* Page-specific hero variations */
.hero-small {
  padding: var(--spacing-3xl) 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.hero-small::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: var(--gradient-glow);
  opacity: 0.3;
  pointer-events: none;
}

.hero-small .hero-content {
  position: relative;
  z-index: 1;
}

.hero-small h1 {
  font-size: var(--text-4xl);
  color: white;
}

.hero-small .lead {
  color: var(--color-text-light);
}

/* Two-column layout for forms */
.two-col {
  display: grid;
  gap: var(--spacing-2xl);
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact info box */
.contact-info {
  background-color: var(--color-background-alt);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
}

.contact-info h3 {
  margin-bottom: var(--spacing-lg);
}

.contact-info-item {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  font-family: var(--font-heading);
  margin-bottom: var(--spacing-xs);
}

.contact-info-item span,
.contact-info-item a {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.contact-info-item a:hover {
  color: var(--color-primary);
}

/* --------------------------------------------
   Multi-Step Form
   -------------------------------------------- */
.form-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.progress-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-border);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: all var(--transition-base);
}

.progress-label {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  transition: color var(--transition-base);
}

.progress-step.active .progress-number {
  background-color: var(--color-primary);
  color: white;
}

.progress-step.active .progress-label {
  color: var(--color-primary);
  font-weight: 500;
}

.progress-step.completed .progress-number {
  background-color: var(--color-success);
  color: white;
}

.progress-line {
  width: 40px;
  height: 2px;
  background-color: var(--color-border);
  margin: 0 var(--spacing-xs);
}

@media (min-width: 576px) {
  .progress-line {
    width: 60px;
  }
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.form-step h2 {
  margin-bottom: var(--spacing-sm);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
}

/* --------------------------------------------
   Plan Selector (Step 1)
   -------------------------------------------- */
.plan-selector {
  display: grid;
  gap: var(--spacing-lg);
}

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

.plan-option {
  position: relative;
  cursor: pointer;
}

.plan-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-option-content {
  background-color: var(--color-background);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-fast);
  height: 100%;
}

.plan-option:hover .plan-option-content {
  border-color: var(--color-primary-light);
}

.plan-option input:checked + .plan-option-content {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.plan-option.featured .plan-option-content {
  border-color: var(--color-primary);
}

.plan-option-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: white;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.plan-option-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
}

.plan-option-header h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-sm);
}

.plan-option-price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.plan-option-price span {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-secondary);
}

.plan-option-content ul {
  margin-bottom: var(--spacing-lg);
}

.plan-option-content li {
  font-size: var(--text-sm);
  padding: var(--spacing-xs) 0;
  padding-left: 1.5rem;
  position: relative;
}

.plan-option-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background-color: var(--color-success);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.plan-option-setup {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

/* --------------------------------------------
   Style Selector (Step 2)
   -------------------------------------------- */
.style-selector {
  display: grid;
  gap: var(--spacing-lg);
}

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

.style-option {
  cursor: pointer;
}

.style-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.style-option-content {
  display: block;
  background-color: var(--color-background);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.style-option-content:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.style-option:hover .style-option-content {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.style-demo-link {
  display: inline-block;
  margin-top: var(--spacing-md);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.style-option-content:hover .style-demo-link {
  color: var(--color-primary-dark);
}

.style-option input:checked + .style-option-content {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.style-preview {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.style-preview-header {
  height: 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
}

.style-preview-logo {
  height: 40%;
  width: 25%;
  border-radius: 2px;
}

.style-preview-nav {
  display: flex;
  gap: 6%;
}

.style-preview-nav-item {
  width: 8%;
  height: 30%;
  border-radius: 2px;
}

.style-preview-hero {
  height: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5%;
  position: relative;
}

.style-preview-headline {
  width: 70%;
  height: 12%;
  border-radius: 2px;
  margin-bottom: 4%;
}

.style-preview-subhead {
  width: 50%;
  height: 6%;
  border-radius: 2px;
  margin-bottom: 4%;
}

.style-preview-cta {
  width: 20%;
  height: 10%;
  border-radius: 20px;
}

.style-preview-content {
  padding: 5% 8%;
  display: flex;
  gap: 4%;
  height: 50%;
}

.style-preview-block {
  flex: 1;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6%;
}

.style-preview-block-icon {
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  margin-bottom: 8%;
}

.style-preview-block-title {
  width: 70%;
  height: 8%;
  border-radius: 2px;
  margin-bottom: 6%;
}

.style-preview-block-text {
  width: 90%;
  height: 5%;
  border-radius: 2px;
}

/* Style: Calm & Professional - Sage greens, organic shapes */
.style-calm {
  background: #FAFBF9;
}
.style-calm .style-preview-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E8F0EC;
}
.style-calm .style-preview-logo {
  background: #7BA092;
}
.style-calm .style-preview-nav-item {
  background: #B8A99A;
}
.style-calm .style-preview-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #E8F0EC 100%);
}
.style-calm .style-preview-headline {
  background: #4A5548;
}
.style-calm .style-preview-subhead {
  background: #7A8578;
}
.style-calm .style-preview-cta {
  background: #7BA092;
}
.style-calm .style-preview-block {
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.style-calm .style-preview-block-icon {
  background: linear-gradient(135deg, #E8F0EC 0%, #D4B896 100%);
}
.style-calm .style-preview-block-title {
  background: #4A5548;
}
.style-calm .style-preview-block-text {
  background: #E8F0EC;
}

/* Style: Warm & Welcoming - Earth tones, rounded elements */
.style-warm {
  background: #FFFBF7;
}
.style-warm .style-preview-header {
  background: #FFFFFF;
  border-bottom: 1px solid #FDF6F0;
}
.style-warm .style-preview-logo {
  background: #C17F59;
}
.style-warm .style-preview-nav-item {
  background: #3D3D3D;
}
.style-warm .style-preview-hero {
  background: #FFFBF7;
}
.style-warm .style-preview-headline {
  background: #3D3D3D;
}
.style-warm .style-preview-subhead {
  background: #6B6B6B;
}
.style-warm .style-preview-cta {
  background: #C17F59;
}
.style-warm .style-preview-block {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.style-warm .style-preview-block-icon {
  background: linear-gradient(135deg, #FDF6F0 0%, #7B9E89 100%);
}
.style-warm .style-preview-block-title {
  background: #3D3D3D;
}
.style-warm .style-preview-block-text {
  background: #FDF6F0;
}

/* Style: Modern & Minimal - Clean black/white, sharp lines */
.style-modern {
  background: #FFFFFF;
}
.style-modern .style-preview-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E4E4E7;
}
.style-modern .style-preview-logo {
  background: #18181B;
}
.style-modern .style-preview-nav-item {
  background: #71717A;
}
.style-modern .style-preview-hero {
  background: #FFFFFF;
}
.style-modern .style-preview-headline {
  background: #18181B;
}
.style-modern .style-preview-subhead {
  background: #71717A;
}
.style-modern .style-preview-cta {
  background: #6366F1;
  border-radius: 4px;
}
.style-modern .style-preview-block {
  background: #FAFAFA;
  border: 1px solid #E4E4E7;
  border-radius: 4px;
}
.style-modern .style-preview-block-icon {
  background: #E4E4E7;
  border-radius: 4px;
}
.style-modern .style-preview-block-title {
  background: #18181B;
}
.style-modern .style-preview-block-text {
  background: #E4E4E7;
}

/* Style: Elegant & Refined - Sophisticated, serif-inspired */
.style-elegant {
  background: #FDFCFB;
}
.style-elegant .style-preview-header {
  background: #FFFFFF;
}
.style-elegant .style-preview-logo {
  background: #2C3E50;
}
.style-elegant .style-preview-nav-item {
  background: #7F8C8D;
}
.style-elegant .style-preview-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFCFB 100%);
  border-top: 1px solid #D4C4B0;
}
.style-elegant .style-preview-headline {
  background: #2C3E50;
}
.style-elegant .style-preview-subhead {
  background: #7F8C8D;
}
.style-elegant .style-preview-cta {
  background: #8B7355;
  border-radius: 0;
}
.style-elegant .style-preview-block {
  background: #FDFCFB;
}
.style-elegant .style-preview-block-icon {
  background: linear-gradient(135deg, #F5F3F0 0%, #D4C4B0 100%);
}
.style-elegant .style-preview-block-title {
  background: #2C3E50;
}
.style-elegant .style-preview-block-text {
  background: #F5F3F0;
}

/* Style: Haven - Warm, grounded, safe */
.style-haven {
  background: #FAF7F2;
}
.style-haven .style-preview-header {
  background: #FAF7F2;
  border-bottom: 1px solid #E5DDD5;
}
.style-haven .style-preview-logo {
  background: #5B8984;
}
.style-haven .style-preview-nav-item {
  background: #7A716A;
}
.style-haven .style-preview-hero {
  background: linear-gradient(180deg, #FAF7F2 0%, #F0EAE3 100%);
}
.style-haven .style-preview-headline {
  background: #3D352F;
}
.style-haven .style-preview-subhead {
  background: #7A716A;
}
.style-haven .style-preview-cta {
  background: #B8956A;
  border-radius: 20px;
}
.style-haven .style-preview-block {
  background: #FFFFFF;
  border: 1px solid #E5DDD5;
  border-radius: 12px;
}
.style-haven .style-preview-block-icon {
  background: linear-gradient(135deg, rgba(91,137,132,0.15) 0%, rgba(91,137,132,0.08) 100%);
}
.style-haven .style-preview-block-title {
  background: #3D352F;
}
.style-haven .style-preview-block-text {
  background: #F0EAE3;
}

/* Style: Luxe - Gold, navy, premium */
.style-luxe {
  background: #FAF9F7;
}
.style-luxe .style-preview-header {
  background: #FAF9F7;
  border-bottom: 1px solid #E0DDD8;
}
.style-luxe .style-preview-logo {
  background: #B8860B;
}
.style-luxe .style-preview-nav-item {
  background: #6E6B66;
}
.style-luxe .style-preview-hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
}
.style-luxe .style-preview-headline {
  background: #F5F3F0;
}
.style-luxe .style-preview-subhead {
  background: rgba(245,243,240,0.5);
}
.style-luxe .style-preview-cta {
  background: #B8860B;
  border-radius: 4px;
}
.style-luxe .style-preview-block {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.style-luxe .style-preview-block-icon {
  background: linear-gradient(135deg, rgba(184,134,11,0.15) 0%, rgba(212,175,55,0.1) 100%);
}
.style-luxe .style-preview-block-title {
  background: #2D2D2D;
}
.style-luxe .style-preview-block-text {
  background: #F0EDEA;
}

/* Style: Clarity - Cool, modern, structured */
.style-clarity {
  background: #F8F9FB;
}
.style-clarity .style-preview-header {
  background: #F8F9FB;
  border-bottom: 1px solid #DCE0E6;
}
.style-clarity .style-preview-logo {
  background: #4A6FA5;
  border-radius: 3px;
}
.style-clarity .style-preview-nav-item {
  background: #6B7B8D;
}
.style-clarity .style-preview-hero {
  background: linear-gradient(180deg, #F8F9FB 0%, #EFF1F5 100%);
}
.style-clarity .style-preview-headline {
  background: #1E2A3A;
}
.style-clarity .style-preview-subhead {
  background: #6B7B8D;
}
.style-clarity .style-preview-cta {
  background: #E8916D;
  border-radius: 6px;
}
.style-clarity .style-preview-block {
  background: #FFFFFF;
  border-left: 2px solid #4A6FA5;
  border-radius: 6px;
}
.style-clarity .style-preview-block-icon {
  background: linear-gradient(135deg, rgba(74,111,165,0.12) 0%, rgba(74,111,165,0.06) 100%);
  border-radius: 3px;
}
.style-clarity .style-preview-block-title {
  background: #1E2A3A;
}
.style-clarity .style-preview-block-text {
  background: #EFF1F5;
}

/* Spark */
.style-spark {
  background: #FAFAF8;
}
.style-spark .style-preview-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E7E5E4;
}
.style-spark .style-preview-logo {
  background: #10B981;
  border-radius: 20px;
}
.style-spark .style-preview-nav-item {
  background: #78716C;
  border-radius: 20px;
}
.style-spark .style-preview-hero {
  background: linear-gradient(180deg, #FAFAF8 0%, #F0FDF4 100%);
}
.style-spark .style-preview-headline {
  background: #1C1917;
}
.style-spark .style-preview-subhead {
  background: #78716C;
}
.style-spark .style-preview-cta {
  background: linear-gradient(135deg, #10B981, #34D399);
  border-radius: 20px;
}
.style-spark .style-preview-block {
  background: #FFFFFF;
  border: 2px dashed #E7E5E4;
  border-radius: 12px;
}
.style-spark .style-preview-block-icon {
  background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(16,185,129,0.06) 100%);
  border-radius: 20px;
}
.style-spark .style-preview-block-title {
  background: #1C1917;
}
.style-spark .style-preview-block-text {
  background: #F0FDF4;
}

.style-option-content h3 {
  font-size: var(--text-base);
  margin-bottom: var(--spacing-xs);
}

.style-option-content p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.style-colors {
  display: flex;
  gap: var(--spacing-xs);
}

.style-colors span {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

/* Demo preview with browser chrome + scroll-on-hover */
.demo-preview-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: var(--spacing-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.demo-preview-chrome {
  background: #F0F0F0;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--color-border);
}

.demo-preview-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D1D1D1;
}

.demo-preview-viewport {
  height: 260px;
  overflow: hidden;
}

.demo-preview-viewport img {
  width: 100%;
  display: block;
  transition: transform 14s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform: translateY(0);
}

.style-option-content:hover .demo-preview-viewport img {
  transform: translateY(-60%);
}

/* Customization note */
.style-customize-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.style-customize-note svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.style-customize-note p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.style-customize-note strong {
  color: var(--color-text-primary);
}

@media (max-width: 768px) {
  .demo-preview-viewport {
    height: 200px;
  }
  .style-customize-note {
    flex-direction: column;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
  }
}

/* --------------------------------------------
   Demo Theme Showcase (Demos Page)
   -------------------------------------------- */

.demo-theme {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  margin-bottom: var(--spacing-3xl);
}

.demo-theme:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .demo-theme {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-3xl);
  }
}

@media (min-width: 768px) {
  .demo-theme-reverse {
    grid-template-columns: 1fr 1.2fr;
  }
  .demo-theme-reverse .demo-theme-preview {
    order: 2;
  }
  .demo-theme-reverse .demo-theme-info {
    order: 1;
  }
}

/* Larger browser frame for demos page */
.demo-preview-frame-lg {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.demo-preview-frame-lg:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.demo-preview-viewport-lg {
  height: 320px;
  overflow: hidden;
}

.demo-preview-viewport-lg img {
  width: 100%;
  display: block;
  transition: transform 14s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform: translateY(0);
}

.demo-preview-frame-lg:hover .demo-preview-viewport-lg img {
  transform: translateY(-60%);
}

@media (min-width: 768px) {
  .demo-preview-viewport-lg {
    height: 380px;
  }
}

@media (min-width: 992px) {
  .demo-preview-viewport-lg {
    height: 420px;
  }
}

/* Theme info */
.demo-theme-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--badge-bg, var(--color-primary));
  color: var(--badge-color, white);
  margin-bottom: var(--spacing-md);
}

.demo-theme-info h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.demo-theme-tagline {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.demo-theme-ideal {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-background-alt);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

.demo-theme-ideal strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.demo-theme-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--spacing-xl);
}

.demo-theme-highlights span {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.demo-theme-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.demo-theme-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-sm);
}

.demo-theme-pages span {
  color: var(--color-text-light);
  font-weight: 500;
}

.demo-theme-pages a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.demo-theme-pages a:hover {
  color: var(--color-primary-dark);
}

/* --------------------------------------------
   Content Templates (Step 4)
   -------------------------------------------- */
.content-template {
  background-color: var(--color-background-alt);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.content-template-header {
  margin-bottom: var(--spacing-md);
}

.content-template-header h3 {
  font-size: var(--text-base);
  margin-bottom: var(--spacing-xs);
}

.content-template-header p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.template-hint {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

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

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

.file-input {
  padding: var(--spacing-md);
  background-color: var(--color-background);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.file-input:hover {
  border-color: var(--color-primary);
}

/* --------------------------------------------
   Review & Submit (Step 5)
   -------------------------------------------- */
.review-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

@media (min-width: 576px) {
  .review-summary {
    grid-template-columns: repeat(4, 1fr);
  }
}

.review-item {
  background-color: var(--color-background-alt);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

.review-item h4 {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-xs);
}

.review-item p {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0;
}

.order-summary {
  background-color: var(--color-text-primary);
  color: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
}

.order-summary h3 {
  color: white;
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-lg);
}

.order-line {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.order-line:last-child,
.order-line:nth-last-child(2) {
  border-bottom: none;
}

.order-total {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-sm);
  border-top: 2px solid rgba(255,255,255,0.3);
}

.custom-plan-note {
  margin-top: var(--spacing-xl);
}

/* Form error state */
input.error,
textarea.error,
select.error {
  border-color: var(--color-error);
}

/* --------------------------------------------
   How It Works (Home Page)
   -------------------------------------------- */
.process-grid {
  display: grid;
  gap: var(--spacing-xl);
}

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

.process-step {
  text-align: center;
  position: relative;
}

.process-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background-color: var(--color-primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
}

.process-step h3 {
  font-size: var(--text-base);
  margin-bottom: var(--spacing-sm);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ============================================
   Demo Showcase Page
   ============================================ */

.demo-showcase-grid {
  display: grid;
  gap: var(--spacing-2xl);
}

.demo-showcase-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  padding: var(--spacing-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.demo-showcase-card:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.demo-showcase-card:nth-child(even) .demo-showcase-preview {
  order: 2;
}

.demo-showcase-card:nth-child(even) .demo-showcase-info {
  order: 1;
}

.demo-showcase-preview {
  position: relative;
}

.demo-showcase-info h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-sm);
}

.demo-showcase-info p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.demo-showcase-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.demo-showcase-inner-links {
  display: flex;
  gap: var(--spacing-md);
  font-size: var(--text-sm);
}

.demo-showcase-inner-links a {
  color: var(--color-primary);
  text-decoration: underline;
}

.demo-showcase-inner-links a:hover {
  color: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .demo-showcase-card {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .demo-showcase-card:nth-child(even) .demo-showcase-preview {
    order: 1;
  }

  .demo-showcase-card:nth-child(even) .demo-showcase-info {
    order: 2;
  }
}
