/* ===========================================
   Reusable Components
   =========================================== */

/* ===========================================
   CTA Section - New design (Figma)
   Layout: Badge (red, with trial info + count) on TOP
           + White button below with red text
   =========================================== */

.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  gap: 0;
}

.cta-section__inner {
  width: 100%;
  max-width: 343px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Top red badge row with trial info + count */
.cta-badge-row {
  display: flex;
  align-items: stretch;
  height: 36px;
  background-color: var(--color-primary);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}

.cta-badge-row__text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  padding: 4px 8px;
}

.cta-badge-row__count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 72px;
  padding: 4px 8px;
  background-color: var(--color-white);
  border: 2px solid var(--color-primary);
  margin: 3px;
  border-radius: 2px;
}

.cta-badge-row__count-label {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1.1;
  text-align: center;
}

.cta-badge-row__count-num {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1;
}

.cta-badge-row__count-unit {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1.2;
}

/* White button with red text */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  background-color: var(--color-white);
  border: 2px solid var(--color-primary);
  border-top: none;
  border-radius: 0 0 4px 4px;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.cta-button__arrow {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
}

/* ===========================================
   CTA Mid/Pricing variant - green button (Figma v2)
   Small red pill label + large green gradient button
   =========================================== */
.cta-section--hero,
.cta-section--mid,
.cta-section--pricing {
  background-image: url('../images/bg/bg-cta-gradient.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 40px 16px;
}

.cta-section--hero .cta-section__inner,
.cta-section--mid .cta-section__inner,
.cta-section--pricing .cta-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  background-color: #FFE56B;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  border-radius: 999px;
  line-height: 1.2;
  position: relative;
  z-index: 2;
  margin-bottom: -14px;
}

.cta-button--green {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 343px;
  height: 64px;
  padding: 0 16px;
  background: linear-gradient(180deg, #2FCB4B 0%, #1FA838 100%);
  border: none;
  border-radius: 999px;
  color: var(--color-white);
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  box-shadow: 0 5px 0 #0F6B22, 0 8px 18px rgba(0,0,0,0.18);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.cta-button--green:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #0F6B22, 0 6px 14px rgba(0,0,0,0.18);
}

/* Legacy badge (keep for other uses) */
.cta-badge {
  display: inline-block;
  padding: 2px 16px;
  background-color: var(--color-pink-light);
  border: 2px solid var(--color-white);
  border-radius: 14px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  text-align: center;
  line-height: 1.4;
}

/* ===========================================
   Feature Card (Hero section)
   Figma: w=105, h=84, bg=#D82E2E, cornerRadius=6
   =========================================== */

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 105px;
  height: 84px;
  background-color: var(--color-primary);
  border-radius: 6px;
  color: var(--color-white);
  text-align: center;
  padding: 8px 4px;
  box-sizing: border-box;
}

/* Circle icon above card */
/* Figma: w=31, h=31, white bg, red border 1px */
.feature-card__icon {
  width: 31px;
  height: 31px;
  background-color: var(--color-white);
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto -16px;
  position: relative;
  z-index: 1;
}

/* Value text (large, yellow-green) */
/* Figma: 18px Bold #FAFF70 */
.feature-card__value {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: var(--color-yellow-green);
  line-height: 1.3;
}

/* Label text (small, white) */
/* Figma: 12px Medium white */
.feature-card__label {
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

/* ===========================================
   Section Title (generic)
   =========================================== */

.section-title {
  text-align: center;
  margin-bottom: 32px;
}

/* ===========================================
   FAQ Accordion (base component styles)
   =========================================== */

.faq-item {
  border-bottom: 1px solid var(--color-gray-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
}

.faq-item__question::before {
  content: 'Q';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  margin-right: 8px;
}

.faq-item__answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 0 0 36px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-gray-text);
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 0 16px 36px;
}

/* ===========================================
   Client Logo Slider
   =========================================== */

.client-slider {
  overflow: hidden;
  width: 100%;
}

.client-slider__track {
  display: flex;
  gap: 16px;
  animation: scroll-logos 20s linear infinite;
}

.client-slider__logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--color-white);
  padding: 8px;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================================
   PC (>=768px) — CTA sections, pills, buttons
   ============================================================ */
@media (min-width: 768px) {
  .cta-section {
    padding: 40px 40px;
  }
  .cta-section__inner {
    max-width: 560px;
  }
  .cta-badge-row {
    height: 48px;
  }
  .cta-badge-row__text {
    font-size: 18px;
  }
  .cta-badge-row__count-label {
    font-size: 12px;
  }
  .cta-badge-row__count-num {
    font-size: 24px;
  }
  .cta-badge-row__count-unit {
    font-size: 14px;
  }
  .cta-button {
    height: 72px;
    font-size: 24px;
  }
  .cta-button__arrow {
    font-size: 20px;
  }
  .cta-section--mid,
  .cta-section--pricing {
    padding: 40px 40px;
  }
  .cta-pill {
    font-size: 18px;
    padding: 8px 28px;
  }
  .cta-button--green {
    max-width: 500px;
    height: 80px;
    font-size: 28px;
  }
  /* Client slider */
  .client-slider__track {
    gap: 40px;
  }
  .client-slider__logo {
    height: 80px;
  }
  .clients {
    padding: 40px 0;
  }
  /* FAQ accordion */
  .faq-item__question {
    font-size: 20px;
    padding: 24px 0;
  }
  .faq-item__answer {
    font-size: 16px;
  }
}
