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

:root {
  --primary-color: #2E7D32; /* Green */
  --text-color: #000000; /* Black */
  --bg-color: #FFFFFF; /* White */
  --border-color: #E0E0E0;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  font-size: 16px;
}

#app-container {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fadeIn 0.4s ease;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typography */
h1, h2, h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  color: var(--text-color);
}

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

p {
  margin-bottom: 16px;
  font-size: 16px;
  text-align: center;
}

.small-text {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 16px;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.logo {
  max-width: 150px;
  margin: 0 auto 24px auto;
  display: block;
}

/* Options / Buttons */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  width: 100%;
}

.option-btn, .btn {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.2s;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}

.option-btn:hover, .btn:hover {
  opacity: 0.9;
}

.option-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin: 0;
  border-radius: 4px;
}

.answer-btn {
  background-color: #E8F5E9;
  color: var(--text-color);
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background-color 0.2s;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  min-height: 60px;
}

.answer-btn:hover {
  background-color: #D6F0D6;
}

.answer-btn .btn-icon {
  min-height: 60px;
  min-width: 50px;
  object-fit: contain;
  margin: 0 12px 0 0;
  border-radius: 4px;
}

.answer-btn .btn-text {
  flex: 1;
  text-align: left;
}

.answer-btn .btn-arrow {
  color: #9e9e9e;
  font-weight: bold;
  font-size: 20px;
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.2s;
}

.checkbox-label input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.checkbox-label.selected {
  border-color: var(--primary-color);
}

/* Sliders */
.slider-container {
  margin: 32px 0;
}

.slider-value {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.slider-toggle {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.slider-toggle span {
  font-size: 16px;
  color: #666;
  cursor: pointer;
}

.slider-toggle span.active {
  color: var(--primary-color);
  font-weight: 700;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  margin-top: -10px;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: var(--border-color);
  border-radius: 4px;
}

/* Progress Bars */
.progress-container {
  margin: 32px 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background-color: var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}

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

/* Testimonials */
.testimonials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.testimonials-row img {
  width: 30%;
  margin: 0;
}

/* Body Info Blocks */
.info-block {
  text-align: left;
  margin-bottom: 24px;
}
.info-block p {
  text-align: left;
}

.info-list-item {
  background-color: #E8F5E9;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  color: #000000;
  text-align: left;
}
.info-list-item.bordered {
  background-color: #FFFFFF;
  border-left: 4px solid #2E7D32;
}
.info-icon {
  font-size: 20px;
  min-width: 24px;
  margin-right: 12px;
  text-align: center;
}
.info-callout {
  background-color: #FFF8E1;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: bold;
  color: #333333;
  display: flex;
  align-items: center;
  text-align: left;
}
.info-closing {
  background-color: #F5F5F5;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-style: italic;
  display: flex;
  align-items: center;
  color: #000000;
  text-align: left;
}

.progression-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  text-align: left;
}
.progression-block img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin: 0;
}

