/* Lunchbox Packs — Landing Page Styles */
/* Mobile-First | Dark Theme | Blues & Purples Primary */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
  /* Brand Colors - Blues & Purples Primary, Black Accent */
  --purple: #8B5CF6;
  --purple-light: #A78BFA;
  --purple-dark: #7C3AED;
  --blue: #0D46CA;
  --blue-light: #3B82F6;
  --blue-dark: #1E3A8A;
  --black: #000000;
  --dark: #0A0A0A;
  --dark-mid: #141414;
  --white: #FFFFFF;
  --light: #F2F2F2;
  --gray: #B0B8C4;
  --border: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-primary: 'DM Sans', -apple-system, sans-serif;
  --font-size-hero: clamp(2rem, 8vw, 4rem);
  --font-size-title: clamp(1.5rem, 5vw, 2.5rem);
  --font-size-subtitle: clamp(0.75rem, 2vw, 0.875rem);
  --font-size-body: clamp(1rem, 2.5vw, 1.125rem);
  --font-size-small: 0.8125rem;
  
  /* Spacing - Mobile First */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  /* Layout */
  --container-max: 1200px;
  --container-narrow: 720px;
  --container-padding: 1.25rem;
  
  /* Animation */
  --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--white);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  text-transform: lowercase;
  color: var(--white);
}

h1 { font-size: var(--font-size-hero); }
h2 { font-size: var(--font-size-title); }

.subtitle {
  font-size: var(--font-size-subtitle);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--purple-light);
}

p {
  color: var(--gray);
}

strong {
  color: var(--white);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  text-transform: lowercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  color: var(--white);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--secondary:hover {
  background: var(--white);
  color: var(--black);
}

.btn--large {
  padding: 1.125rem 2.5rem;
  font-size: 1.0625rem;
}

.btn--full {
  width: 100%;
}

/* Sections */
section {
  padding: var(--space-xl) 0;
}

.section--gradient {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-mid) 100%);
}

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero__badge {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: var(--font-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.hero h1 {
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.hero__text {
  font-size: var(--font-size-body);
  color: var(--gray);
  margin-bottom: var(--space-md);
  max-width: 100%;
}

/* Gradient orb decoration */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
}

.orb--purple {
  background: var(--purple);
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.orb--blue {
  background: var(--blue);
  width: 250px;
  height: 250px;
  bottom: -50px;
  left: -100px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  text-align: center;
  padding: var(--space-md);
  background: var(--dark-mid);
  border: 1px solid var(--border);
}

.stat__number {
  font-size: clamp(1.75rem, 6vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat__label {
  font-size: var(--font-size-small);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.feature-card {
  background: var(--dark-mid);
  border: 1px solid var(--border);
  padding: var(--space-md);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: var(--font-size-small);
  line-height: 1.5;
}

/* Pullquote */
.pullquote {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  border-left: 3px solid var(--purple);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
}

/* Chapter markers */
.chapter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 var(--space-md);
}

.chapter__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.chapter__text {
  font-size: var(--font-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--purple-light);
  white-space: nowrap;
}

/* Testimonial */
.testimonial {
  background: var(--dark-mid);
  border-left: 3px solid var(--purple);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
}

.testimonial__text {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.testimonial__author {
  font-size: var(--font-size-small);
  color: var(--gray);
}

/* Product Reveal */
.product-reveal {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--blue-dark) 100%);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-reveal__icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 2.5rem;
}

.product-reveal h3 {
  font-size: var(--font-size-title);
  margin-bottom: var(--space-xs);
}

.product-reveal p {
  color: rgba(255, 255, 255, 0.8);
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.feature-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: lowercase;
}

/* Offer Module */
.offer {
  background: var(--dark);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
}

.offer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--purple));
}

.offer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--purple);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.offer h2 {
  margin-bottom: var(--space-xs);
}

.offer__subtitle {
  color: var(--gray);
  margin-bottom: var(--space-md);
}

.offer__price {
  margin: var(--space-md) 0;
}

.offer__price-old {
  font-size: 1.25rem;
  text-decoration: line-through;
  color: var(--gray);
}

.offer__price-new {
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.offer__features {
  list-style: none;
  text-align: left;
  display: inline-block;
  margin: var(--space-md) 0;
}

.offer__features li {
  padding: 0.625rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--font-size-body);
  color: var(--gray);
}

.offer__features li::before {
  content: '✓';
  color: var(--purple-light);
  font-weight: 700;
}

.offer__cta {
  margin: var(--space-md) 0;
}

.offer__guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark-mid);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-small);
  color: var(--gray);
  margin-top: var(--space-sm);
}

.trust-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--space-md);
  font-size: var(--font-size-small);
  color: var(--gray);
}

.trust-row span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Author box */
.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: var(--space-md);
  background: var(--dark-mid);
  border: 1px solid var(--border);
  margin: var(--space-lg) 0;
}

.author-box__avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.author-box__name {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.125rem;
}

.author-box__title {
  font-size: var(--font-size-small);
  color: var(--gray);
}

/* Footer */
footer {
  background: var(--black);
  padding: var(--space-md);
  text-align: center;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: var(--font-size-small);
  color: var(--gray);
}

/* Reading progress */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  z-index: 1000;
  transition: width 0.1s;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scroll animations - visible by default, animate when scrolled into view */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

/* Text utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  color: var(--purple-light);
}

/* Drop cap */
.drop-cap::first-letter {
  float: left;
  font-size: 3.5rem;
  line-height: 0.8;
  font-weight: 700;
  color: var(--purple-light);
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

/* Stat inline */
.stat-inline {
  color: var(--purple-light);
  font-weight: 700;
}

/* Full-width stat callout */
.stat-callout {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--blue-dark) 100%);
  padding: var(--space-lg);
  margin: var(--space-lg) calc(-1 * var(--container-padding));
  text-align: center;
}

.stat-callout__number {
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-callout__label {
  font-size: var(--font-size-body);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
}

/* TABLET & DESKTOP */
@media (min-width: 640px) {
  :root {
    --container-padding: 2rem;
    --space-xl: 5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trust-row {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
  
  .stat-callout {
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 3rem;
    --space-xl: 6rem;
  }
  
  .hero {
    min-height: 90vh;
  }
  
  .orb--purple {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
  }
  
  .orb--blue {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -150px;
  }
}
