/* BeFit FAQ — Apple-style accordion */

html:has([data-faq-page]) {
  scroll-padding-top: 6rem;
}

.faq-page {
  --faq-max: 40rem;
  --faq-pad: clamp(1.25rem, 4vw, 2rem);
  --faq-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: #0b121c;
  color: #fff;
  padding-top: 5rem;
  padding-bottom: clamp(4rem, 12vh, 6rem);
}

.faq-hero {
  text-align: center;
  padding: clamp(3.5rem, 12vh, 6rem) var(--faq-pad) clamp(2rem, 6vh, 3rem);
  max-width: 36rem;
  margin: 0 auto;
}

.faq-hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
}

.faq-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.faq-hero__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #94a3b8;
}

.faq-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-weight: 700;
}

.faq-price-pill__amount {
  font-size: 1.25rem;
  color: #93c5fd;
}

.faq-price-pill__period {
  font-size: 0.85rem;
  color: #64748b;
}

.faq-body {
  max-width: var(--faq-max);
  margin: 0 auto;
  padding: 0 var(--faq-pad);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border-radius: 1rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.25);
}

.faq-item[open] {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(59, 130, 246, 0.35);
}

.faq-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f1f5f9;
  cursor: pointer;
  list-style: none;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__summary::after {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  content: "+";
  transition: transform 0.35s var(--faq-ease), background 0.3s ease;
}

.faq-item[open] .faq-item__summary::after {
  transform: rotate(45deg);
  background: rgba(59, 130, 246, 0.28);
}

.faq-item__answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #94a3b8;
}

.faq-item__answer p {
  margin: 0 0 0.75rem;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-item__answer ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.2rem;
}

.faq-item__answer li {
  margin-bottom: 0.35rem;
}

.faq-item__answer a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-item__answer a:hover {
  color: #7dd3fc;
}

.faq-item__answer strong {
  color: #e2e8f0;
  font-weight: 600;
}

.faq-aside {
  margin-top: 2.5rem;
  padding: 1.5rem 1.35rem;
  border-radius: 1.15rem;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), rgba(52, 211, 153, 0.06));
  border: 1px solid rgba(148, 163, 184, 0.14);
  text-align: center;
}

.faq-aside__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.faq-aside__text {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
}

.faq-aside__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.faq-aside__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.faq-aside__link:hover {
  border-color: rgba(59, 130, 246, 0.4);
  color: #fff;
}

.faq-aside__link--primary {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

.faq-aside__link--primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.faq-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.faq-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
  transition: background 0.25s ease, transform 0.2s ease;
}

.faq-cta__btn:hover {
  background: #2563eb;
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__summary::after {
    transition: none;
  }
}