.imc-bar-container {
  display: flex;
  height: 12px;
  width: 100%;
  margin-top: 8px;
  border-radius: 6px;
  overflow: hidden;
}
.imc-segment { height: 100%; }
.imc-under { background: #87CEEB; width: 20%; }
.imc-normal { background: #4CAF50; width: 30%; }
.imc-over { background: #FFC107; width: 30%; }
.imc-obese { background: #F44336; width: 20%; }
.imc-marker {
  width: 4px;
  height: 16px;
  background: black;
  position: relative;
  top: -2px;
  margin-left: -2px;
}

.imc-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 4px;
}

.profile-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
}
.profile-card strong {
  color: var(--primary-color);
}

/* Screen 11: Flexibility Grid */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.grid-item-flex {
  background-color: #E8F5E9;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
}
.grid-item-flex:hover {
  opacity: 0.9;
}
.grid-item-flex img {
  height: 120px;
  width: auto;
  margin-bottom: 8px;
  object-fit: contain;
  border-radius: 4px;
}
.grid-item-flex span {
  font-weight: bold;
  color: #000000;
  font-size: 15px;
}

/* Screen 23: Progression 2x2 Grid */
.progression-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.progression-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.progression-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 8px;
}
.progression-label {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-size: 14px;
}
.label-wk1 { color: #E53935; }
.label-wk3 { color: #F9A825; }
.label-wk5 { color: #1565C0; }
.label-wk7 { color: #2E7D32; }

.progression-desc {
  color: #000000;
  font-size: 13px;
  line-height: 1.3;
}

/* Screen 41 specific styles */
.pill-badge {
  background-color: var(--primary-color);
  color: #FFFFFF;
  font-weight: bold;
  border-radius: 20px;
  padding: 10px 20px;
  text-align: center;
  display: inline-block;
  margin-bottom: 16px;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  background-color: #FFFFFF;
}
.summary-cell {
  display: flex;
  flex-direction: column;
}
.summary-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}
.summary-val {
  font-weight: bold;
  font-size: 14px;
  color: #000;
}

/* Before/After Grid */
.comparison-container {
  display: flex;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.comp-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.comp-col:first-child {
  border-right: 1px solid var(--border-color);
}
.comp-header {
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}
.comp-header.red {
  background-color: #FFCDD2;
  color: #C62828;
}
.comp-header.green {
  background-color: #C8E6C9;
  color: #2E7D32;
}
.comp-row {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.comp-row:last-child {
  border-bottom: none;
}
.comp-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}
.comp-desc {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}
.comp-bar-container {
  height: 6px;
  background-color: #E0E0E0;
  border-radius: 3px;
  position: relative;
}
.comp-bar-fill {
  height: 100%;
  border-radius: 3px;
  position: absolute;
  left: 0;
  top: 0;
}
.comp-bar-fill.red {
  background-color: #F44336;
  width: 20%;
}
.comp-bar-fill.green {
  background-color: #4CAF50;
  width: 85%;
}
.comp-knob {
  width: 10px;
  height: 10px;
  background-color: inherit;
  border-radius: 50%;
  position: absolute;
  right: -5px;
  top: -2px;
}

/* Pricing Cards */
.urgency-bar {
  background-color: #C62828;
  color: #FFFFFF;
  font-weight: bold;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.timer-display {
  background-color: #C62828;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 32px;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.pricing-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px 20px 20px 20px;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}
.pricing-card.highlight {
  border: 2px solid var(--primary-color);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: #FFFFFF;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}
.pricing-badge.green { background-color: var(--primary-color); }
.pricing-badge.orange { background-color: #E65100; }
.price-strike {
  color: #9e9e9e;
  text-decoration: line-through;
  font-size: 14px;
}
.price-large {
  color: var(--primary-color);
  font-size: 28px;
  font-weight: bold;
  margin: 4px 0;
}

/* Guarantee Card */
.guarantee-card {
  background-color: #E8F5E9;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

/* Motivation Cards */
.motivate-card {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.motivate-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin: 0;
}
.motivate-text {
  padding: 16px;
}
.motivate-text.green-bg {
  background-color: #E8F5E9;
}
.motivate-text.bordered {
  background-color: #FFFFFF;
  border-left: 4px solid var(--primary-color);
}

/* Inclusion Cards */
.inclusion-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
}
.inclusion-item {
  background-color: #E8F5E9;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #000;
}

/* Bonus Cards */
.bonus-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.bonus-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  margin: 0;
}
.bonus-text {
  padding: 14px;
  background-color: #E8F5E9;
}

/* Testimonials Row */
.testimonial-row {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.testimonial-row::-webkit-scrollbar {
  height: 4px;
}
.testimonial-row::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.test-avatar {
  min-width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  object-fit: cover;
}
.testimonial-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
}

/* FAQ */
.faq-card {
  background-color: #FFFFFF;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  padding: 14px;
  margin-bottom: 10px;
}

/* Global Progress Bar */
#global-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: #E0E0E0;
  z-index: 9999;
}
#global-progress-fill {
  height: 100%;
  background-color: #2E7D32;
  width: 0%;
  transition: width 0.4s ease;
}

/* Connected Timer */
.timer-wrapper {
  margin-bottom: 16px;
  width: 100%;
}
.timer-text {
  background-color: #C62828;
  color: #FFFFFF;
  font-weight: bold;
  text-align: center;
  padding: 12px;
  border-radius: 8px 8px 0 0;
  font-size: 15px;
}
.timer-digits {
  background-color: #C62828;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 52px;
  text-align: center;
  padding: 16px;
  border-radius: 0 0 8px 8px;
  margin-top: -1px; /* Ensure they touch seamlessly */
}

/* FAQ Accordion */
.accordion-card {
  cursor: pointer;
  padding: 0; /* Override old padding */
}
.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 15px;
}
.faq-q {
  display: flex;
  align-items: center;
}
.faq-icon {
  font-size: 12px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 14px 14px 14px;
  color: #000;
  font-size: 14px;
}
.accordion-card.open .faq-answer {
  max-height: 500px;
}
.accordion-card.open .faq-icon {
  transform: rotate(180deg);
}

/* Testimonial Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 500%; /* 5 slides */
}
.carousel-img {
  width: 20%; /* 1/5 of track width */
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.7);
  color: #2E7D32;
  border: none;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow.left { left: 10px; }
.carousel-arrow.right { right: 10px; }
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
}
.carousel-dot.active {
  background-color: #2E7D32;
}
