/* architecture: landing — faq | هم‌سبک با نکات قیمت‌گذاری (.plans-compare) */
/* padding/background را .lp-section مدیریت می‌کند */
.faq-container {
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}

.faq-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--glass-fill);
  box-shadow: none;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.faq-question {
  width: 100%;
  text-align: right;
  padding: 12px 14px;
  min-height: 0;
  background: transparent;
  border: none;
  color: var(--accent-solid, #60a5fa);
  font-size: 0.86rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.55;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.faq-question-text {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-solid, #60a5fa);
  line-height: 1.55;
}

.faq-chevron {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-fill-hover);
  border: 1px solid var(--border-color);
  color: var(--accent-solid, #60a5fa);
  transition:
    transform 0.3s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.faq-chevron i {
  font-size: 0.62rem;
  transition: none;
  color: inherit;
}

.faq-question:hover {
  color: var(--accent-solid, #60a5fa);
}

.faq-question:hover .faq-chevron {
  border-color: var(--accent-border);
  background: var(--accent-muted);
}

.faq-question:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.35);
  outline-offset: -2px;
}

.faq-item.active {
  border-color: var(--border-color);
  background: var(--glass-fill-hover);
  box-shadow: none;
}

.faq-item.active .faq-question {
  color: var(--accent-solid, #60a5fa);
  background: transparent;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  background: var(--accent-muted);
  border-color: rgba(96, 165, 250, 0.28);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer-inner {
  padding: 0 14px 12px;
  border-top: 0;
}

.faq-item.active .faq-answer-inner {
  border-top: 0;
  padding-top: 0;
}

.faq-answer p {
  margin: 0;
  padding: 0;
  color: var(--text-gray-light);
  line-height: 1.6;
  font-size: 0.86rem;
}

.faq-answer a {
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(96, 165, 250, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.faq-answer a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.faq-answer strong {
  color: var(--text-gray-light);
  font-weight: 700;
}

@media (min-width: 769px) {
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .faq-question {
    padding: 12px 14px;
    font-size: 0.86rem;
  }

  .faq-question-text {
    font-size: 0.72rem;
  }

  .faq-answer p {
    font-size: 0.86rem;
    line-height: 1.6;
  }
}
