/* ========================================
   SNAPPY LANDING - PROFESSIONAL DESIGN SYSTEM
   High Contrast & Maximum Readability
   ======================================== */

/* ========================================
   CSS CUSTOM PROPERTIES & DESIGN TOKENS
   ======================================== */
:root {
  /* High Contrast Color Palette */
  --primary-50: #fff7ed;
  --primary-100: #ffedd5;
  --primary-200: #fed7aa;
  --primary-300: #fdba74;
  --primary-400: #fb923c;
  --primary-500: #f97316;
  --primary-600: #ea580c;
  --primary-700: #c2410c;
  --primary-800: #9a3412;
  --primary-900: #7c2d12;

  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;

  --accent-50: #fdf4ff;
  --accent-100: #fae8ff;
  --accent-200: #f5d0fe;
  --accent-300: #f0abfc;
  --accent-400: #e879f9;
  --accent-500: #d946ef;
  --accent-600: #c026d3;
  --accent-700: #a21caf;
  --accent-800: #86198f;
  --accent-900: #701a75;

  /* High Contrast Neutrals */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  /* Semantic Colors with High Contrast */
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  --info: #2563eb;

  /* Typography Scale */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */
  --text-6xl: 3.75rem;
  /* 60px */
  --text-7xl: 4.5rem;
  /* 72px */

  /* Font Weights */
  --font-thin: 100;
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Spacing Scale */
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-10: 2.5rem;
  /* 40px */
  --space-12: 3rem;
  /* 48px */
  --space-16: 4rem;
  /* 64px */
  --space-20: 5rem;
  /* 80px */
  --space-24: 6rem;
  /* 96px */
  --space-32: 8rem;
  /* 128px */
  --space-40: 10rem;
  /* 160px */
  --space-48: 12rem;
  /* 192px */
  --space-56: 14rem;
  /* 224px */
  --space-64: 16rem;
  /* 256px */

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* High Contrast Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.1);
  --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.15), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.15), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.25), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.35);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

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

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--neutral-900);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY SYSTEM - HIGH CONTRAST
   ======================================== */
h1,
.h1 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: var(--text-6xl);
  font-weight: var(--font-black);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  color: var(--neutral-900);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

h2,
.h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  color: var(--neutral-900);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

h3,
.h3 {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.025em;
  color: var(--neutral-900);
}

h4,
.h4 {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  color: var(--neutral-900);
}

h5,
.h5 {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--neutral-800);
}

h6,
.h6 {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--neutral-800);
}

p,
.text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--neutral-700);
  margin-bottom: var(--space-4);
}

.text-large {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--neutral-700);
}

.text-small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--neutral-600);
}

.text-xs {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: var(--neutral-600);
}

/* ========================================
   LAYOUT SYSTEM
   ======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-6);
}

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

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-8);
}

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

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

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

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

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

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

.flex-wrap {
  flex-wrap: wrap;
}

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

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

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

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

.justify-end {
  justify-content: flex-end;
}

/* ========================================
   COMPONENT STYLES - HIGH CONTRAST
   ======================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-shadow: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: white;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-700);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-800);
}

.btn-secondary {
  background: white;
  color: var(--primary-700);
  border-color: var(--primary-600);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-50);
  border-color: var(--primary-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: var(--primary-800);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
}

/* Cards - High Contrast */
.card {
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--neutral-200);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.card-header {
  padding: var(--space-6);
  border-bottom: 2px solid var(--neutral-200);
  background: var(--neutral-50);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-6);
  background: var(--neutral-50);
  border-top: 2px solid var(--neutral-200);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.badge-primary {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-700);
}

.badge-success {
  background: var(--success);
  color: white;
  border-color: #047857;
}

.badge-warning {
  background: var(--warning);
  color: white;
  border-color: #b45309;
}

/* ========================================
   LANDING PAGE SPECIFIC STYLES
   ======================================== */

/* Header */
.landing-header {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--neutral-200);
  transition: all var(--transition-base);
}

.landing-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--primary-700);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--neutral-700);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

.nav-link:hover {
  color: var(--primary-700);
  background: var(--primary-50);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-50) 100%);
  overflow: hidden;
  padding: var(--space-20) 0 var(--space-16);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23f97316" stop-opacity="0.1"/><stop offset="100%" stop-color="%23f97316" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>') no-repeat center center;
  background-size: cover;
  opacity: 0.6;
}

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

