A Pen by Adriel Santos on CodePen.
Created
November 9, 2025 05:48
-
-
Save adrielcruz9966-a11y/11a088036f2f45f48a9623933659e231 to your computer and use it in GitHub Desktop.
Untitled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Método Emagrecimento em Casa | Descubra Sua Jornada Personalizada</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| :root { | |
| --primary: #27ae60; | |
| --primary-dark: #219653; | |
| --primary-light: #2ecc71; | |
| --secondary: #e67e22; | |
| --secondary-dark: #d35400; | |
| --accent: #9b59b6; | |
| --light: #f8f9fa; | |
| --dark: #2c3e50; | |
| --text: #34495e; | |
| --gray-light: #ecf0f1; | |
| --success: #27ae60; | |
| --shadow: 0 8px 24px rgba(0,0,0,0.1); | |
| --shadow-hover: 0 12px 28px rgba(0,0,0,0.15); | |
| --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); | |
| --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%); | |
| --water-gradient: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #e67e22 100%); | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: 'Montserrat', 'Segoe UI', sans-serif; | |
| -webkit-tap-highlight-color: transparent; | |
| } | |
| body { | |
| background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%); | |
| color: var(--text); | |
| line-height: 1.7; | |
| min-height: 100vh; | |
| padding: 15px; | |
| font-weight: 400; | |
| overflow-x: hidden; | |
| } | |
| .leaf-background { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| z-index: -1; | |
| opacity: 0.05; | |
| background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M30,10 C40,30 50,40 70,30 S90,20 100,30 L100,100 L0,100 Z" fill="%2327ae60"/></svg>'); | |
| background-size: cover; | |
| animation: wave 20s infinite linear; | |
| } | |
| @keyframes wave { | |
| 0% { transform: translateX(0) translateY(0); } | |
| 50% { transform: translateX(-5px) translateY(5px); } | |
| 100% { transform: translateX(0) translateY(0); } | |
| } | |
| .container { | |
| max-width: 100%; | |
| margin: 20px auto; | |
| background: white; | |
| border-radius: 20px; | |
| box-shadow: var(--shadow); | |
| overflow: hidden; | |
| position: relative; | |
| transition: all 0.4s ease; | |
| } | |
| /* ===== CAPA ===== */ | |
| .cover-container { | |
| padding: 40px 25px; | |
| text-align: center; | |
| background: var(--water-gradient); | |
| color: white; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .cover-container::before { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M30,10 C40,30 50,40 70,30 S90,20 100,30 L100,100 L0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>'); | |
| background-size: cover; | |
| animation: wave 15s infinite linear; | |
| } | |
| .cover-badge { | |
| display: inline-block; | |
| background: rgba(255,255,255,0.2); | |
| color: white; | |
| padding: 8px 16px; | |
| border-radius: 20px; | |
| font-size: 14px; | |
| font-weight: 600; | |
| margin-bottom: 20px; | |
| backdrop-filter: blur(10px); | |
| } | |
| .cover-title { | |
| font-size: 28px; | |
| margin-bottom: 15px; | |
| font-weight: 800; | |
| position: relative; | |
| text-shadow: 0 2px 4px rgba(0,0,0,0.1); | |
| line-height: 1.3; | |
| } | |
| .cover-subtitle { | |
| font-size: 18px; | |
| opacity: 0.9; | |
| margin-bottom: 25px; | |
| position: relative; | |
| line-height: 1.4; | |
| } | |
| .benefits-list { | |
| text-align: left; | |
| max-width: 500px; | |
| margin: 0 auto 30px; | |
| position: relative; | |
| } | |
| .benefit-item { | |
| display: flex; | |
| align-items: center; | |
| margin-bottom: 15px; | |
| font-size: 16px; | |
| } | |
| .benefit-item i { | |
| margin-right: 12px; | |
| color: var(--secondary); | |
| font-size: 20px; | |
| } | |
| /* CARROSSEL DE DEPOIMENTOS */ | |
| .testimonials-carousel { | |
| position: relative; | |
| height: 130px; | |
| overflow: hidden; | |
| margin: 25px auto; | |
| max-width: 500px; | |
| background: rgba(255,255,255,0.15); | |
| border-radius: 15px; | |
| padding: 15px; | |
| backdrop-filter: blur(10px); | |
| } | |
| .testimonial-slide { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| opacity: 0; | |
| transition: opacity 1s ease-in-out; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| padding: 10px; | |
| } | |
| .testimonial-slide.active { | |
| opacity: 1; | |
| } | |
| .testimonial-stars { | |
| color: #FFD700; | |
| font-size: 16px; | |
| margin-bottom: 8px; | |
| } | |
| .testimonial-text { | |
| font-size: 14px; | |
| margin-bottom: 8px; | |
| font-style: italic; | |
| } | |
| .testimonial-author { | |
| font-size: 13px; | |
| opacity: 0.9; | |
| } | |
| .start-button { | |
| background: var(--gradient-secondary); | |
| color: white; | |
| border: none; | |
| border-radius: 12px; | |
| padding: 18px 35px; | |
| font-size: 18px; | |
| font-weight: 700; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| box-shadow: 0 6px 15px rgba(230, 126, 34, 0.4); | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 10px; | |
| position: relative; | |
| overflow: hidden; | |
| margin-top: 10px; | |
| } | |
| .start-button:hover { | |
| transform: translateY(-3px); | |
| box-shadow: 0 10px 20px rgba(230, 126, 34, 0.5); | |
| } | |
| /* ===== QUIZ ===== */ | |
| .quiz-container { | |
| display: none; | |
| } | |
| .quiz-header { | |
| background: var(--water-gradient); | |
| color: white; | |
| padding: 30px 20px; | |
| text-align: center; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .quiz-header::before { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M30,10 C40,30 50,40 70,30 S90,20 100,30 L100,100 L0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>'); | |
| background-size: cover; | |
| animation: wave 15s infinite linear; | |
| } | |
| .quiz-badge { | |
| position: absolute; | |
| top: 15px; | |
| right: 15px; | |
| background: rgba(255,255,255,0.2); | |
| color: white; | |
| padding: 6px 12px; | |
| border-radius: 15px; | |
| font-size: 12px; | |
| font-weight: 600; | |
| backdrop-filter: blur(10px); | |
| z-index: 1; | |
| } | |
| .quiz-header h1 { | |
| font-size: 24px; | |
| margin-bottom: 12px; | |
| font-weight: 800; | |
| position: relative; | |
| text-shadow: 0 2px 4px rgba(0,0,0,0.1); | |
| z-index: 1; | |
| line-height: 1.3; | |
| } | |
| .quiz-header p { | |
| font-size: 16px; | |
| opacity: 0.9; | |
| font-weight: 400; | |
| max-width: 100%; | |
| margin: 0 auto; | |
| position: relative; | |
| z-index: 1; | |
| line-height: 1.4; | |
| } | |
| .progress-container { | |
| padding: 0 20px; | |
| background-color: white; | |
| position: relative; | |
| } | |
| .progress-bar { | |
| height: 8px; | |
| background-color: var(--gray-light); | |
| width: 100%; | |
| border-radius: 10px; | |
| overflow: hidden; | |
| margin: 15px 0 8px; | |
| } | |
| .progress { | |
| height: 100%; | |
| background: var(--water-gradient); | |
| width: 0%; | |
| transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); | |
| border-radius: 10px; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .progress::after { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| bottom: 0; | |
| right: 0; | |
| background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); | |
| animation: shimmer 2s infinite; | |
| } | |
| @keyframes shimmer { | |
| 0% { transform: translateX(-100%); } | |
| 100% { transform: translateX(100%); } | |
| } | |
| .progress-text { | |
| text-align: right; | |
| font-size: 13px; | |
| color: var(--text); | |
| margin-bottom: 8px; | |
| font-weight: 500; | |
| } | |
| .quiz-body { | |
| padding: 25px 20px; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .question-container { | |
| display: none; | |
| animation: slideIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); | |
| } | |
| .question-container.active { | |
| display: block; | |
| } | |
| @keyframes slideIn { | |
| from { | |
| opacity: 0; | |
| transform: translateX(30px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateX(0); | |
| } | |
| } | |
| .question-number { | |
| color: var(--primary); | |
| font-weight: 700; | |
| margin-bottom: 8px; | |
| font-size: 13px; | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| } | |
| .question-text { | |
| font-size: 20px; | |
| font-weight: 700; | |
| margin-bottom: 25px; | |
| color: var(--dark); | |
| line-height: 1.3; | |
| } | |
| .options-container { | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| gap: 12px; | |
| margin-bottom: 30px; | |
| } | |
| .option { | |
| padding: 18px 20px; | |
| border: 2px solid var(--gray-light); | |
| border-radius: 12px; | |
| cursor: pointer; | |
| transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); | |
| font-weight: 500; | |
| display: flex; | |
| align-items: center; | |
| position: relative; | |
| overflow: hidden; | |
| min-height: 70px; | |
| } | |
| .option::before { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| left: -100%; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(90deg, transparent, rgba(39, 174, 96, 0.05), transparent); | |
| transition: left 0.5s; | |
| } | |
| .option:active, .option:hover { | |
| border-color: var(--primary); | |
| transform: translateY(-2px); | |
| box-shadow: 0 5px 10px rgba(0,0,0,0.08); | |
| } | |
| .option.selected { | |
| border-color: var(--primary); | |
| background-color: rgba(39, 174, 96, 0.03); | |
| transform: translateY(-2px); | |
| box-shadow: 0 5px 10px rgba(0,0,0,0.05); | |
| } | |
| .option-icon { | |
| margin-right: 15px; | |
| font-size: 20px; | |
| color: var(--primary); | |
| min-width: 30px; | |
| text-align: center; | |
| flex-shrink: 0; | |
| } | |
| .navigation-buttons { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .btn { | |
| padding: 14px 20px; | |
| border: none; | |
| border-radius: 10px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| font-size: 15px; | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 8px; | |
| position: relative; | |
| overflow: hidden; | |
| flex: 1; | |
| min-height: 50px; | |
| } | |
| .btn-prev { | |
| background-color: var(--gray-light); | |
| color: var(--text); | |
| } | |
| .btn-prev:active { | |
| background-color: #d1d9e6; | |
| } | |
| .btn-next, .btn-submit { | |
| background: var(--gradient); | |
| color: white; | |
| box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3); | |
| } | |
| .btn-next:active, .btn-submit:active { | |
| transform: translateY(-2px); | |
| box-shadow: 0 6px 12px rgba(39, 174, 96, 0.4); | |
| } | |
| .btn-submit { | |
| background: var(--gradient-secondary); | |
| box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3); | |
| } | |
| /* ===== CONCLUSÃO ===== */ | |
| .conclusion-container { | |
| display: none; | |
| padding: 25px 20px; | |
| animation: fadeInUp 0.8s ease; | |
| } | |
| .conclusion-header { | |
| text-align: center; | |
| margin-bottom: 30px; | |
| padding-bottom: 20px; | |
| border-bottom: 1px solid var(--gray-light); | |
| position: relative; | |
| } | |
| .conclusion-header::after { | |
| content: ""; | |
| position: absolute; | |
| bottom: -1px; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| width: 80px; | |
| height: 3px; | |
| background: var(--gradient-secondary); | |
| border-radius: 3px; | |
| } | |
| .conclusion-icon { | |
| font-size: 60px; | |
| color: var(--primary); | |
| margin-bottom: 15px; | |
| } | |
| .conclusion-title { | |
| font-size: 24px; | |
| color: var(--primary); | |
| margin-bottom: 12px; | |
| font-weight: 800; | |
| line-height: 1.3; | |
| } | |
| .conclusion-subtitle { | |
| font-size: 16px; | |
| color: var(--text); | |
| max-width: 100%; | |
| margin: 0 auto; | |
| line-height: 1.4; | |
| } | |
| .expert-recommendation { | |
| background: linear-gradient(135deg, #e8f5e9, #c8e6c9); | |
| border-radius: 14px; | |
| padding: 20px; | |
| margin: 20px 0; | |
| border-left: 5px solid var(--primary); | |
| text-align: center; | |
| } | |
| .expert-title { | |
| font-size: 18px; | |
| font-weight: 700; | |
| margin-bottom: 10px; | |
| color: var(--primary-dark); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 8px; | |
| } | |
| .expert-text { | |
| font-size: 16px; | |
| color: var(--dark); | |
| line-height: 1.5; | |
| } | |
| .answers-summary { | |
| background-color: #f8f9fa; | |
| border-radius: 14px; | |
| padding: 20px; | |
| margin: 25px 0; | |
| box-shadow: 0 5px 12px rgba(0,0,0,0.05); | |
| border-left: 5px solid var(--primary); | |
| } | |
| .answers-title { | |
| font-size: 18px; | |
| font-weight: 700; | |
| margin-bottom: 15px; | |
| color: var(--dark); | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .answers-title i { | |
| color: var(--primary); | |
| } | |
| .answers-list { | |
| list-style-type: none; | |
| } | |
| .answers-list li { | |
| margin-bottom: 12px; | |
| padding-left: 28px; | |
| position: relative; | |
| font-size: 14px; | |
| line-height: 1.4; | |
| } | |
| .answers-list li:before { | |
| content: "•"; | |
| position: absolute; | |
| left: 10px; | |
| color: var(--primary); | |
| font-weight: bold; | |
| font-size: 18px; | |
| } | |
| .loading-container { | |
| text-align: center; | |
| padding: 30px 20px; | |
| margin: 25px 0; | |
| background: #f8f9fa; | |
| border-radius: 14px; | |
| display: none; | |
| } | |
| .loading-spinner { | |
| width: 50px; | |
| height: 50px; | |
| border: 5px solid #f3f3f3; | |
| border-top: 5px solid var(--primary); | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| margin: 0 auto 20px; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| .loading-text { | |
| font-size: 18px; | |
| font-weight: 600; | |
| color: var(--primary); | |
| } | |
| .opportunity-container { | |
| display: none; | |
| margin: 25px 0; | |
| animation: fadeInUp 0.8s ease; | |
| } | |
| .opportunity-badge { | |
| display: inline-block; | |
| background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); | |
| color: white; | |
| padding: 8px 18px; | |
| border-radius: 15px; | |
| font-size: 14px; | |
| font-weight: 600; | |
| margin: 12px 0; | |
| animation: pulse 2s infinite; | |
| text-align: center; | |
| width: 100%; | |
| } | |
| @keyframes pulse { | |
| 0% { transform: scale(1); } | |
| 50% { transform: scale(1.05); } | |
| 100% { transform: scale(1); } | |
| } | |
| .offer-box { | |
| background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%); | |
| border-radius: 16px; | |
| padding: 25px; | |
| border: 1px solid rgba(230, 126, 34, 0.3); | |
| box-shadow: 0 8px 20px rgba(0,0,0,0.08); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .offer-box::before { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| width: 120px; | |
| height: 120px; | |
| background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, transparent 70%); | |
| border-radius: 0 0 0 100%; | |
| } | |
| .offer-header { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| margin-bottom: 15px; | |
| } | |
| .offer-title { | |
| font-size: 20px; | |
| font-weight: 700; | |
| color: var(--dark); | |
| } | |
| .offer-badge { | |
| background: var(--gradient-secondary); | |
| color: white; | |
| padding: 6px 14px; | |
| border-radius: 15px; | |
| font-size: 13px; | |
| font-weight: 600; | |
| align-self: flex-start; | |
| } | |
| /* CONTADOR REGRESSIVO */ | |
| .countdown-timer { | |
| background: rgba(231, 76, 60, 0.1); | |
| border-radius: 12px; | |
| padding: 15px; | |
| text-align: center; | |
| margin: 20px 0; | |
| border: 1px dashed #e74c3c; | |
| } | |
| .countdown-title { | |
| font-size: 16px; | |
| font-weight: 600; | |
| color: #e74c3c; | |
| margin-bottom: 10px; | |
| } | |
| .countdown-numbers { | |
| display: flex; | |
| justify-content: center; | |
| gap: 10px; | |
| } | |
| .countdown-item { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| } | |
| .countdown-value { | |
| font-size: 24px; | |
| font-weight: 800; | |
| color: #e74c3c; | |
| background: white; | |
| padding: 8px 12px; | |
| border-radius: 8px; | |
| min-width: 50px; | |
| box-shadow: 0 3px 6px rgba(0,0,0,0.1); | |
| } | |
| .countdown-label { | |
| font-size: 12px; | |
| color: var(--text); | |
| margin-top: 5px; | |
| } | |
| .bonus-list { | |
| margin: 20px 0; | |
| } | |
| .bonus-list li { | |
| margin-bottom: 12px; | |
| padding-left: 30px; | |
| position: relative; | |
| font-size: 14px; | |
| line-height: 1.4; | |
| } | |
| .bonus-list li:before { | |
| content: "🎁"; | |
| position: absolute; | |
| left: 0; | |
| font-size: 18px; | |
| } | |
| .cta-button { | |
| background: var(--gradient-secondary); | |
| color: white; | |
| border: none; | |
| border-radius: 10px; | |
| padding: 18px 20px; | |
| font-size: 18px; | |
| font-weight: 700; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| width: 100%; | |
| box-shadow: 0 6px 12px rgba(230, 126, 34, 0.4); | |
| margin: 15px 0; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 10px; | |
| position: relative; | |
| overflow: hidden; | |
| min-height: 60px; | |
| } | |
| .cta-button:active { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 15px rgba(230, 126, 34, 0.5); | |
| } | |
| .warning-note { | |
| text-align: center; | |
| font-size: 14px; | |
| color: #e74c3c; | |
| margin-top: 10px; | |
| font-weight: 600; | |
| line-height: 1.4; | |
| padding: 10px; | |
| background: rgba(231, 76, 60, 0.05); | |
| border-radius: 8px; | |
| border: 1px dashed #e74c3c; | |
| } | |
| .guarantee-badge { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background-color: white; | |
| border-radius: 10px; | |
| padding: 12px 18px; | |
| margin: 15px 0; | |
| box-shadow: 0 3px 8px rgba(0,0,0,0.05); | |
| border: 1px solid var(--gray-light); | |
| gap: 8px; | |
| text-align: center; | |
| } | |
| .guarantee-icon { | |
| font-size: 22px; | |
| color: var(--primary); | |
| flex-shrink: 0; | |
| } | |
| @keyframes fadeInUp { | |
| from { opacity: 0; transform: translateY(15px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| /* ===== SEÇÃO DO VÍDEO ===== */ | |
| .video-section { | |
| display: none; | |
| padding: 0; | |
| } | |
| .video-header { | |
| width: 100%; | |
| background: white; | |
| padding: 20px 0; | |
| text-align: center; | |
| border-bottom: 1px solid #e0e0e0; | |
| } | |
| .video-logo { | |
| font-size: 2.5rem; | |
| font-weight: bold; | |
| color: #2c3e50; | |
| margin-bottom: 10px; | |
| } | |
| .video-title { | |
| font-size: 1.8rem; | |
| color: #e74c3c; | |
| margin-bottom: 10px; | |
| font-weight: 700; | |
| } | |
| .video-subtitle { | |
| font-size: 1.2rem; | |
| color: #7f8c8d; | |
| max-width: 800px; | |
| margin: 0 auto; | |
| } | |
| .divider { | |
| width: 80%; | |
| height: 2px; | |
| background: linear-gradient(90deg, transparent, #3498db, transparent); | |
| margin: 20px auto; | |
| } | |
| .video-container { | |
| max-width: 900px; | |
| width: 100%; | |
| margin: 0 auto 30px; | |
| padding: 0 20px; | |
| } | |
| .player-container { | |
| position: relative; | |
| width: 100%; | |
| margin-bottom: 20px; | |
| border-radius: 8px; | |
| overflow: hidden; | |
| box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); | |
| } | |
| #player { | |
| width: 100%; | |
| height: 500px; | |
| border: none; | |
| } | |
| /* WhatsApp Popup */ | |
| .whatsapp-popup { | |
| position: fixed; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%) scale(0); | |
| width: 400px; | |
| background: white; | |
| border-radius: 15px; | |
| padding: 30px; | |
| text-align: center; | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); | |
| z-index: 1000; | |
| opacity: 0; | |
| transition: all 0.4s ease; | |
| color: #333; | |
| } | |
| .whatsapp-popup.active { | |
| transform: translate(-50%, -50%) scale(1); | |
| opacity: 1; | |
| } | |
| .whatsapp-icon { | |
| font-size: 4rem; | |
| color: #25D366; | |
| margin-bottom: 15px; | |
| } | |
| .whatsapp-popup h3 { | |
| font-size: 1.5rem; | |
| margin-bottom: 15px; | |
| color: #25D366; | |
| font-weight: bold; | |
| } | |
| .whatsapp-popup .warning { | |
| font-size: 1.1rem; | |
| margin-bottom: 20px; | |
| color: #e74c3c; | |
| font-weight: 600; | |
| line-height: 1.4; | |
| } | |
| .name-input { | |
| width: 100%; | |
| padding: 12px 15px; | |
| margin-bottom: 20px; | |
| border: 2px solid #ddd; | |
| border-radius: 8px; | |
| font-size: 1rem; | |
| transition: border-color 0.3s; | |
| } | |
| .name-input:focus { | |
| outline: none; | |
| border-color: #25D366; | |
| } | |
| .whatsapp-btn { | |
| display: inline-block; | |
| background: linear-gradient(90deg, #25D366, #128C7E); | |
| color: white; | |
| padding: 15px 30px; | |
| border-radius: 50px; | |
| text-decoration: none; | |
| font-weight: bold; | |
| font-size: 1.1rem; | |
| transition: all 0.3s ease; | |
| box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); | |
| width: 100%; | |
| border: none; | |
| cursor: pointer; | |
| } | |
| .whatsapp-btn:hover { | |
| transform: translateY(-3px); | |
| box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); | |
| } | |
| .whatsapp-btn i { | |
| margin-right: 10px; | |
| } | |
| .overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 0, 0, 0.7); | |
| z-index: 999; | |
| opacity: 0; | |
| visibility: hidden; | |
| transition: all 0.3s ease; | |
| } | |
| .overlay.active { | |
| opacity: 1; | |
| visibility: visible; | |
| } | |
| footer { | |
| margin-top: 40px; | |
| text-align: center; | |
| color: #7f8c8d; | |
| font-size: 0.9rem; | |
| padding: 20px; | |
| width: 100%; | |
| background: white; | |
| } | |
| /* Ajustes para telas muito pequenas */ | |
| @media (max-width: 360px) { | |
| body { | |
| padding: 10px; | |
| } | |
| .container { | |
| margin: 10px auto; | |
| border-radius: 15px; | |
| } | |
| .cover-container { | |
| padding: 30px 20px; | |
| } | |
| .cover-title { | |
| font-size: 24px; | |
| } | |
| .quiz-header { | |
| padding: 25px 15px; | |
| } | |
| .quiz-header h1 { | |
| font-size: 22px; | |
| } | |
| .quiz-body { | |
| padding: 20px 15px; | |
| } | |
| .question-text { | |
| font-size: 18px; | |
| } | |
| .option { | |
| padding: 15px 18px; | |
| min-height: 65px; | |
| } | |
| .btn { | |
| padding: 12px 15px; | |
| font-size: 14px; | |
| } | |
| .conclusion-container { | |
| padding: 20px 15px; | |
| } | |
| .conclusion-title { | |
| font-size: 22px; | |
| } | |
| #player { | |
| height: 300px; | |
| } | |
| .video-logo { | |
| font-size: 2rem; | |
| } | |
| .video-title { | |
| font-size: 1.5rem; | |
| } | |
| .whatsapp-popup { | |
| width: 90%; | |
| max-width: 350px; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="leaf-background"></div> | |
| <!-- SEÇÃO DO QUIZ --> | |
| <div class="container" id="quiz-section"> | |
| <!-- CAPA PERSUASIVA --> | |
| <div class="cover-container" id="cover"> | |
| <div class="cover-badge">MÉTODO EXCLUSIVO</div> | |
| <h1 class="cover-title">Descubra Como Emagrecer de Forma Natural Sem Precisar Ir à Academia</h1> | |
| <p class="cover-subtitle">Em menos de 3 minutos, identifique seus bloqueios e receba um plano personalizado para transformar seu corpo sem sair de casa</p> | |
| <div class="benefits-list"> | |
| <div class="benefit-item"> | |
| <i class="fas fa-check-circle"></i> | |
| <span>Método 100% adaptado ao seu estilo de vida</span> | |
| </div> | |
| <div class="benefit-item"> | |
| <i class="fas fa-check-circle"></i> | |
| <span>Exercícios simples que cabem na sua rotina</span> | |
| </div> | |
| <div class="benefit-item"> | |
| <i class="fas fa-check-circle"></i> | |
| <span>Resultados visíveis em 30 dias</span> | |
| </div> | |
| <div class="benefit-item"> | |
| <i class="fas fa-check-circle"></i> | |
| <span>Suporte nutricional e motivacional</span> | |
| </div> | |
| </div> | |
| <!-- CARROSSEL DE DEPOIMENTOS --> | |
| <div class="testimonials-carousel" id="testimonialsCarousel"> | |
| <div class="testimonial-slide active"> | |
| <div class="testimonial-stars"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| <p class="testimonial-text">"Perdi 8kg em 2 meses sem pisar na academia! O método mudou minha vida!"</p> | |
| <p class="testimonial-author">- Ana S., 32 anos</p> | |
| </div> | |
| <div class="testimonial-slide"> | |
| <div class="testimonial-stars"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| <p class="testimonial-text">"Finalmente encontrei um jeito de emagrecer que não exige horas na academia!"</p> | |
| <p class="testimonial-author">- Carla R., 41 anos</p> | |
| </div> | |
| <div class="testimonial-slide"> | |
| <div class="testimonial-stars"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| <p class="testimonial-text">"Emagreci 12kg e conquistei o corpo que sempre sonhei, tudo em casa!"</p> | |
| <p class="testimonial-author">- Mariana L., 28 anos</p> | |
| </div> | |
| <div class="testimonial-slide"> | |
| <div class="testimonial-stars"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| <p class="testimonial-text">"O suporte foi fundamental! Nunca me senti sozinha nessa jornada."</p> | |
| <p class="testimonial-author">- Juliana M., 35 anos</p> | |
| </div> | |
| </div> | |
| <button class="start-button" id="start-button"> | |
| <i class="fas fa-play-circle"></i> DESCUBRIR MEU MÉTODO IDEAL | |
| </button> | |
| <p style="margin-top: 15px; font-size: 14px; opacity: 0.8;">100% gratuito • Leva apenas 2 minutos</p> | |
| </div> | |
| <!-- QUIZ DE AUTODESCOBERTA --> | |
| <div class="quiz-container" id="quiz"> | |
| <div class="quiz-header"> | |
| <div class="quiz-badge">PERSONALIZADO</div> | |
| <h1>Quiz: Descubra Seu Método Ideal de Emagrecimento</h1> | |
| <p>Responda 5 perguntas rápidas para receber um plano 100% adaptado às suas necessidades</p> | |
| </div> | |
| <div class="progress-container"> | |
| <div class="progress-text">Pergunta <span id="current-question">1</span> de 5</div> | |
| <div class="progress-bar"> | |
| <div class="progress" id="progress" style="width: 20%;"></div> | |
| </div> | |
| </div> | |
| <div class="quiz-body"> | |
| <!-- PERGUNTA 1 --> | |
| <div class="question-container active" id="question-1"> | |
| <div class="question-number">Pergunta 1 de 5</div> | |
| <h2 class="question-text">Qual é seu principal objetivo com o emagrecimento?</h2> | |
| <div class="options-container"> | |
| <div class="option" data-value="perda-peso-rapida"> | |
| <div class="option-icon"><i class="fas fa-bolt"></i></div> | |
| <div>Perder peso rapidamente para um evento especial</div> | |
| </div> | |
| <div class="option" data-value="emagrecimento-saudavel"> | |
| <div class="option-icon"><i class="fas fa-heart"></i></div> | |
| <div>Emagrecer de forma saudável e sustentável</div> | |
| </div> | |
| <div class="option" data-value="melhorar-autoestima"> | |
| <div class="option-icon"><i class="fas fa-smile"></i></div> | |
| <div>Melhorar minha autoestima e confiança</div> | |
| </div> | |
| <div class="option" data-value="ganhar-disposicao"> | |
| <div class="option-icon"><i class="fas fa-running"></i></div> | |
| <div>Ganhar mais disposição e energia no dia a dia</div> | |
| </div> | |
| </div> | |
| <div class="navigation-buttons"> | |
| <button class="btn btn-next" onclick="nextQuestion(1)">Próxima <i class="fas fa-arrow-right"></i></button> | |
| </div> | |
| </div> | |
| <!-- PERGUNTA 2 --> | |
| <div class="question-container" id="question-2"> | |
| <div class="question-number">Pergunta 2 de 5</div> | |
| <h2 class="question-text">Qual é o maior desafio que você enfrenta para emagrecer?</h2> | |
| <div class="options-container"> | |
| <div class="option" data-value="falta-tempo"> | |
| <div class="option-icon"><i class="fas fa-clock"></i></div> | |
| <div>Falta de tempo para se exercitar</div> | |
| </div> | |
| <div class="option" data-value="compulsao-alimentar"> | |
| <div class="option-icon"><i class="fas fa-utensils"></i></div> | |
| <div>Compulsão alimentar e ansiedade</div> | |
| </div> | |
| <div class="option" data-value="falta-motivacao"> | |
| <div class="option-icon"><i class="fas fa-battery-quarter"></i></div> | |
| <div>Falta de motivação e disciplina</div> | |
| </div> | |
| <div class="option" data-value="metabolismo-lento"> | |
| <div class="option-icon"><i class="fas fa-tachometer-alt"></i></div> | |
| <div>Metabolismo lento, dificuldade para perder peso</div> | |
| </div> | |
| </div> | |
| <div class="navigation-buttons"> | |
| <button class="btn btn-prev" onclick="prevQuestion(2)"><i class="fas fa-arrow-left"></i> Anterior</button> | |
| <button class="btn btn-next" onclick="nextQuestion(2)">Próxima <i class="fas fa-arrow-right"></i></button> | |
| </div> | |
| </div> | |
| <!-- PERGUNTA 3 --> | |
| <div class="question-container" id="question-3"> | |
| <div class="question-number">Pergunta 3 de 5</div> | |
| <h2 class="question-text">Como você descreveria sua rotina atual?</h2> | |
| <div class="options-container"> | |
| <div class="option" data-value="rotina-sedentaria"> | |
| <div class="option-icon"><i class="fas fa-couch"></i></div> | |
| <div>Sedentária, passo a maior parte do tempo sentado(a)</div> | |
| </div> | |
| <div class="option" data-value="rotina-moderada"> | |
| <div class="option-icon"><i class="fas fa-walking"></i></div> | |
| <div>Moderadamente ativa, com algumas caminhadas</div> | |
| </div> | |
| <div class="option" data-value="rotina-corrida"> | |
| <div class="option-icon"><i class="fas fa-running"></i></div> | |
| <div>Corrida, com pouco tempo para exercícios</div> | |
| </div> | |
| <div class="option" data-value="rotina-flexivel"> | |
| <div class="option-icon"><i class="fas fa-user-clock"></i></div> | |
| <div>Flexível, consigo adaptar minha rotina</div> | |
| </div> | |
| </div> | |
| <div class="navigation-buttons"> | |
| <button class="btn btn-prev" onclick="prevQuestion(3)"><i class="fas fa-arrow-left"></i> Anterior</button> | |
| <button class="btn btn-next" onclick="nextQuestion(3)">Próxima <i class="fas fa-arrow-right"></i></button> | |
| </div> | |
| </div> | |
| <!-- PERGUNTA 4 --> | |
| <div class="question-container" id="question-4"> | |
| <div class="question-number">Pergunta 4 de 5</div> | |
| <h2 class="question-text">Qual parte do corpo você gostaria de trabalhar mais?</h2> | |
| <div class="options-container"> | |
| <div class="option" data-value="abdomen"> | |
| <div class="option-icon"><i class="fas fa-dumbbell"></i></div> | |
| <div>Abdômen e cintura</div> | |
| </div> | |
| <div class="option" data-value="pernas-gluteos"> | |
| <div class="option-icon"><i class="fas fa-walking"></i></div> | |
| <div>Pernas e glúteos</div> | |
| </div> | |
| <div class="option" data-value="braços-costas"> | |
| <div class="option-icon"><i class="fas fa-hands"></i></div> | |
| <div>Braços e costas</div> | |
| </div> | |
| <div class="option" data-value="corpo-inteiro"> | |
| <div class="option-icon"><i class="fas fa-user"></i></div> | |
| <div>Corpo inteiro, de forma equilibrada</div> | |
| </div> | |
| </div> | |
| <div class="navigation-buttons"> | |
| <button class="btn btn-prev" onclick="prevQuestion(4)"><i class="fas fa-arrow-left"></i> Anterior</button> | |
| <button class="btn btn-next" onclick="nextQuestion(4)">Próxima <i class="fas fa-arrow-right"></i></button> | |
| </div> | |
| </div> | |
| <!-- PERGUNTA 5 --> | |
| <div class="question-container" id="question-5"> | |
| <div class="question-number">Pergunta 5 de 5</div> | |
| <h2 class="question-text">Quanto tempo você pode dedicar aos exercícios por dia?</h2> | |
| <div class="options-container"> | |
| <div class="option" data-value="15-minutos"> | |
| <div class="option-icon"><i class="fas fa-clock"></i></div> | |
| <div>Até 15 minutos</div> | |
| </div> | |
| <div class="option" data-value="30-minutos"> | |
| <div class="option-icon"><i class="fas fa-clock"></i></div> | |
| <div>15 a 30 minutos</div> | |
| </div> | |
| <div class="option" data-value="45-minutos"> | |
| <div class="option-icon"><i class="fas fa-clock"></i></div> | |
| <div>30 a 45 minutos</div> | |
| </div> | |
| <div class="option" data-value="1-hora"> | |
| <div class="option-icon"><i class="fas fa-clock"></i></div> | |
| <div>45 minutos a 1 hora</div> | |
| </div> | |
| </div> | |
| <div class="navigation-buttons"> | |
| <button class="btn btn-prev" onclick="prevQuestion(5)"><i class="fas fa-arrow-left"></i> Anterior</button> | |
| <button class="btn btn-submit" onclick="submitQuiz()">Ver Meu Resultado <i class="fas fa-chart-line"></i></button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- CONCLUSÃO PERSONALIZADA --> | |
| <div class="conclusion-container" id="conclusion"> | |
| <div class="conclusion-header"> | |
| <div class="conclusion-icon">🎯</div> | |
| <h2 class="conclusion-title">Análise Completa: Seu Perfil Único</h2> | |
| <p class="conclusion-subtitle">Com base nas suas respostas, identificamos seus principais desafios e oportunidades para emagrecer sem academia</p> | |
| </div> | |
| <!-- RECOMENDAÇÃO DO ESPECIALISTA --> | |
| <div class="expert-recommendation"> | |
| <h3 class="expert-title"><i class="fas fa-user-md"></i> ESPECIALISTA RECOMENDA</h3> | |
| <p class="expert-text">"Com base na minha experiência de 10 anos com nutrição e emagrecimento, recomendo este perfil personalizado para você. Seus objetivos e limitações se alinham perfeitamente com nossa metodologia comprovada de emagrecimento em casa."</p> | |
| <p style="margin-top: 10px; font-weight: 600;">- Dra. Mariana Costa, Nutricionista e Especialista em Emagrecimento</p> | |
| </div> | |
| <div class="answers-summary"> | |
| <h3 class="answers-title"><i class="fas fa-clipboard-list"></i> Resumo das Suas Respostas</h3> | |
| <ul class="answers-list" id="answers-list"> | |
| <!-- As respostas serão inseridas aqui via JavaScript --> | |
| </ul> | |
| </div> | |
| <div class="loading-container" id="loading"> | |
| <div class="loading-spinner"></div> | |
| <p class="loading-text">Analisando suas respostas e criando sua solução personalizada...</p> | |
| </div> | |
| <div class="opportunity-container" id="opportunity"> | |
| <div class="opportunity-badge">OPORTUNIDADE EXCLUSIVA</div> | |
| <div class="offer-box"> | |
| <div class="offer-header"> | |
| <h3 class="offer-title">Método Emagrecimento em Casa</h3> | |
| <div class="offer-badge">SOLUÇÃO PERSONALIZADA</div> | |
| </div> | |
| <!-- CONTADOR REGRESSIVO --> | |
| <div class="countdown-timer"> | |
| <div class="countdown-title">OFERTA EXPIRA EM:</div> | |
| <div class="countdown-numbers"> | |
| <div class="countdown-item"> | |
| <div class="countdown-value" id="countdown-hours">01</div> | |
| <div class="countdown-label">Horas</div> | |
| </div> | |
| <div class="countdown-item"> | |
| <div class="countdown-value" id="countdown-minutes">00</div> | |
| <div class="countdown-label">Minutos</div> | |
| </div> | |
| <div class="countdown-item"> | |
| <div class="countdown-value" id="countdown-seconds">00</div> | |
| <div class="countdown-label">Segundos</div> | |
| </div> | |
| </div> | |
| </div> | |
| <p style="text-align: center; margin: 15px 0; font-weight: 600;">A solução perfeita para emagrecer sem academia</p> | |
| <ul class="bonus-list"> | |
| <li><strong>Plano personalizado de 30 dias</strong> - Baseado no seu perfil exclusivo</li> | |
| <li><strong>Exercícios adaptativos</strong> - Que evoluem com seu progresso</li> | |
| <li><strong>Rotinas curtas e eficazes</strong> - Para encaixar na sua rotina</li> | |
| <li><strong>Foco nas suas áreas prioritárias</strong> - Para resultados mais rápidos</li> | |
| <li><strong>Guia alimentar personalizado</strong> - Sem dietas restritivas</li> | |
| <li><strong>Suporte individual</strong> - Tire dúvidas diretamente com especialistas</li> | |
| <li><strong>Comunidade exclusiva</strong> - Troque experiências com pessoas como você</li> | |
| <li><strong>Acesso vitalício</strong> - Volte sempre que precisar</li> | |
| </ul> | |
| <button class="cta-button" id="final-cta"> | |
| <i class="fas fa-bolt"></i> GARANTIR MEU ACESSO AGORA! | |
| </button> | |
| <div class="warning-note"> | |
| Por ser muito eficaz esse produto, pessoas grandes querem tirar essa oportunidade do ar.<br> | |
| Acesso a seguir | |
| </div> | |
| <div class="guarantee-badge"> | |
| <span class="guarantee-icon">🔒</span> | |
| <div> | |
| <strong>Garantia de 7 Dias</strong> - Resultados ou devolvemos seu investimento | |
| </div> | |
| </div> | |
| <div style="text-align: center; margin-top: 15px;"> | |
| <img src="https://img.icons8.com/color/48/000000/ssl-lock.png" width="20" style="vertical-align: middle; margin-right: 6px;"> | |
| <span style="font-size: 13px; color: var(--text);">Pagamento 100% seguro</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- SEÇÃO DO VÍDEO --> | |
| <div class="video-section" id="video-section"> | |
| <div class="video-header"> | |
| <div class="video-logo">GRUPO SMART</div> | |
| <div class="video-title">COMO EMAGRECER SEM IR À ACADEMIA</div> | |
| <div class="video-subtitle">Veja os benefícios deste curso no vídeo abaixo</div> | |
| <div class="divider"></div> | |
| </div> | |
| <div class="video-container"> | |
| <div class="player-container"> | |
| <div id="player"></div> | |
| </div> | |
| </div> | |
| <!-- WhatsApp Popup --> | |
| <div class="overlay" id="overlay"></div> | |
| <div class="whatsapp-popup" id="whatsappPopup"> | |
| <div class="whatsapp-icon"> | |
| <i class="fab fa-whatsapp"></i> | |
| </div> | |
| <h3>Atenção!</h3> | |
| <div class="warning">Por ser eficaz, pessoas querem tirar esse vídeo do ar</div> | |
| <input type="text" class="name-input" id="nameInput" placeholder="Digite seu nome"> | |
| <button class="whatsapp-btn" id="whatsappBtn"> | |
| <i class="fab fa-whatsapp"></i> Continuar pelo WhatsApp | |
| </button> | |
| </div> | |
| <footer> | |
| <p>GRUPO SMART - Como Emagrecer Sem Ir à Academia</p> | |
| </footer> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Elementos do DOM | |
| const quizSection = document.getElementById('quiz-section'); | |
| const videoSection = document.getElementById('video-section'); | |
| const cover = document.getElementById('cover'); | |
| const quiz = document.getElementById('quiz'); | |
| const conclusion = document.getElementById('conclusion'); | |
| const startButton = document.getElementById('start-button'); | |
| const progressBar = document.getElementById('progress'); | |
| const questionContainers = document.querySelectorAll('.question-container'); | |
| const options = document.querySelectorAll('.option'); | |
| const answersList = document.getElementById('answers-list'); | |
| const loading = document.getElementById('loading'); | |
| const opportunity = document.getElementById('opportunity'); | |
| const finalCta = document.getElementById('final-cta'); | |
| const testimonialsCarousel = document.getElementById('testimonialsCarousel'); | |
| const countdownHours = document.getElementById('countdown-hours'); | |
| const countdownMinutes = document.getElementById('countdown-minutes'); | |
| const countdownSeconds = document.getElementById('countdown-seconds'); | |
| // Elementos da seção de vídeo | |
| const whatsappPopup = document.getElementById('whatsappPopup'); | |
| const overlay = document.getElementById('overlay'); | |
| const nameInput = document.getElementById('nameInput'); | |
| const whatsappBtn = document.getElementById('whatsappBtn'); | |
| // Variáveis de controle | |
| let currentQuestion = 1; | |
| const totalQuestions = 5; | |
| const answers = {}; | |
| // CARROSSEL DE DEPOIMENTOS | |
| let currentTestimonial = 0; | |
| const testimonialSlides = testimonialsCarousel.querySelectorAll('.testimonial-slide'); | |
| function rotateTestimonials() { | |
| // Remove a classe active do slide atual | |
| testimonialSlides[currentTestimonial].classList.remove('active'); | |
| // Avança para o próximo slide | |
| currentTestimonial = (currentTestimonial + 1) % testimonialSlides.length; | |
| // Adiciona a classe active ao próximo slide | |
| testimonialSlides[currentTestimonial].classList.add('active'); | |
| } | |
| // Inicia o carrossel a cada 3 segundos | |
| setInterval(rotateTestimonials, 3000); | |
| // CONTADOR REGRESSIVO | |
| let countdownTime = 60 * 60; // 1 hora em segundos | |
| function updateCountdown() { | |
| const hours = Math.floor(countdownTime / 3600); | |
| const minutes = Math.floor((countdownTime % 3600) / 60); | |
| const seconds = countdownTime % 60; | |
| countdownHours.textContent = hours.toString().padStart(2, '0'); | |
| countdownMinutes.textContent = minutes.toString().padStart(2, '0'); | |
| countdownSeconds.textContent = seconds.toString().padStart(2, '0'); | |
| if (countdownTime > 0) { | |
| countdownTime--; | |
| setTimeout(updateCountdown, 1000); | |
| } | |
| } | |
| // Mapeamento das respostas para texto amigável | |
| const answerLabels = { | |
| // Pergunta 1 | |
| 'perda-peso-rapida': 'Perder peso rapidamente para um evento especial', | |
| 'emagrecimento-saudavel': 'Emagrecer de forma saudável e sustentável', | |
| 'melhorar-autoestima': 'Melhorar minha autoestima e confiança', | |
| 'ganhar-disposicao': 'Ganhar mais disposição e energia no dia a dia', | |
| // Pergunta 2 | |
| 'falta-tempo': 'Falta de tempo para se exercitar', | |
| 'compulsao-alimentar': 'Compulsão alimentar e ansiedade', | |
| 'falta-motivacao': 'Falta de motivação e disciplina', | |
| 'metabolismo-lento': 'Metabolismo lento, dificuldade para perder peso', | |
| // Pergunta 3 | |
| 'rotina-sedentaria': 'Sedentária, passo a maior parte do tempo sentado(a)', | |
| 'rotina-moderada': 'Moderadamente ativa, com algumas caminhadas', | |
| 'rotina-corrida': 'Corrida, com pouco tempo para exercícios', | |
| 'rotina-flexivel': 'Flexível, consigo adaptar minha rotina', | |
| // Pergunta 4 | |
| 'abdomen': 'Abdômen e cintura', | |
| 'pernas-gluteos': 'Pernas e glúteos', | |
| 'braços-costas': 'Braços e costas', | |
| 'corpo-inteiro': 'Corpo inteiro, de forma equilibrada', | |
| // Pergunta 5 | |
| '15-minutos': 'Até 15 minutos', | |
| '30-minutos': '15 a 30 minutos', | |
| '45-minutos': '30 a 45 minutos', | |
| '1-hora': '45 minutos a 1 hora' | |
| }; | |
| // Inicia o contador regressivo | |
| updateCountdown(); | |
| // Evento para iniciar o quiz | |
| startButton.addEventListener('click', function() { | |
| cover.style.display = 'none'; | |
| quiz.style.display = 'block'; | |
| }); | |
| // Evento para as opções de resposta | |
| options.forEach(option => { | |
| option.addEventListener('click', function() { | |
| // Remove a seleção de todas as opções da pergunta atual | |
| const parentContainer = this.closest('.question-container'); | |
| const allOptions = parentContainer.querySelectorAll('.option'); | |
| allOptions.forEach(opt => opt.classList.remove('selected')); | |
| // Seleciona a opção clicada | |
| this.classList.add('selected'); | |
| // Salva a resposta | |
| const questionId = parentContainer.id.split('-')[1]; | |
| answers[questionId] = this.getAttribute('data-value'); | |
| }); | |
| }); | |
| // Função para avançar para a próxima pergunta | |
| window.nextQuestion = function(current) { | |
| if (current < totalQuestions) { | |
| // Valida se uma opção foi selecionada | |
| const currentContainer = document.getElementById(`question-${current}`); | |
| const selectedOption = currentContainer.querySelector('.option.selected'); | |
| if (!selectedOption) { | |
| alert('Por favor, selecione uma opção antes de continuar.'); | |
| return; | |
| } | |
| // Atualiza a barra de progresso | |
| const progressPercentage = (current / totalQuestions) * 100; | |
| progressBar.style.width = `${progressPercentage}%`; | |
| // Atualiza o número da pergunta atual | |
| document.getElementById('current-question').textContent = current + 1; | |
| // Esconde a pergunta atual e mostra a próxima | |
| currentContainer.classList.remove('active'); | |
| document.getElementById(`question-${current + 1}`).classList.add('active'); | |
| // Atualiza a variável de controle | |
| currentQuestion = current + 1; | |
| } | |
| }; | |
| // Função para voltar para a pergunta anterior | |
| window.prevQuestion = function(current) { | |
| if (current > 1) { | |
| // Atualiza a barra de progresso | |
| const progressPercentage = ((current - 2) / totalQuestions) * 100; | |
| progressBar.style.width = `${progressPercentage}%`; | |
| // Atualiza o número da pergunta atual | |
| document.getElementById('current-question').textContent = current - 1; | |
| // Esconde a pergunta atual e mostra a anterior | |
| document.getElementById(`question-${current}`).classList.remove('active'); | |
| document.getElementById(`question-${current - 1}`).classList.add('active'); | |
| // Atualiza a variável de controle | |
| currentQuestion = current - 1; | |
| } | |
| }; | |
| // Função para submeter o quiz | |
| window.submitQuiz = function() { | |
| // Valida se todas as perguntas foram respondidas | |
| if (Object.keys(answers).length < totalQuestions) { | |
| alert('Por favor, responda todas as perguntas antes de ver o resultado.'); | |
| return; | |
| } | |
| // Atualiza a barra de progresso para 100% | |
| progressBar.style.width = '100%'; | |
| // Esconde o quiz e mostra a conclusão | |
| quiz.style.display = 'none'; | |
| conclusion.style.display = 'block'; | |
| // Preenche o resumo das respostas | |
| answersList.innerHTML = ''; | |
| for (let i = 1; i <= totalQuestions; i++) { | |
| const answerValue = answers[i]; | |
| const answerText = answerLabels[answerValue]; | |
| const listItem = document.createElement('li'); | |
| listItem.textContent = answerText; | |
| answersList.appendChild(listItem); | |
| } | |
| // Mostra a tela de carregamento | |
| loading.style.display = 'block'; | |
| // Simula o processamento | |
| setTimeout(function() { | |
| loading.style.display = 'none'; | |
| opportunity.style.display = 'block'; | |
| }, 3000); | |
| }; | |
| // Evento para o botão final de CTA | |
| finalCta.addEventListener('click', function() { | |
| // Esconde a seção do quiz e mostra a seção do vídeo | |
| quizSection.style.display = 'none'; | |
| videoSection.style.display = 'block'; | |
| // Inicializa o player de vídeo | |
| initVideoPlayer(); | |
| }); | |
| // Inicialização do player de vídeo | |
| let player; | |
| let checkInterval; | |
| const targetSeconds = 22; | |
| function initVideoPlayer() { | |
| // Carregar a API do YouTube | |
| const tag = document.createElement('script'); | |
| tag.src = "https://www.youtube.com/iframe_api"; | |
| const firstScriptTag = document.getElementsByTagName('script')[0]; | |
| firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | |
| } | |
| // Criar o player quando a API estiver pronta | |
| window.onYouTubeIframeAPIReady = function() { | |
| player = new YT.Player('player', { | |
| height: '500', | |
| width: '100%', | |
| videoId: 'T4u783wUoFg', | |
| playerVars: { | |
| 'playsinline': 1, | |
| 'controls': 1, | |
| 'rel': 0 | |
| }, | |
| events: { | |
| 'onReady': onPlayerReady, | |
| 'onStateChange': onPlayerStateChange | |
| } | |
| }); | |
| }; | |
| // Quando o player estiver pronto | |
| function onPlayerReady(event) { | |
| // Iniciar o vídeo automaticamente | |
| player.playVideo(); | |
| startTimeCheck(); | |
| } | |
| // Monitorar mudanças no estado do player | |
| function onPlayerStateChange(event) { | |
| if (event.data == YT.PlayerState.PLAYING) { | |
| startTimeCheck(); | |
| hideWhatsAppPopup(); | |
| } else if (event.data == YT.PlayerState.PAUSED) { | |
| clearInterval(checkInterval); | |
| } else if (event.data == YT.PlayerState.ENDED) { | |
| clearInterval(checkInterval); | |
| } | |
| } | |
| // Verificar o tempo do vídeo a cada 100ms para maior precisão | |
| function startTimeCheck() { | |
| clearInterval(checkInterval); | |
| checkInterval = setInterval(function() { | |
| const currentTime = player.getCurrentTime(); | |
| // Verificar se chegou exatamente aos 22 segundos | |
| if (currentTime >= targetSeconds) { | |
| player.pauseVideo(); | |
| clearInterval(checkInterval); | |
| showWhatsAppPopup(); | |
| } | |
| }, 100); | |
| } | |
| // Mostrar popup do WhatsApp | |
| function showWhatsAppPopup() { | |
| // Limpar o campo de nome | |
| nameInput.value = ""; | |
| whatsappPopup.classList.add('active'); | |
| overlay.classList.add('active'); | |
| // Focar no campo de nome | |
| nameInput.focus(); | |
| } | |
| // Esconder popup do WhatsApp | |
| function hideWhatsAppPopup() { | |
| whatsappPopup.classList.remove('active'); | |
| overlay.classList.remove('active'); | |
| } | |
| // Configurar o botão do WhatsApp | |
| whatsappBtn.addEventListener('click', function() { | |
| const name = nameInput.value.trim(); | |
| if (name) { | |
| // Formatar o número (remover hífen e adicionar código do Brasil) | |
| const phoneNumber = "5519996635778"; | |
| // Criar mensagem personalizada | |
| const message = `Oi, eu me chamo ${name}, quero saber mais sobre essa oportunidade de Emagrecer sem ir na academia.`; | |
| // Codificar a mensagem para URL | |
| const encodedMessage = encodeURIComponent(message); | |
| // Criar URL do WhatsApp | |
| const whatsappURL = `https://wa.me/${phoneNumber}?text=${encodedMessage}`; | |
| // Redirecionar para o WhatsApp | |
| window.open(whatsappURL, '_blank'); | |
| } else { | |
| // Alertar se o nome não foi preenchido | |
| nameInput.focus(); | |
| nameInput.style.borderColor = '#e74c3c'; | |
| setTimeout(() => { | |
| nameInput.style.borderColor = '#ddd'; | |
| }, 2000); | |
| } | |
| }); | |
| // Permitir enviar com Enter | |
| nameInput.addEventListener('keypress', function(e) { | |
| if (e.key === 'Enter') { | |
| whatsappBtn.click(); | |
| } | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment