/* Optimized CSS - Preserving Essential Styles */

/* ==========================================================================
   Base Typography & Font Settings
   ========================================================================== */

body {
  font-family: 'Poppins', sans-serif;
  color: #000000;
  background-color: #f1f5f9;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #000000;
  font-weight: inherit;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: inherit;
  transition: color 0.3s ease;
}

b, strong {
  font-weight: bolder;
}

/* ==========================================================================
   Typography & Text Effects
   ========================================================================== */

.gradient-text {
  background: linear-gradient(90deg, #ff7e00, #e11d48);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.hero-text-weight {
  font-weight: bold;
}

header .text-white,
header .gradient-text {
  font-weight: normal;
}

header a .text-white,
header a .gradient-text {
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}

.tracking-wide {
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.container, section, footer, header, #header-placeholder, #footer-placeholder {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.section-divider {
  height: 3px;
  width: 100px;
  margin: 0 auto;
  background: linear-gradient(90deg, #ff7e00, #e11d48);
}

/* ==========================================================================
   Card Components
   ========================================================================== */

.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Service Cards */
.service-card-grow {
  border-color: #3b82f6;
}

.service-card-deliver {
  border-color: #10b981;
}

.service-card-ai {
  border-color: #8b5cf6;
}

/* ==========================================================================
   Pricing Components
   ========================================================================== */

/* Pricing Card Structure */
.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  padding: 1.5rem;
}

.pricing-card-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Price Display */
.price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0;
  min-height: 80px;
}

.cents-subscript {
  font-size: 60%;
  vertical-align: baseline;
  margin-left: -2px;
  position: relative;
  display: inline-block;
}

.pricing-card del {
  text-decoration: line-through !important;
  opacity: 0.8 !important;
  color: #666 !important;
  font-weight: 500 !important;
}

/* Feature Lists */
.pricing-card .feature-list,
.pricing-card ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 1rem 0;
  flex-grow: 1;
}

.pricing-card .feature-list li,
.pricing-card ul li {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0.75rem !important;
  padding-left: 0 !important;
  line-height: 1.4 !important;
  position: relative !important;
  text-align: left !important;
  list-style-type: none !important;
}

/* Bundle Card Specific */
.bundle-card {
  position: relative;
  overflow: visible;
}

.bundle-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
  min-height: 2rem;
}

.bundle-pricing-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

/* Button Positioning */
.pricing-card .card-footer,
.pricing-card .cta-button,
.pricing-card .btn {
  margin-top: auto;
  padding-top: 1rem;
}

/* ==========================================================================
   Media Elements
   ========================================================================== */

/* Control all images and media elements */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Lazy loading for videos */
.lazy-video {
  background-color: #f3f4f6;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2"/><path d="M9 12l6-3.5v7L9 12z" fill="currentColor"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 48px;
}

/* ==========================================================================
   Newsletter & Interactive Elements
   ========================================================================== */

#newsletter-modal, #notification-modal, #recaptcha-modal {
  transition: opacity 0.3s ease;
}

#newsletter-modal.show, #notification-modal.show, #recaptcha-modal.show {
  display: flex !important;
  opacity: 1;
}

#newsletter-form input:focus {
  box-shadow: 0 0 0 2px rgba(255, 126, 0, 0.2);
}

/* ==========================================================================
   Fix Styling Issues
   ========================================================================== */

/* Fix pricing section and cards */
#pricing-annual, #pricing-monthly, #annual-pricing, #monthly-pricing {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* Fix Gold Plan scaling issue that causes overflow */
.transform.scale-105, 
.scale-105 {
  transform: none !important;
  max-width: 100% !important;
}

/* Fix hover animations to prevent overflow */
.hover\:-translate-y-2:hover {
  transform: translateY(-0.5rem);
}

/* Fix bundle cards */
.bundle-cards > div {
  max-width: 100%;
}

/* Fix newsletter form */
#newsletter-form {
  max-width: 100%;
  flex-wrap: wrap;
}

/* Fix text overflow */
.pricing-card * {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.pricing-card .text-center {
  text-align: center !important;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden {
  display: none !important;
}

.border-l-3 {
  border-left-width: 3px;
}

.border-t-3 {
  border-top-width: 3px;
}

.price-placeholder {
  min-width: 80px;
  display: inline-block;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .pricing-card {
    margin-bottom: 1.5rem;
    padding: 1rem;
  }
  
  .pricing-card .feature-list li,
  .pricing-card ul li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .bundle-card .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .cents-subscript {
    font-size: 0.5em !important;
  }
  
  /* Fix button spacing in mobile view */
  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .sm\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .sm\:space-x-4 {
    margin-right: 0;
  }
  
  .sm\:space-y-0 {
    margin-top: 1rem;
  }
  
  .get-notified-btn, .submit-btn, .bundle-buy-button {
    width: 100%;
  }
  
  /* Stack flex elements properly */
  .flex-col, .sm\:flex-row {
    flex-direction: column;
  }
  
  /* Ensure proper padding in mobile */
  .p-6, .md\:p-8 {
    padding: 1rem;
  }
}

@media (min-width: 769px) {
  .container {
    max-width: 1280px;
    margin: 0 auto;
  }
}