/* ============================================================
   additional_styles.css — FAQ section, FAQ page, About page
   Matches reservoir site: white/black/gray, border-radius 8-16px
   ============================================================ */

/* ── FAQ SECTION ON INDEX.HTML ────────────────────────────── */

.faq-section {
  max-width: 640px;
  width: 100%;
  margin: 60px auto 0 auto;
  padding: 0 16px 48px 16px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.faq-section-hero {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #000000;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 32px 0;
  text-align: center;
}

@media screen and (min-width: 48em) {
  .faq-section-hero {
    font-size: 2.25rem;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #E0E0E0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.faq-item {
  border-bottom: 1px solid #E0E0E0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background-color 150ms ease;
  box-sizing: border-box;
}

.faq-question:hover {
  background-color: #F2F2F2;
}

.faq-question h2 {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

@media screen and (min-width: 48em) {
  .faq-question h2 {
    font-size: 16px;
  }
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EDEFEE;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease, transform 300ms ease;
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  transition: transform 300ms ease;
}

.faq-item.is-open .faq-icon {
  background: #000000;
}

.faq-item.is-open .faq-icon svg path {
  fill: #ffffff;
}

.faq-item.is-open .faq-icon svg {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 350ms ease, opacity 300ms ease;
  opacity: 0;
}

.faq-item.is-open .faq-answer {
  max-height: 600px;
  opacity: 1;
}

.faq-answer h3 {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #555555;
  margin: 0;
  padding: 0 20px 20px 20px;
  line-height: 1.6;
  letter-spacing: 0;
}

@media screen and (min-width: 48em) {
  .faq-answer h3 {
    font-size: 15px;
  }
}

.faq-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.faq-footer-links a {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #555555;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 150ms ease;
  border-bottom: 1px solid #D5D5D5;
  padding-bottom: 2px;
}

.faq-footer-links a:hover {
  color: #000000;
  border-bottom-color: #000000;
}

/* ── SHARED PAGE STYLES (FAQ & ABOUT PAGES) ───────────────── */

.rp-body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #F8F8F8;
  color: #181818;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  box-sizing: border-box;
}

.rp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #E0E0E0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0px 1px 0px 0px #F6F6F6;
}

.rp-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1152px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media screen and (min-width: 48em) {
  .rp-header-bar {
    padding: 20px 40px;
  }
}

.rp-header-accent {
  height: 6px;
  background: linear-gradient(90deg, #F297FF 0%, #86A4FA 28.76%, #05B3F4 100%);
  border-radius: 0;
}

.rp-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.rp-logo-text {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.03em;
}

.rp-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rp-nav a {
  font-size: 13px;
  font-weight: 500;
  color: #555555;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 150ms ease, color 150ms ease;
  font-family: "Roboto Mono", monospace;
}

.rp-nav a:hover {
  background: #EDEFEE;
  color: #000000;
}

.rp-nav a.rp-nav-active {
  background: #E0E0E0;
  color: #000000;
}

/* ── MAIN CONTAINER ───────────────────────────────────────── */

.rp-main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 16px 60px 16px;
  box-sizing: border-box;
}

@media screen and (min-width: 48em) {
  .rp-main {
    padding: 60px 24px 80px 24px;
  }
}

/* ── PAGE HEADING ─────────────────────────────────────────── */

.rp-page-title {
  font-size: 2rem;
  font-weight: 500;
  color: #000000;
  margin: 0 0 8px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media screen and (min-width: 48em) {
  .rp-page-title {
    font-size: 2.25rem;
  }
}

.rp-page-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: #555555;
  margin: 0 0 36px 0;
  line-height: 1.6;
}

/* ── FAQ PAGE ACCORDION ───────────────────────────────────── */

.rp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #E0E0E0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 40px;
}

.rp-faq-item {
  border-bottom: 1px solid #E0E0E0;
}

.rp-faq-item:last-child {
  border-bottom: none;
}

.rp-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background-color 150ms ease;
  box-sizing: border-box;
}

.rp-faq-question:hover {
  background-color: #F2F2F2;
}

.rp-faq-question h2 {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

@media screen and (min-width: 48em) {
  .rp-faq-question h2 {
    font-size: 16px;
  }
}

.rp-faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EDEFEE;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease;
}

.rp-faq-icon svg {
  width: 12px;
  height: 12px;
  transition: transform 300ms ease;
}

.rp-faq-item.is-open .rp-faq-icon {
  background: #000000;
}

.rp-faq-item.is-open .rp-faq-icon svg path {
  fill: #ffffff;
}

.rp-faq-item.is-open .rp-faq-icon svg {
  transform: rotate(180deg);
}

.rp-faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 350ms ease, opacity 300ms ease;
  opacity: 0;
}

.rp-faq-item.is-open .rp-faq-answer {
  max-height: 800px;
  opacity: 1;
}

.rp-faq-answer p {
  font-size: 14px;
  font-weight: 400;
  color: #555555;
  margin: 0;
  padding: 0 20px 20px 20px;
  line-height: 1.6;
}

@media screen and (min-width: 48em) {
  .rp-faq-answer p {
    font-size: 15px;
  }
}

/* ── ABOUT PAGE CONTENT ───────────────────────────────────── */

.rp-about-card {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

@media screen and (min-width: 48em) {
  .rp-about-card {
    padding: 28px 28px;
  }
}

.rp-about-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

@media screen and (min-width: 48em) {
  .rp-about-card-title {
    font-size: 18px;
  }
}

.rp-about-card-body {
  font-size: 14px;
  font-weight: 400;
  color: #555555;
  line-height: 1.65;
  margin: 0;
}

@media screen and (min-width: 48em) {
  .rp-about-card-body {
    font-size: 15px;
  }
}

.rp-about-stats {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.rp-stat-box {
  flex: 1 1 140px;
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 20px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rp-stat-value {
  font-size: 22px;
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.rp-stat-label {
  font-size: 12px;
  font-weight: 400;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── GRADIENT BADGE (shared) ──────────────────────────────── */

.rp-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  background: linear-gradient(94.88deg, #25D5FD 0%, #F79FFE 100.04%);
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

/* ── PAGE FOOTER NAV ──────────────────────────────────────── */

.rp-page-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.rp-page-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  box-sizing: border-box;
  letter-spacing: -0.01em;
}

.rp-page-footer-btn.rp-btn-primary {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.rp-page-footer-btn.rp-btn-primary:hover {
  background: #2A2A2A;
  border-color: #2A2A2A;
}

.rp-page-footer-btn.rp-btn-secondary {
  background: #EDEFEE;
  color: #000000;
  border: 1px solid #E0E0E0;
}

.rp-page-footer-btn.rp-btn-secondary:hover {
  background: #E0E0E0;
  border-color: #BFBFBF;
}

/* ── FOOTER SOCIAL ROW (page footer) ─────────────────────── */

.rp-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  padding: 24px 0 0 0;
  border-top: 1px solid #E0E0E0;
}

.rp-social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F2F2F2;
  transition: background-color 150ms ease;
}

.rp-social-row a:hover {
  background: #E0E0E0;
}

.rp-social-row img {
  width: 18px;
  height: 18px;
  display: block;
}

/* ── UTILITY ──────────────────────────────────────────────── */

.rp-divider {
  border: none;
  border-top: 1px solid #E0E0E0;
  margin: 32px 0;
}

.rp-section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #808080;
  margin: 0 0 16px 0;
}