/* Root Variables & Colors */
:root {
  --primary: #e84855;
  --primary-light: #ff6b7a;
  --primary-dark: #c71e2e;
  --secondary: #ffb84d;
  --accent: #4ecdc4;

  --background: #fafaf9;
  --foreground: #1f2937;
  --card: #ffffff;
  --border: #e5e7eb;
  --muted: #e5e7eb;
  --muted-foreground: #6b7280;

  --radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

/* Hide header globally */
.header {
  display: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

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

/* Header/Navigation */
.header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.btn-text:hover {
  color: var(--primary-dark);
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(to bottom, var(--background), var(--background));
}

.hero-container {
  max-width: 80rem;
  width: 100%;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-stat {
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0;
}

.hero-scroll {
  font-size: 2rem;
  color: var(--primary);
  animation: bounce 2s infinite;
  margin-top: 3rem;
}

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Education Section */
.education-section {
  padding: 4rem 1rem;
  background-color: var(--card);
}

.education-container {
  max-width: 80rem;
  margin: 0 auto;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: center;
}

.education-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.education-content p {
  font-size: 1rem;
  color: var(--foreground);
  line-height: 1.6;
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

.anatomy-card {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.anatomy-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.anatomy-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.anatomy-item {
  padding: 1rem;
  border-radius: 8px;
}

.anatomy-item h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.anatomy-item p {
  font-size: 0.875rem;
  color: var(--foreground);
}

.warning-box {
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 8px;
}

.warning-box h3 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.warning-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.warning-box li {
  color: var(--foreground);
}

@media (max-width: 768px) {
  .education-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 1rem;
  background: linear-gradient(to right, var(--background), white, var(--background));
}

.testimonials-container {
  max-width: 80rem;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.testimonial-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.before-after-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.before-after-item {
  display: flex;
  flex-direction: column;
}

.before-after-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.before-after-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
}

.star-rating {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

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

.author-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.author-name {
  font-weight: 700;
  color: var(--foreground);
}

.author-details {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Stats Section */
.stats-section {
  padding: 4rem 1rem;
  background-color: var(--background);
}

.stats-container {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--muted-foreground);
}

/* CTA Section */
.cta-section {
  padding: 4rem 1rem;
  background-color: var(--primary);
  color: white;
}

.cta-container {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.cta-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-container p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Quiz Page */
.quiz-page {
  min-height: 100vh;
  padding: 2rem 1rem;
  background: linear-gradient(to bottom, var(--background), white);
}

.quiz-container {
  max-width: 50rem;
  margin: 0 auto;
  padding: 2rem;
}

.quiz-header {
  text-align: center;
  margin-bottom: 2rem;
}

.quiz-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.quiz-header p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--muted);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.question-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Force question text to be dark gray in all cases, override any link colors */
.question-card h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--foreground) !important;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option {
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
  color: var(--foreground) !important;
  font-weight: 500;
}

.option:hover {
  border-color: var(--primary);
}

.option.selected {
  border-color: var(--primary);
  background-color: rgba(232, 72, 85, 0.1);
  color: var(--primary);
}

.quiz-navigation {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--muted);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Results Page */
.results-page {
  min-height: 100vh;
  padding: 2rem 1rem;
  background: linear-gradient(to bottom, var(--background), white);
}

.results-container {
  max-width: 80rem;
  margin: 0 auto;
}

.result-card {
  background-color: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.result-card.leve {
  border-color: #fbbf24;
  background-color: #fef3c7;
}

.result-card.moderado {
  border-color: #f97316;
  background-color: #fed7aa;
}

.result-card.severo {
  border-color: var(--primary);
  background-color: rgba(232, 72, 85, 0.1);
}

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

.result-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.result-description {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.result-percentage {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.diagnostic-section {
  margin: 3rem 0;
}

.diagnostic-section h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.diagnostic-section > p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.charts-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.chart {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.chart h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.next-steps-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.next-steps-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.next-steps-card p {
  margin-bottom: 1rem;
}

.next-steps-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.next-steps-card li {
  padding: 0.5rem 0;
  color: var(--foreground);
}

.offer-highlight {
  background-color: rgba(232, 72, 85, 0.1);
  border-left: 4px solid var(--primary);
  padding: 1rem;
  border-radius: 4px;
  font-weight: 600;
  color: var(--primary);
}

.cta-center {
  text-align: center;
  padding: 2rem;
  background-color: var(--card);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.cta-center p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Mobile responsiveness improvements for quiz results */
@media (max-width: 640px) {
  .charts-container {
    gap: 1.5rem;
  }

  .chart {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .chart h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .progress-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }

  .diagnostic-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .result-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .result-title {
    font-size: 1.5rem;
  }

  .result-percentage {
    font-size: 1.25rem;
  }
}

/* Oferta Page */
.oferta-page {
  min-height: 100vh;
  padding: 2rem 1rem;
  background: linear-gradient(to bottom, var(--background), white);
}

.oferta-container {
  max-width: 80rem;
  margin: 0 auto;
}

.oferta-header {
  text-align: center;
  margin-bottom: 3rem;
}

.badge-highlight {
  display: inline-block;
  background-color: rgba(232, 72, 85, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 1rem;
}

.pricing-section {
  margin: 3rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background-color: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pricing-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 72, 85, 0.1);
  transform: scale(1.02);
}

.pricing-card.popular::before {
  content: "Mais Popular";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-cost {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.pricing-currency {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pricing-button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.pricing-button.selected {
  background-color: var(--primary);
  color: white;
}

.pricing-button:not(.selected) {
  background-color: rgba(232, 72, 85, 0.1);
  color: var(--primary);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.pricing-feature-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-feature-text {
  color: var(--foreground);
}

.pricing-feature.disabled .pricing-feature-text {
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.pricing-feature.disabled .pricing-feature-icon {
  color: var(--muted);
}

.pricing-note {
  background-color: rgba(78, 205, 196, 0.1);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  color: var(--foreground);
}

.gamification-section {
  margin: 3rem 0;
}

.gamification-header {
  text-align: center;
  margin-bottom: 2rem;
}

.gamification-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gamification-header p {
  color: var(--muted-foreground);
}

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

.gamification-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.gamification-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.gamification-card h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gamification-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.gamification-steps {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.gamification-steps h3 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.trust-section {
  margin: 3rem 0;
}

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

.trust-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.trust-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.trust-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.trust-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.guarantee-section {
  background: linear-gradient(to right, rgba(232, 72, 85, 0.05), rgba(78, 205, 196, 0.05));
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}

.guarantee-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.guarantee-section p {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.guarantee-note {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.faq-section {
  margin: 3rem 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 50rem;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
}

.faq-item summary {
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-item summary::after {
  content: "+";
  font-weight: 700;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--foreground);
}

.final-cta {
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
}

.final-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.final-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.final-cta-buttons .btn {
  flex: 1;
  min-width: 200px;
}

.cta-footer {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-cta {
  text-align: center;
  padding: 2rem;
}

.footer-cta p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background-color: #f5f5f5;
  color: var(--muted-foreground);
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  font-size: 0.875rem; /* Corrected: added unit and semicolon */
}
