/* ===== Custom Styles ===== */
html{
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--clr-p800);
  border-radius: 4px;
}

/* Ribbon Banner */
.ribbon-section {
  width: 100%;
  height: 380px;
  overflow: hidden;
  position: relative;
}

.ribbon {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 52px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ribbon-dark {
  background: var(--clr-p900);
  top: 30%;
  transform: rotate(-9deg);
  z-index: 2;
}

.ribbon-light {
  background: var(--clr-p100);
  top: 30%;
  transform: rotate(9deg);
  z-index: 1;
}

.ribbon-marquee {
  display: inline-flex;
  will-change: transform;
  transition: none;
}

.ribbon-marquee span {
  display: inline-block;
  padding: 0 2.5rem;
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.35em;
}

.ribbon-dark .ribbon-marquee span {
  color: #ffffff;
}

.ribbon-light .ribbon-marquee span {
  color: var(--clr-p800);
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background 0.2s;
}
.accordion-item:hover {
  background: var(--clr-p50);
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-weight: 500;
  font-size: 1rem;
  color: #1f2937;
}
.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 1.5rem;
  color: var(--clr-p600);
}
.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
}
.accordion-item.active .accordion-body {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 0;
  font-weight: 500;
  font-size: 0.95rem;
  color: #1f2937;
}
.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--clr-p600);
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1rem;
}

/* Stat Cards - animated counter */
.stat-card {
  background: linear-gradient(135deg, var(--clr-p100) 0%, var(--clr-p100) 100%);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  min-width: 160px;
}
.stat-card .stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--clr-p700);
}
.stat-card .stat-label {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Stat Cards - Circular */
.stat-card-circular {
  background: linear-gradient(135deg, var(--clr-p100) 0%, var(--clr-p100) 100%);
  border-radius: 50%;
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}
.stat-card-circular .stat-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--clr-p700);
  line-height: 1;
}
.stat-card-circular .stat-label {
  font-size: 0.65rem;
  color: #6b7280;
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  max-width: 120px;
}

/* Pricing radio cards */
.pricing-option {
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #FFF;
}
.pricing-option:hover {
  border-color: var(--clr-p400);
}
.pricing-option.selected {
  border-color: var(--clr-p700);
  box-shadow: 0 0 0 2px var(--clr-p700-shadow);
}
.pricing-option input[type="radio"] {
  accent-color: var(--clr-p700);
}

/* Testimonial card */
.testimonial-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: 100%;
}

/* Testimonials Carousel */
.testimonials-carousel {
  position: relative;
}
.testimonials-viewport {
  border-radius: 1rem;
}
.testimonial-slide {
  box-sizing: border-box;
}

/* Video Carousel */
.video-carousel-section {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  padding: 2rem 0;
}
.video-carousel-viewport {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}
.video-carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}
.video-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: width 0.5s ease, height 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
  flex-shrink: 0;
  width: 180px;
  height: 300px;
}
.video-card.active-center {
  width: 230px;
  height: 400px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  opacity: 1;
  z-index: 2;
}
.video-card.active-neighbor {
  opacity: 0.85;
}
.video-card {
  position: relative;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  background: none;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}
.video-card.playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}
.video-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
}
.video-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.video-carousel-dot:hover {
  background: #9ca3af;
}
.video-carousel-dot.active {
  background: #111827;
  transform: scale(1.3);
}
@media (min-width: 768px) {
  .video-carousel-viewport {
    min-height: 480px;
  }
  .video-card {
    width: 200px;
    height: 340px;
  }
  .video-card.active-center {
    width: 270px;
    height: 440px;
  }
}

/* Comparison Table */
.comparison-table td,
.comparison-table th {
  vertical-align: middle;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Image Placeholder */
.img-placeholder {
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  border-radius: 0.75rem;
  overflow: hidden;
}
.img-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

/* Before/After slider */
.before-after-card {
  background: var(--clr-p700);
  border-radius: 1rem;
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.before-after-card .ba-images {
  display: flex;
  gap: 0.5rem;
}
.before-after-card .ba-img {
  flex: 1;
  background: rgba(255,255,255,0.15);
  border-radius: 0.5rem;
  height: 180px;
}

/* How To Use cards */
.how-to-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.how-to-icon {
  width: 28px;
  height: 28px;
  color: #9ca3af;
}

/* Steps */
.step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--clr-p100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-circle svg {
  color: var(--clr-p700);
  width: 28px;
  height: 28px;
}

/* Benefits icon circle */
.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-p100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile nav */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open {
  max-height: 300px;
}

/* Feature grid card */
.feature-card {
  text-align: center;
  padding: 1.5rem 1rem;
}
.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  background: var(--clr-p100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.feature-card p {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Case Tabs — Real Results */
.case-tab {
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  background: transparent;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.case-tab:hover:not(.active) {
  border-color: #9ca3af;
}
.case-tab.active {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #111827;
  font-weight: 600;
}
.case-panel {
  display: none;
}
.case-panel.active {
  display: block;
}

/* Ingredient bar */
.ingredient-bar {
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  overflow: hidden;
  margin-top: 0.25rem;
}
.ingredient-bar .fill {
  height: 100%;
  border-radius: 3px;
  background: var(--clr-p700);
  transition: width 1s ease;
}
