/* ==========================================================================
   Ultimate Monthly Budget Planner - Luxury CRO Sales Page Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..800;1,9..144,300..700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Luxury Palette */
  --color-forest: #204533;
  --color-forest-dark: #142E22;
  --color-sage: #386950;
  --color-sage-light: #EEF4F0;
  --color-sage-soft: #D7E5DC;
  --color-cream: #FBF9F5;
  --color-cream-card: #F4EFEB;
  --color-cream-border: #E8E2D8;
  --color-gold: #C59A3F;
  --color-gold-light: #FDF9EE;
  --color-gold-hover: #AF832C;
  --color-coral: #D96B50;
  --color-ink: #1B2620;
  --color-ink-muted: #57685F;
  --color-ink-light: #8A9B92;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27, 38, 32, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(27, 38, 32, 0.08), 0 2px 6px -1px rgba(27, 38, 32, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(27, 38, 32, 0.12), 0 6px 12px -2px rgba(27, 38, 32, 0.06);
  --shadow-xl: 0 30px 60px -12px rgba(27, 38, 32, 0.18);
  --shadow-gold: 0 10px 30px -5px rgba(197, 154, 63, 0.35);
  --shadow-forest: 0 12px 32px -6px rgba(32, 69, 51, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography Enhancements */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-cream);
}
::-webkit-scrollbar-thumb {
  background: #D2CBC0;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-sage);
}

/* High-Converting Badges & Buttons */
.btn-primary {
  background: linear-gradient(135deg, #2D5E46 0%, #1A3F2E 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-forest);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: 0.6s;
}
.btn-primary:hover::after {
  left: 140%;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(32, 69, 51, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #B8861B 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(197, 154, 63, 0.5);
  filter: brightness(1.05);
}

/* Floating Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.animate-float {
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(45, 94, 70, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(45, 94, 70, 0);
  }
}
.pulse-ring {
  animation: pulseGlow 2.5s infinite;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 226, 216, 0.8);
}

.glass-card-dark {
  background: rgba(20, 46, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Spreadsheet Tab Pill */
.sheet-tab-btn {
  transition: all 0.25s ease;
}
.sheet-tab-btn.active {
  background-color: var(--color-forest);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(32, 69, 51, 0.25);
}

/* Table Simulation Styling */
.sheet-table th, .sheet-table td {
  padding: 10px 14px;
  font-size: 0.875rem;
  border-bottom: 1px solid #EBE5DC;
}
.sheet-table tr:hover {
  background-color: #F8F6F2;
}

/* Accordion FAQ Chevron */
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}
.faq-item.open .faq-answer {
  max-height: 500px;
  transition: max-height 0.45s ease-in-out;
}

/* Checkout Drawer */
#checkoutDrawerOverlay {
  transition: opacity 0.3s ease;
}
#checkoutDrawerPanel {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Comparison Before/After Cards */
.before-card {
  background: #FFF5F4;
  border: 1.5px solid #F8D3CE;
}
.after-card {
  background: #F3F8F5;
  border: 1.5px solid #C8DFD2;
}

/* Subtle Shimmer for High-Priority Offers */
@keyframes goldShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(90deg, #A27622 0%, #F5DE88 50%, #A27622 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 4s infinite linear;
}