.hero-title {
  font-size: var(--text-7xl);
  font-weight: var(--font-black);
  line-height: var(--leading-tight);
  letter-spacing: -0.05em;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--accent-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  color: var(--neutral-700);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== INTEGRATED CONTENT SECTION ===== */
.integrated-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-top: var(--space-8);
}

.content-text {
  margin-bottom: var(--space-8);
}

.floating-image {
  display: flex;
  justify-content: center;
  margin: var(--space-8) 0;
  position: relative;
  padding: var(--space-4) 0;
}

.image-wrapper {
  position: relative;
  max-width: 83%;
  width: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: perspective(1000px) rotateY(-3deg) rotateX(3deg);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
  box-shadow:
    0 35px 70px -12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.main-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-2xl);
  filter: contrast(1.1) saturate(1.1);
}

.br-line {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-300) 50%, transparent 100%);
}

/* Comparison Section Styles */
.comparison .grid > div {
  transition: all 0.2s ease-in-out;
}

.comparison .grid > div:hover {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.comparison .space-y-4 > div {
  transition: all 0.2s ease-in-out;
}

.comparison .space-y-4 > div:hover {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.text-white-text {
  color: white!important;
}
/* Print Styles */
@media print {
  .comparison .grid > div,
  .comparison .space-y-4 > div {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
  
  .comparison .bg-emerald-50,
  .comparison .bg-zinc-50,
  .comparison .bg-zinc-100 {
    background: #f5f5f5 !important;
  }
  
  .comparison .text-emerald-900,
  .comparison .text-emerald-100 {
    color: #000 !important;
  }
  
  .comparison .text-fuchsia-500 {
    color: #000 !important;
  }
  
  .comparison .text-emerald-500 {
    color: #000 !important;
  }
}

.image-glow {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(45deg,
      var(--primary-400) 0%,
      var(--accent-400) 25%,
      var(--primary-500) 50%,
      var(--accent-500) 75%,
      var(--primary-400) 100%);
  border-radius: var(--radius-3xl);
  opacity: 0.2;
  filter: blur(15px);
  z-index: -1;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

.floating-badges {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-4);
}

.badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.8);
  animation: badge-float 2s ease-in-out infinite;
  min-width: 80px;
}

.badge-before {
  border-color: var(--error);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
  animation-delay: 0s;
}

.badge-after {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
  animation-delay: 1s;
}

@keyframes badge-float {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

.badge-icon {
  font-size: var(--text-lg);
  font-weight: var(--font-black);
}

.badge-text {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--neutral-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Features Section */
.features {
  background: white;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-300) 50%, transparent 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.feature-card {
  text-align: center;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  background: white;
  border: 2px solid var(--neutral-200);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-base);
}

.feature-card:hover {
  background: white;
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: var(--primary-400);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-600) 100%);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  color: white;
  box-shadow: var(--shadow-lg);
  border: 3px solid white;
  font-weight: var(--font-black);
}

/* Problem Icons */
.problem-icon {
  background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
  font-size: var(--text-4xl);
  font-weight: var(--font-black);
}

/* Solution Icons */
.solution-icon {
  background: linear-gradient(135deg, var(--success) 0%, #047857 100%);
  font-size: var(--text-4xl);
  font-weight: var(--font-black);
}

/* Problem Cards */
.problem-card {
  border-color: var(--error);
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.problem-card:hover {
  border-color: var(--error);
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

/* Solution Cards */
.solution-card {
  border-color: var(--success);
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.solution-card:hover {
  border-color: var(--success);
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
  color: var(--neutral-900);
}

.feature-description {
  color: var(--neutral-700);
  line-height: var(--leading-relaxed);
  font-weight: var(--font-medium);
}

/* Pricing Section */
.pricing {
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--primary-50) 100%);
  position: relative;
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.pricing-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  color: var(--neutral-900);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pricing-subtitle {
  font-size: var(--text-lg);
  color: var(--neutral-700);
  max-width: 600px;
  margin: 0 auto;
  font-weight: var(--font-medium);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.pricing-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--neutral-200);
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-400);
}

.pricing-card.popular {
  border-color: var(--primary-600);
  transform: scale(1.05);
  box-shadow: var(--shadow-2xl);
  background: linear-gradient(135deg, white 0%, var(--primary-50) 100%);
}

.pricing-card.popular::before {
  content: 'Più Popolare';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-600) 100%);
  color: white;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-lg);
  border: 2px solid white;
}

