/* ============================================
   ADDITIONAL STYLES - Kava FAQ, About, Shared
   ============================================ */

/* ---- Prevent horizontal overflow ---- */
.faq-section,
.faq-page-wrapper,
.about-page-wrapper,
.new-page-header,
.new-page-footer {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ============================================
   FAQ ACCORDION SECTION (index.html)
   ============================================ */

.faq-section {
  margin-top: 80px;
  margin-bottom: 0;
  padding: 60px 0 48px;
  background-color: #fff;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.faq-section .faq-container {
  width: 100%;
  max-width: 1118px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ---- H1 hero style ---- */
.faq-section .faq-hero-h1 {
  font-family: Inter, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1e1e1e;
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.faq-section .faq-hero-sub {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #7a8386;
  text-align: center;
  margin: 0 0 48px;
}

/* ---- Accordion items ---- */
.faq-accordion {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.faq-accordion-item {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  margin-bottom: 12px;
  background: #faf9f8;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-accordion-item:hover {
  box-shadow: 0 4px 20px rgba(83,78,255,0.08);
}

/* ---- Question button (h2) ---- */
.faq-accordion-item .faq-question {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1e1e1e;
  margin: 0;
  padding: 0;
}

.faq-accordion-item .faq-question-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1e1e1e;
  line-height: 1.4;
  transition: color 0.2s ease;
  box-sizing: border-box;
}

.faq-accordion-item .faq-question-btn:hover {
  color: #534EFF;
}

.faq-accordion-item.is-open .faq-question-btn {
  color: #534EFF;
}

/* ---- Toggle icon ---- */
.faq-question-icon {
  flex-shrink: 0;
  margin-left: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #534EFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.2s ease;
}

.faq-question-icon svg {
  fill: #fff;
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.faq-accordion-item.is-open .faq-question-icon {
  background-color: #342FDD;
  transform: rotate(180deg);
}

/* ---- Answer panel (h3) ---- */
.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}

.faq-accordion-item.is-open .faq-answer-panel {
  max-height: 600px;
}

.faq-answer-panel .faq-answer {
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.65;
  color: #555f61;
  margin: 0;
  padding: 0 24px 22px;
}

/* ---- Navigation links at bottom of section ---- */
.faq-section-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.faq-section-links a {
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #534EFF;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(83,78,255,0.35);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.faq-section-links a:hover {
  color: #342FDD;
  text-decoration-color: #342FDD;
}

/* ============================================
   SHARED NEW-PAGE STYLES (header, footer, layout)
   ============================================ */

/* Reset for new pages */
.new-page-body {
  margin: 0;
  font-family: Inter, sans-serif;
  background-color: #faf9f8;
  color: #1e1e1e;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.new-page-header {
  background-color: #faf9f8;
  border-bottom: 1px solid #eeeeee;
  padding: 0;
}

.new-page-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1118px;
  margin: 0 auto;
  padding: 14px 24px;
  box-sizing: border-box;
}

.new-page-logo img {
  height: 35px;
  display: block;
}

.new-page-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.new-page-nav a {
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e1e1e;
  text-decoration: none;
  transition: color 0.2s;
}

.new-page-nav a:hover {
  color: #534EFF;
}

.new-page-nav .btn-primary-nav {
  background-color: #534EFF;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
  box-shadow: rgba(0,0,0,0.05) 0px 4px 2px -2px;
}

.new-page-nav .btn-primary-nav:hover {
  background-color: #342FDD;
  color: #fff;
}

/* Main container */
.new-page-container {
  max-width: 1118px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Footer */
.new-page-footer {
  background-color: #faf9f8;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 40px 0;
  margin-top: 80px;
}

.new-page-footer-inner {
  max-width: 1118px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-sizing: border-box;
}

.new-page-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.new-page-footer-links a {
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e1e1e;
  text-decoration: none;
  transition: color 0.2s;
}

.new-page-footer-links a:hover {
  color: #534EFF;
}

.new-page-footer-copy {
  font-family: Inter, sans-serif;
  font-size: 0.8125rem;
  color: #7a8386;
  margin: 0;
}

/* Shared button styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #534EFF;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: rgba(0,0,0,0.05) 0px 4px 2px -2px;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #342FDD;
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #534EFF;
  border: 2px solid #534EFF;
  border-radius: 8px;
  padding: 12px 26px;
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background-color: rgba(83,78,255,0.06);
  color: #342FDD;
  text-decoration: none;
}

/* ============================================
   FAQ PAGE STYLES (faq/index.html)
   ============================================ */

.faq-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.faq-page-hero {
  background: linear-gradient(135deg, #f5f4ff 0%, #faf9f8 100%);
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid rgba(83,78,255,0.08);
}

.faq-page-hero h1 {
  font-family: Inter, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1e1e1e;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.faq-page-hero p {
  font-family: Inter, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  color: #7a8386;
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* FAQ page question list */
.faq-page-content {
  flex: 1;
  padding: 64px 0;
}

.faq-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-page-item {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: rgba(0,0,0,0.03) 0px 4px 20px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.faq-page-item:hover {
  box-shadow: rgba(83,78,255,0.1) 0px 6px 24px;
}

.faq-page-question-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}

.faq-page-question-btn h2 {
  font-family: Inter, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0;
  line-height: 1.4;
  transition: color 0.2s;
}

.faq-page-item.is-open .faq-page-question-btn h2 {
  color: #534EFF;
}

.faq-page-icon {
  flex-shrink: 0;
  margin-left: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #534EFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.2s;
}

.faq-page-icon svg {
  fill: #fff;
  width: 13px;
  height: 13px;
}

.faq-page-item.is-open .faq-page-icon {
  transform: rotate(180deg);
  background-color: #342FDD;
}

.faq-page-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}

.faq-page-item.is-open .faq-page-answer {
  max-height: 1000px;
}

.faq-page-answer-inner {
  padding: 0 28px 26px;
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #555f61;
  line-height: 1.7;
}

.faq-page-answer-inner h3 {
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #555f61;
  line-height: 1.7;
  margin: 0;
}

.faq-page-answer-inner a {
  color: #534EFF;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-page-answer-inner a:hover {
  color: #342FDD;
}

/* FAQ page bottom CTA */
.faq-page-cta {
  text-align: center;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.faq-page-cta p {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  color: #7a8386;
  margin: 0 0 8px;
}

.faq-page-cta-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.faq-page-cta-about {
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #534EFF;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.faq-page-cta-about:hover {
  color: #342FDD;
}

/* ============================================
   ABOUT PAGE STYLES (about/index.html)
   ============================================ */

.about-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero section */
.about-hero {
  background: linear-gradient(135deg, #f0eeff 0%, #faf9f8 100%);
  padding: 80px 0 72px;
  border-bottom: 1px solid rgba(83,78,255,0.08);
}

.about-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
  box-sizing: border-box;
}

.about-hero h1 {
  font-family: Inter, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.18;
  color: #1e1e1e;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
}

.about-hero h1 span {
  color: #534EFF;
}

.about-hero p {
  font-family: Inter, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  color: #7a8386;
  line-height: 1.65;
  margin: 0 0 32px;
}

.about-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Content sections */
.about-page-content {
  flex: 1;
  padding: 72px 0;
}

.about-section {
  margin-bottom: 72px;
}

.about-section-label {
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #534EFF;
  margin: 0 0 12px;
}

.about-section h2 {
  font-family: Inter, sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1e1e1e;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.about-section p {
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #555f61;
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 720px;
}

/* Feature cards grid */
.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.about-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: rgba(0,0,0,0.03) 0px 4px 20px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.about-card:hover {
  box-shadow: rgba(83,78,255,0.1) 0px 8px 30px;
  transform: translateY(-2px);
}

.about-card-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(83,78,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.about-card-icon svg {
  fill: #534EFF;
  width: 22px;
  height: 22px;
}

.about-card h3 {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0 0 10px;
}

.about-card p {
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #7a8386;
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
}

/* Stats bar */
.about-stats-bar {
  background: linear-gradient(135deg, #534EFF 0%, #7b78ff 100%);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 32px;
  box-sizing: border-box;
}

.about-stat-item {
  text-align: center;
}

.about-stat-value {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat-label {
  font-family: Inter, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Team section */
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.about-team-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: rgba(0,0,0,0.03) 0px 4px 20px;
  border: 1px solid rgba(0,0,0,0.06);
}

.about-team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #534EFF, #7b78ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-family: Inter, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.about-team-card h3 {
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0 0 6px;
}

.about-team-card p {
  font-family: Inter, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #7a8386;
  margin: 0;
  max-width: 100%;
}

/* About page bottom links */
.about-page-bottom {
  text-align: center;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.about-page-bottom p {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  color: #7a8386;
  margin: 0 0 20px;
}

.about-bottom-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE MOBILE STYLES
   ============================================ */

@media (max-width: 899px) {
  .faq-section .faq-hero-h1 {
    font-size: 1.7rem;
  }

  .faq-page-hero h1 {
    font-size: 1.8rem;
  }

  .about-hero h1 {
    font-size: 1.9rem;
  }

  .about-stats-bar {
    padding: 28px 20px;
  }

  .about-stat-value {
    font-size: 1.6rem;
  }

  .new-page-header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .new-page-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 599px) {
  .faq-section {
    padding: 40px 0 32px;
    margin-top: 48px;
  }

  .faq-section .faq-container {
    padding: 0 16px;
  }

  .faq-section .faq-hero-h1 {
    font-size: 1.4rem;
  }

  .faq-accordion-item .faq-question-btn {
    padding: 16px 18px;
    font-size: 0.9375rem;
  }

  .faq-answer-panel .faq-answer {
    padding: 0 18px 18px;
    font-size: 0.875rem;
  }

  .faq-page-hero {
    padding: 48px 0 36px;
  }

  .faq-page-hero h1 {
    font-size: 1.5rem;
  }

  .faq-page-question-btn {
    padding: 18px 20px;
  }

  .faq-page-question-btn h2 {
    font-size: 0.9375rem;
  }

  .faq-page-answer-inner {
    padding: 0 20px 20px;
    font-size: 0.875rem;
  }

  .about-hero {
    padding: 52px 0 44px;
  }

  .about-hero h1 {
    font-size: 1.5rem;
  }

  .about-page-content {
    padding: 48px 0;
  }

  .about-section h2 {
    font-size: 1.4rem;
  }

  .about-cards-grid {
    grid-template-columns: 1fr;
  }

  .about-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .new-page-nav {
    gap: 14px;
  }

  .new-page-container {
    padding: 0 16px;
  }

  .about-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .faq-section-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .about-team-grid {
    grid-template-columns: 1fr;
  }

  .faq-page-cta-links {
    flex-direction: column;
    align-items: center;
  }

  .about-bottom-links {
    flex-direction: column;
    align-items: center;
  }
}