/* ==============================
   Shared FAQ Component
   Exact copy of FAQ styles from home.css
   scoped by #home-faq — reusable on any page
   ============================== */

#home-faq {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  background: #fafafa;
  padding: 100px 0;
}

#home-faq .home-faq-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding: 0 120px;
}

#home-faq .home-faq-copy {
  min-width: 0;
  width: 436px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 48px;
  text-align: left;
}

#home-faq .home-faq-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

#home-faq h2 {
  width: 527px;
  max-width: 100%;
  margin: 0;
  color: #181818;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.2;
}

#home-faq h2 span {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 1.2;
}

#home-faq .home-faq-description {
  width: 450px;
  max-width: 100%;
  margin: 0;
  color: #4d4d4d;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

#home-faq .home-faq-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

#home-faq .home-faq-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #5a5a5a;
  border-radius: 100px;
  padding: 8px 12px;
  color: #6f6f6f;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.33;
  white-space: nowrap;
}

/* FAQ list */

#home-faq .faq-list {
  box-sizing: border-box;
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 16px;
  padding: 8px;
}

#home-faq .faq-separator {
  border: none;
  border-top: 1px dashed #e7e7e7;
  margin: 0;
}

#home-faq .faq-item {
  overflow: hidden;
  border-radius: 8px;
}

#home-faq .faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 20px;
}

#home-faq .faq-item summary::-webkit-details-marker,
#home-faq .faq-item summary::marker {
  display: none;
}

#home-faq .faq-number {
  order: 1;
  width: 24px;
  flex: 0 0 auto;
  color: #414141;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

#home-faq .faq-question {
  order: 2;
  min-width: 0;
  flex: 1 1 auto;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.33;
}

#home-faq .faq-toggle {
  order: 3;
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

#home-faq .faq-toggle::before,
#home-faq .faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 1px;
  background: #212121;
  transform: translate(-50%, -50%);
}

#home-faq .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#home-faq .faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

#home-faq .faq-answer {
  box-sizing: border-box;
  overflow: hidden;
  color: #4d4d4d;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  opacity: 1;
  transform: translateY(0);
  transition:
    height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height, opacity, transform;
}

#home-faq .faq-answer-inner {
  padding: 0 20px 20px 60px;
}

#home-faq .faq-item:not([open]) .faq-answer {
  opacity: 0;
  transform: translateY(-6px);
}

/* Responsive: tablet */

@media (max-width: 1023px) {
  #home-faq .home-faq-inner {
    flex-direction: column;
    gap: 40px;
    padding-left: 48px;
    padding-right: 48px;
  }

  #home-faq .home-faq-copy {
    width: 100%;
  }

  #home-faq .home-faq-text {
    width: 100%;
  }

  #home-faq .faq-list {
    width: 100%;
    flex: 0 0 auto;
  }
}

/* Responsive: mobile */

@media (max-width: 767px) {
  #home-faq {
    padding: 40px 0;
  }

  #home-faq .home-faq-inner {
    gap: 24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  #home-faq .home-faq-copy {
    gap: 0;
  }

  #home-faq .home-faq-tags {
    display: none;
  }

  #home-faq h2 {
    width: 527px;
    font-size: 32px;
  }

  #home-faq .home-faq-description {
    width: 308px;
    font-size: 14px;
  }

  #home-faq .faq-item summary {
    gap: 16px;
    padding: 16px;
  }

  #home-faq .faq-question {
    font-size: 14px;
  }

  #home-faq .faq-answer {
    font-size: 14px;
  }

  #home-faq .faq-answer-inner {
    padding: 0 16px 16px 56px;
  }
}