.plan-name {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--neutral-900);
  margin-bottom: var(--space-2);
}

.plan-price {
  font-size: var(--text-5xl);
  font-weight: var(--font-black);
  color: var(--primary-700);
  margin-bottom: var(--space-1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.plan-period {
  font-size: var(--text-base);
  color: var(--neutral-600);
  margin-bottom: var(--space-6);
  font-weight: var(--font-medium);
}

.plan-features {
  list-style: none;
  margin-bottom: var(--space-8);
}

.plan-feature {
  display: flex;
  align-items: center;
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--neutral-700);
  font-weight: var(--font-medium);
  border-bottom: 1px solid var(--neutral-200);
}

.plan-feature:last-child {
  border-bottom: none;
}

.plan-feature::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--success);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  margin-right: var(--space-3);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--accent-700) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/></svg>') no-repeat center center;
  background-size: cover;
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: var(--font-medium);
}

.cta-button {
  background: white;
  color: var(--primary-700);
  font-weight: var(--font-bold);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-xl);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xl);
  border: 3px solid transparent;
  font-size: var(--text-lg);
}

.cta-button:hover {
  background: var(--neutral-50);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-200);
}

/* Footer */
.footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--neutral-400);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: var(--font-medium);
}

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

.footer-bottom {
  border-top: 2px solid var(--neutral-800);
  padding-top: var(--space-8);
  text-align: center;
  color: var(--neutral-500);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-4);
  }

  .hero-title {
    font-size: var(--text-6xl);
  }

  .pricing-card.popular {
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--text-5xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .nav-menu {
    display: none;
  }

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

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

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

  /* Integrated Content Mobile */
  .integrated-content {
    max-width: 100%;
    padding: 0 var(--space-4);
    padding-top: var(--space-4);
  }

  .floating-image {
    margin: var(--space-6) 0;
    padding: var(--space-2) 0;
  }

  .image-wrapper {
    max-width: 100%;
    transform: perspective(1000px) rotateY(-1deg) rotateX(1deg);
  }

  .image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
  }

  .image-glow {
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    filter: blur(10px);
  }

  .floating-badges {
    padding: var(--space-3);
    flex-direction: row;
    gap: var(--space-3);
  }

  .badge {
    min-width: 70px;
    padding: var(--space-2) var(--space-3);
  }

  .badge-icon {
    font-size: var(--text-base);
  }

  .badge-text {
    font-size: var(--text-xs);
  }

  .section-lg {
    padding: var(--space-24) 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-4xl);
  }

  .pricing-title {
    font-size: var(--text-4xl);
  }

  .cta-title {
    font-size: var(--text-4xl);
  }

  .btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
  text-align: center;
}

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

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

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mt-0 {
  margin-top: 0;
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

.overflow-y-hidden {
  overflow-y: hidden;
}

.rounded {
  border-radius: var(--radius-base);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-2xl {
  border-radius: var(--radius-2xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.shadow {
  box-shadow: var(--shadow-base);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

  .landing-header,
  .cta,
  .footer {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: var(--space-8) 0;
  }

  .section {
    padding: var(--space-8) 0;
  }
}
.nav .nav-link.active { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
/* Comparison layout orientation control: stack only on mobile portrait */
@media (max-width: 767.98px) and (orientation: landscape) {
    #comparison .comparison-desktop { display: block !important; }
    #comparison .comparison-mobile { display: none !important; }
}
@media (max-width: 767.98px) and (orientation: portrait) {
    #comparison .comparison-desktop { display: none !important; }
    #comparison .comparison-mobile { display: block !important; }
}
/* Tablets: always show two columns */
@media (min-width: 768px) and (max-width: 1023.98px) {
    #comparison .comparison-desktop { display: block !important; }
    #comparison .comparison-mobile { display: none !important; }
}

/* Desktop: show desktop layout, hide mobile */
@media (min-width: 1024px) {
    #comparison .comparison-desktop { display: block !important; }
    #comparison .comparison-mobile { display: none !important; }
}

/* Pricing card info badge */
.pricing-card { position: relative; }
.pricing-card .info-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 60px;
  height: 40px;
  border-radius: 9999px;
  background: #e5e7eb; /* zinc-200 */
  color: #374151; /* zinc-700 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  box-shadow: var(--shadow-sm);
}
.pricing-card .info-badge:hover { background: #d1d5db; }

/* Checkout plan selector */
.plan-selector { display: block; }
.plan-selector .selector-title { font-weight: 600; margin-bottom: 12px; }
.plan-selector .plan-cards { display: flex; flex-direction: column; gap: 12px; }
.plan-card { border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; outline: none; }
.plan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.plan-card.expanded { border-color: #111827; box-shadow: var(--shadow-md); }
.plan-card.collapsed { opacity: 0.95; }
.plan-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #f3f4f6; }
.plan-card-title { display: flex; align-items: baseline; gap: 8px; }
.plan-card-name { font-size: 1rem; font-weight: 600; margin: 0; }
.plan-card-price { color: #111827; font-weight: 700; }
.plan-card-price .amount { margin-right: 4px; }
.plan-select-btn { appearance: none; border: 1px solid #111827; background: #111827; color: #fff; font-weight: 600; border-radius: 9999px; padding: 8px 14px; cursor: pointer; }
.plan-select-btn:hover { background: #000; border-color: #000; }
.plan-card-body { padding: 12px 16px; }
.plan-card-features { margin: 0 0 8px 0; padding-left: 20px; }
.plan-card-features li { margin: 4px 0; }
.plan-card-expansion { margin-top: 10px; border-top: 1px dashed #e5e7eb; padding-top: 10px; }
.plan-card.expanded .plan-card-body { display: block; }
.plan-card.collapsed .plan-card-body { display: none; }

/* Checkout layout tweaks */
.checkout-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 1024px){
  .checkout-content { grid-template-columns: 1fr; }
}

/* Selected plan summary */
.selected-plan-card { margin-top: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.selected-plan-card h3 { padding: 12px 16px; margin: 0; border-bottom: 1px solid #f3f4f6; }
.selected-plan-card .plan-details { padding: 12px 16px; }
.selected-plan-card .plan-price { font-weight: 700; }

/* Payment cards */
.payment-methods { display: grid; gap: 12px; }
.payment-option { display: block; }
.payment-card { display: flex; gap: 12px; align-items: center; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; cursor: pointer; }
.payment-card:hover { box-shadow: var(--shadow-sm); }
.payment-icon { font-size: 1.3rem; }
.payment-info strong { display: block; }

/* Checkout page flow */
.checkout-content { opacity: 0; transition: opacity .25s ease; }
.checkout-content.active { opacity: 1; }
#plan-picker-top { margin: 12px 0 16px 0; }
#plan-picker-top .plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1024px){
  #plan-picker-top .plan-cards { grid-template-columns: 1fr; }
}
#plan-cards-top .plan-card { cursor: pointer; }
#plan-cards-top .plan-card.expanded .plan-card-body { display: block; }
#plan-cards-top .plan-card.collapsed .plan-card-body { display: none; }

/* Choose-plan on checkout */
.choose-plan { margin-top: 12px; margin-bottom: 16px; }
.choose-plan .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 1024px){ .choose-plan .pricing-grid { grid-template-columns: 1fr; } }
.choose-plan .choose-plan-btn { margin-top: 10px; appearance: none; border: 1px solid #111827; background:#111827; color:#fff; border-radius: 9999px; padding: 10px 14px; font-weight: 600; cursor: pointer; width: 100%; }
.choose-plan .choose-plan-btn:hover { background:#000; border-color:#000; }

/* Hide checkout until active */
.checkout-content { opacity: 0; pointer-events: none; }
.checkout-content.active { opacity: 1; pointer-events: auto; transition: opacity .2s ease; }

/* Refined checkout layout */
.checkout-content { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; opacity: 0; pointer-events: none; }
.checkout-content.active { opacity: 1; pointer-events: auto; transition: opacity .24s ease; }
.selected-card-slot > .pricing-card { width: 100%; border-width: 2px; }
.selected-card-slot .plan-cta { display: none; }

/* Form visuals */
.checkout-form { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); }
.checkout-form .form-section { margin-bottom: 14px; }
.checkout-form h3 { margin: 0 0 8px 0; font-weight: 700; }
.checkout-form .form-group { display: grid; gap: 6px; margin: 8px 0; }
.checkout-form label { font-weight: 600; color: #111827; }
.checkout-form input[type="text"], .checkout-form input[type="email"] { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; }
.checkout-form .payment-methods { display: grid; gap: 10px; }
.checkout-form .payment-card { background: #fafafa; }

/* Mobile */
@media (max-width: 1024px){
  .checkout-content { grid-template-columns: 1fr; }
}