/* ==========================================================================
   Crevvo Digital Products Marketplace - Landing Base Stylesheet
   Reusable layout, typography, components, animations & responsive base
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

body.landing-page-body {
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Common Limited-time Offer Bar */
.offer-ticker-bar {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 100;
  letter-spacing: -0.01em;
}

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 10px;
  border-radius: 9999px;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 800;
}

/* Common Minimal Landing Header */
.landing-header {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 90;
}

.landing-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav-links a {
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.landing-nav-links a:hover {
  opacity: 0.8;
}

/* Hero Section Base Structure */
.landing-hero {
  padding: 50px 0 60px;
  position: relative;
}

.landing-hero-headline {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.landing-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 26px;
}

/* Checklist Items in Hero */
.hero-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 20px;
  margin-bottom: 28px;
}

.hero-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-check-item i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Price & CTA Block */
.landing-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.price-strike {
  font-size: 1.35rem;
  text-decoration: line-through;
  opacity: 0.85;
  font-weight: 600;
}

.price-current {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-badge-pill {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

/* Universal High Contrast Utilities */
.text-contrast-high {
  color: #0F172A !important;
}

.text-contrast-muted {
  color: #475569 !important;
}

.text-contrast-light {
  color: #F8FAFC !important;
}

.text-contrast-subtle-light {
  color: #CBD5E1 !important;
}

/* Dark mode text readability guard: Ensures text-muted inside dark themes is never dark gray on dark */
[class*="theme-bookkeeping"] .text-muted,
[class*="theme-tracker"] .text-muted,
.parents-say-dark-section .text-muted,
.bonuses-dark-container .text-muted,
.landing-footer .text-muted {
  color: #CBD5E1 !important;
}

.landing-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  padding: 16px 32px;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.landing-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

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

.cta-subtext {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Trust / Benefits Strip */
.landing-trust-strip {
  padding: 24px 0 50px;
}

.trust-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  transition: transform var(--transition-fast);
}

.trust-item-card:hover {
  transform: translateY(-2px);
}

.trust-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.trust-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.trust-item-desc {
  font-size: 0.8rem;
  margin: 0;
}

/* Generic Section Styles */
.landing-section {
  padding: 70px 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 46px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.section-headline {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-subtext {
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Video / Dashboard Preview Frame */
.video-preview-wrapper {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.video-preview-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(6px);
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

/* Testimonials Carousel / Grid */
.landing-review-card {
  padding: 28px 24px;
  border-radius: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.landing-review-card:hover {
  transform: translateY(-4px);
}

.review-stars {
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-body-text {
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
  flex-grow: 1;
}

.reviewer-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.reviewer-name {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.reviewer-title {
  font-size: 0.8rem;
}

/* FAQ Accordion */
.landing-faq-item {
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.landing-faq-btn {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.landing-faq-btn i {
  transition: transform var(--transition-fast);
}

.landing-faq-btn.collapsed i {
  transform: rotate(0deg);
}

.landing-faq-btn:not(.collapsed) i {
  transform: rotate(180deg);
}

.landing-faq-content {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Bottom Urgency / CTA Section */
.bottom-cta-banner {
  padding: 50px 0;
  text-align: center;
}

/* Sticky Mobile Bottom Purchase Bar */
.landing-sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .landing-sticky-mobile-cta {
    display: flex;
  }
}

/* Responsive Rules for Landing Pages */
@media (max-width: 991px) {
  .landing-hero {
    text-align: center;
    padding: 36px 0 40px;
  }
  .landing-hero-headline {
    font-size: 2.5rem;
  }
  .hero-checklist-grid {
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .landing-pricing-row {
    justify-content: center;
  }
  .landing-cta-btn {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-subtext {
    justify-content: center;
  }
  .section-headline {
    font-size: 1.9rem;
  }
}

@media (max-width: 576px) {
  .landing-hero-headline {
    font-size: 2.1rem;
  }
  .landing-hero-subtitle {
    font-size: 1rem;
  }
  .price-current {
    font-size: 2.3rem;
  }
  .landing-cta-btn {
    font-size: 1.05rem;
    padding: 14px 20px;
  }
  .hero-checklist-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Product Landing Pages Animations & UI/UX Enhancements
   ========================================================================== */

/* 1. Scroll Progress Bar */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #FF5A4F, #FFB800, #10B981);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.6);
}

/* 2. Scroll Reveal Engine */
.reveal-fade-up,
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
  will-change: opacity;
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.is-revealed,
.reveal-fade-up.is-revealed,
.reveal-up.is-revealed,
.reveal-fade-in.is-revealed,
.reveal-fade-left.is-revealed,
.reveal-fade-right.is-revealed,
.reveal-scale.is-revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Stagger Delays */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.40s; }

/* 3. Hero Visual Levitation & Glow */
.landing-hero-visual img,
.hero-mockup-frame img,
.video-preview-wrapper {
  animation: heroFloatSoft 6.5s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroFloatSoft {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* 4. Button Shimmer Light-Sweep */
.landing-cta-btn,
.buy-now-cta-link {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-cta-btn::after,
.buy-now-cta-link::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  pointer-events: none;
  transition: all 0.6s ease;
  opacity: 0;
}

.landing-cta-btn:hover::after,
.buy-now-cta-link:hover::after {
  left: 140%;
  opacity: 1;
  transition: all 0.8s ease;
}

.landing-cta-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

/* 5. Countdown Badge Pulse Animation */
.countdown-badge {
  animation: countdownPulse 2s ease-in-out infinite;
}

@keyframes countdownPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* 6. Card Hover Elevations & Interactive Micro-Lifts */
.sheet-preview-card,
.tracing-sample-card,
.feature-card,
.landing-faq-item,
.guarantee-card,
.rating-highlight-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  will-change: transform, box-shadow;
}

.sheet-preview-card:hover,
.tracing-sample-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.landing-faq-btn {
  transition: all 0.25s ease;
}

.landing-faq-btn:hover {
  padding-left: 24px;
}

/* 7. Back To Top Button */
#backToTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#backToTopBtn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#backToTopBtn:hover {
  background: #FF5A4F;
  color: #FFFFFF;
  border-color: #FF5A4F;
  transform: translateY(-4px) scale(1.08);
}

/* Ripple waves */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: rippleAnimation 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

