/* ============================================
   VARIÁVEIS CSS
   ============================================ */
:root {
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-secondary: #10b981;
  --color-accent: #8b5cf6;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-light: #f9fafb;
  --color-bg-section: #f3f4f6;
  --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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ============================================
   RESET E BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset para header fixo */
}

body {
  font-family: 'Poppins', 'Quicksand', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   HEADER FIXO
   ============================================ */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-urgency-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 1;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .header-container {
    flex-direction: column;
    padding: 0.5rem 1rem;
    gap: 0.75rem;
  }
  
  .header-urgency-wrapper {
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
  }
  
  .header-urgency {
    font-size: 0.75rem;
    text-align: center;
  }
  
  .countdown-timer {
    padding: 0.25rem 0.5rem;
  }
  
  .timer-label {
    font-size: 0.7rem;
  }
  
  .timer-display {
    font-size: 0.8rem;
  }
  
  .btn-header-cta {
    width: 100%;
    text-align: center;
  }
}

.header-urgency {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.timer-label {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

.timer-display {
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.btn-header-cta {
  background-color: var(--color-secondary);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.btn-header-cta:hover {
  background-color: #059669;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  margin-top: 60px;
  padding: 3rem 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  text-align: center;
}

.hero-headline {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subheadline {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #059669 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-hero {
  width: 100%;
  max-width: 400px;
}

/* ============================================
   FLIPBOOK PREVIEW
   ============================================ */
.hero-preview {
  width: 100%;
}

.flipbook-container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  padding: 1.5rem;
}

.flipbook-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.flipbook-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.flipbook-btn:hover {
  background-color: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.flipbook-btn:active {
  transform: scale(0.95);
}

.flipbook-page-info {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.875rem;
}

.current-page {
  color: var(--color-primary);
}

.flipbook-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.flipbook-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   SEÇÕES GERAIS
   ============================================ */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ============================================
   MATERIAIS INCLUSOS
   ============================================ */
.materials-section {
  background-color: var(--color-bg-light);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.material-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.material-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.material-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.material-pages {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ============================================
   BÔNUS EXCLUSIVOS
   ============================================ */
.bonus-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
}

.bonus-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.bonus-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.bonus-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bonus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
}

.bonus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.bonus-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.bonus-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.bonus-pages {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ============================================
   POR QUE ESCOLHER
   ============================================ */
.why-section {
  background-color: var(--color-bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.why-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.why-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.why-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
}

/* ============================================
   AUDIÊNCIA
   ============================================ */
.audience-section {
  background-color: var(--color-bg-light);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.audience-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.audience-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.audience-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.audience-description {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   SEÇÃO DE OFERTA
   ============================================ */
.offer-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  padding: 4rem 0;
}

.offer-box {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  color: var(--color-text);
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.offer-header {
  margin-bottom: 2rem;
}

.offer-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #059669 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.offer-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.offer-price {
  margin-bottom: 2rem;
}

.price-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.price-value {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.price-installment {
  font-size: 1.125rem;
  color: var(--color-text-light);
}

.offer-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
}

.benefit-item svg {
  color: var(--color-secondary);
  flex-shrink: 0;
}

.btn-offer {
  width: 100%;
  margin-bottom: 1rem;
}

.offer-guarantee {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* ============================================
   AUTORA
   ============================================ */
.author-section {
  background-color: var(--color-bg-light);
}

.author-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.author-image {
  text-align: center;
}

.author-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.author-info {
  text-align: center;
}

.author-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.author-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.author-list {
  list-style: none;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.author-list li {
  padding: 0.5rem 0;
  color: var(--color-text-light);
  position: relative;
  padding-left: 1.5rem;
}

.author-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

.author-experience p {
  color: var(--color-text-light);
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-text);
  color: white;
  padding: 3rem 0 2rem;
}

.footer-content {
  text-align: center;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-rights {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   RESPONSIVIDADE - TABLET
   ============================================ */
@media (min-width: 768px) {
  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-subheadline {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .materials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bonus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-content {
    grid-template-columns: 200px 1fr;
    text-align: left;
  }

  .author-info {
    text-align: left;
  }

  .author-list {
    margin: 0;
  }

  .author-experience p {
    margin: 0;
  }
}

/* ============================================
   RESPONSIVIDADE - DESKTOP
   ============================================ */
@media (min-width: 1024px) {
  .header-container {
    padding: 1rem 2rem;
  }

  .header-urgency {
    font-size: 1rem;
  }

  .btn-header-cta {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .hero-section {
    padding: 5rem 0;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .btn-hero {
    max-width: none;
  }

  .flipbook-wrapper {
    padding-bottom: 60%;
  }

  section {
    padding: 5rem 0;
  }

  .materials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bonus-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .offer-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.material-card,
.bonus-card,
.why-item,
.audience-card {
  animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   ANIMAÇÕES DO CRONÔMETRO
   ============================================ */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states para acessibilidade */
a:focus,
button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
