/* ============================================================
   ARCHETYPE A — "Fortress" (Bastion) — FAQ Page
   Content-only styles (shared styles loaded via style.css)
   ============================================================ */

/* === FAQ HERO === */
.rmp-faq-hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 24px 60px;
  text-align: center;
  overflow: hidden;
}
.rmp-faq-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.rmp-faq-hero-heading {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rmp-fade-up 0.8s ease both;
}
.rmp-faq-hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
  animation: rmp-fade-up 0.8s ease 0.15s both;
}

/* === FAQ LIST === */
.rmp-faq-list-section {
  padding: 40px 24px 100px;
  max-width: 780px;
  margin: 0 auto;
}
.rmp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rmp-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
  animation: rmp-fade-up 0.6s ease both;
}
.rmp-faq-item:nth-child(1) { animation-delay: 0.1s; }
.rmp-faq-item:nth-child(2) { animation-delay: 0.15s; }
.rmp-faq-item:nth-child(3) { animation-delay: 0.2s; }
.rmp-faq-item:nth-child(4) { animation-delay: 0.25s; }
.rmp-faq-item:nth-child(5) { animation-delay: 0.3s; }
.rmp-faq-item[open] {
  border-color: var(--primary-color);
}
.rmp-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition-fast);
}
.rmp-faq-question::-webkit-details-marker {
  display: none;
}
.rmp-faq-question::marker {
  display: none;
  content: '';
}
.rmp-faq-question::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 16px;
  background: var(--text-muted);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--transition-base);
}
.rmp-faq-item[open] .rmp-faq-question::after {
  transform: rotate(180deg);
}
.rmp-faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}
.rmp-faq-answer {
  padding: 0 24px 20px;
}
.rmp-faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === CTA SECTION === */
.rmp-faq-cta {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
  background: var(--bg-surface);
}
.rmp-faq-cta-inner {
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.rmp-faq-cta-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
  animation: rmp-fade-up 0.7s ease both;
}
.rmp-faq-cta-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  animation: rmp-fade-up 0.7s ease 0.12s both;
}
.rmp-faq-cta .rmp-btn {
  animation: rmp-fade-up 0.7s ease 0.24s both;
}
.rmp-faq-cta-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
  animation: rmp-glow-pulse 7s ease-in-out infinite;
}

/* === CONTENT RESPONSIVE === */
@media (max-width: 768px) {
  .rmp-faq-hero {
    padding: calc(var(--nav-height) + 48px) 20px 40px;
  }
  .rmp-faq-hero-heading {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
  .rmp-faq-list-section {
    padding: 24px 20px 64px;
  }
  .rmp-faq-question {
    padding: 16px 20px;
    font-size: 0.95rem;
  }
  .rmp-faq-answer {
    padding: 0 20px 16px;
  }
  .rmp-faq-cta {
    padding: 64px 20px;
  }
  .rmp-faq-cta-glow {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 480px) {
  .rmp-faq-hero-heading {
    font-size: 1.7rem;
  }
  .rmp-faq-hero-desc {
    font-size: 0.95rem;
  }
}

/* ── Section headers for extra content sections ── */
.rmp-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    padding: 0 20px;
}
.rmp-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}
.rmp-section-intro {
    font-size: 1.063rem;
    line-height: 1.7;
    opacity: 0.7;
}

/* ── Extra features sections spacing ── */
.rmp-features-grid-section + .rmp-features-grid-section {
    margin-top: 40px;
    padding-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Flexible grid for 3/4/6 card layouts ── */
@media (min-width: 769px) {
    .rmp-features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

/* ── Section header responsive ── */
@media (max-width: 768px) {
    .rmp-section-title { font-size: 1.75rem; }
    .rmp-section-intro { font-size: 0.938rem; }
}
@media (max-width: 480px) {
    .rmp-section-title { font-size: 1.5rem; }
    .rmp-section-header { margin-bottom: 32px; }
}

/* === BUTTON-BASED FAQ ITEMS (items 6-20) === */
div.rmp-faq-item {
}
div.rmp-faq-item .rmp-faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  transition: background var(--transition-fast);
}
div.rmp-faq-item .rmp-faq-toggle:hover {
  background: rgba(255, 255, 255, 0.02);
}
div.rmp-faq-item .rmp-faq-toggle .rmp-faq-question {
  flex: 1;
  display: block;
  padding: 0;
  list-style: none;
}
div.rmp-faq-item .rmp-faq-arrow {
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--text-muted);
  transition: transform var(--transition-base);
}
div.rmp-faq-item .rmp-faq-toggle[aria-expanded="true"] .rmp-faq-arrow {
  transform: rotate(180deg);
}
div.rmp-faq-item .rmp-faq-answer[hidden] {
  display: none;
}
div.rmp-faq-item .rmp-faq-answer {
  padding: 0 24px 20px;
}
div.rmp-faq-item .rmp-faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Responsive adjustments for button-based FAQ items */
@media (max-width: 768px) {
  div.rmp-faq-item {
  }
  div.rmp-faq-item .rmp-faq-toggle {
    padding: 16px 20px;
    font-size: 0.95rem;
  }
  div.rmp-faq-item .rmp-faq-answer {
    padding: 0 20px 16px;
  }
}
