/**
 * SuperFastDiet Evergreen Webinar Funnel Styles
 * Matching Foundation Page Design System
 */

:root {
  /* Foundation Page Color Palette */
  --sfd-pink: #EE728E;
  --sfd-pink-700: #D4516F;
  --sfd-pink-100: #FFE5ED;
  --sfd-orange: #FF8B60;
  --sfd-orange-100: #FFE5DB;
  --sfd-green: #AAC811;
  --sfd-green-700: #6F8A09;
  --sfd-charcoal: #2D3436;
  --sfd-stone-200: #E8E8E8;

  /* Background Colors */
  --bg-page: #FAFBFC;
  --bg-sunny: #FFF7ED;
  --bg-grove: #F0F7E8;
  --bg-blush: #FFE5ED;
  --bg-tint: #F9FAFB;

  /* Text Colors */
  --fg-1: #2D3436;
  --fg-2: #626C74;
  --fg-3: #9CA3AF;

  /* Typography */
  --font-display: 'Nunito', 'Montserrat', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-pink: 0 10px 28px rgba(238, 114, 142, 0.3);
  --shadow-orange: 0 8px 20px rgba(255, 139, 96, 0.25);
  --shadow-green: 0 10px 28px rgba(170, 200, 17, 0.3);

  /* Border Radius */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 22px;

  /* Transitions */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-bounce: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--fg-1);
  line-height: 1.6;
  background-color: var(--bg-page);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  font-size: clamp(20px, 3vw, 28px);
}

p {
  margin-bottom: var(--space-sm);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Styles */
.webinar-header {
  background: white;
  padding: 20px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.webinar-header__logo {
  height: 50px;
  width: auto;
}

/* Hero Section */
.webinar-hero {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, var(--sfd-pink) 0%, var(--sfd-orange) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.webinar-hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: -200px;
  right: -100px;
}

.webinar-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -150px;
  left: -50px;
}

.webinar-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.webinar-hero__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.webinar-hero__heading {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: lowercase;
}

.webinar-hero__subheading {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
}

/* Registration Card */
.webinar-reg-card {
  max-width: 500px;
  margin: -80px auto 60px;
  position: relative;
  z-index: 10;
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
}

.webinar-reg-card__heading {
  text-align: center;
  color: var(--sfd-charcoal);
  margin-bottom: var(--space-md);
}

/* Countdown Banner */
.webinar-countdown {
  background: var(--sfd-pink);
  color: white;
  padding: 12px 24px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Benefits Grid */
.webinar-benefits {
  padding: 80px 0;
}

.webinar-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.webinar-benefit-card {
  padding: 32px;
  background: white;
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--sfd-pink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.webinar-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.webinar-benefit-card h3 {
  color: var(--sfd-charcoal);
  margin-bottom: 12px;
}

.webinar-benefit-card p {
  color: var(--fg-2);
  margin-bottom: 0;
}

/* Bonus Section */
.webinar-bonus {
  background: var(--bg-blush);
  padding: 60px 0;
  margin: 60px 0;
  border-radius: var(--border-radius-lg);
}

.webinar-bonus__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.webinar-bonus-card {
  background: white;
  padding: 32px;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.webinar-bonus-card h4 {
  color: var(--sfd-pink);
  margin-bottom: 12px;
  font-size: 18px;
}

.webinar-bonus-card p {
  color: var(--fg-2);
  font-size: 15px;
  margin-bottom: 0;
}

/* Host Section */
.webinar-host {
  background: var(--bg-tint);
  padding: 80px 0;
}

.webinar-host__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.webinar-host__image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid white;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.webinar-host__content {
  flex: 1;
  min-width: 300px;
}

.webinar-host__content h2 {
  color: var(--sfd-charcoal);
  margin-bottom: 16px;
}

.webinar-host__content p {
  color: var(--fg-2);
  line-height: 1.7;
}

/* Buttons */
.webinar-btn {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.14s var(--ease-bounce), box-shadow 0.22s var(--ease-out);
  border: none;
  letter-spacing: 0.02em;
}

.webinar-btn--primary {
  background: var(--sfd-green);
  color: white;
  box-shadow: var(--shadow-green);
}

.webinar-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(170, 200, 17, 0.4);
}

.webinar-btn--primary:active {
  transform: scale(0.97);
}

.webinar-btn--pink {
  background: var(--sfd-pink);
  color: white;
  box-shadow: var(--shadow-pink);
}

.webinar-btn--pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(238, 114, 142, 0.45);
}

.webinar-btn--pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(170, 200, 17, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(170, 200, 17, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(170, 200, 17, 0);
  }
}

/* Footer */
.webinar-footer {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-tint);
  color: var(--fg-3);
  font-size: 14px;
}

.webinar-footer p {
  margin-bottom: 8px;
}

.webinar-footer a {
  color: var(--fg-2);
  text-decoration: none;
}

.webinar-footer a:hover {
  color: var(--sfd-pink);
}

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

.webinar-animate-fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.webinar-delay-1 { animation-delay: 0.2s; }
.webinar-delay-2 { animation-delay: 0.4s; }
.webinar-delay-3 { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
  .webinar-hero {
    padding: 60px 0 80px;
  }

  .webinar-reg-card {
    margin-top: -60px;
  }

  .webinar-benefits__grid {
    grid-template-columns: 1fr;
  }

  .webinar-bonus__grid {
    grid-template-columns: 1fr;
  }

  .webinar-host__inner {
    flex-direction: column;
    text-align: center;
  }
}
