/* Building Blocks Section — adapted from relume.io */

.section_building-blocks {
  padding: 7rem 0 5rem;
}
.bb-container {
  max-width: 1307px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Header */
.bb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.bb-header-left {
  width: 50%;
  flex-shrink: 0;
}
.bb-header-left h2 {
  font-size: 56px;
  font-weight: 400;
  line-height: 67.2px;
  letter-spacing: -1.12px;
  color: #171717;
  margin: 0;
}
.bb-header p {
  width: 50%;
  font-size: 18px;
  line-height: 28px;
  color: #686868;
  margin: 0;
}

/* Badge */
.bb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 500;
  color: #707070;
  margin-bottom: 1rem;
}
.bb-badge-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.bb-badge-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Card grid */
.bb-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Card */
.bb-card {
  background: #fff;
  border: 1px solid rgba(22, 22, 22, 0.15);
  border-radius: 1rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.bb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
}

/* Card top (image area + logo) */
.bb-card-top {
  position: relative;
  padding-bottom: 26px;
}

/* Card image wrapper */
.bb-card-image-wrapper {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  width: 100%;
}
.bb-card-image1 {
  width: 100%;
  border-radius: 0.5rem;
  display: block;
}
.bb-card-image2 {
  position: absolute;
  top: -48px;
  right: 20px;
  width: 46%;
  height: auto;
  z-index: 2;
  transition: transform 0.4s ease;
}
.bb-card:hover .bb-card-image2 {
  transform: translateY(-1rem);
}

/* Card logo */
.bb-card-logo {
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 56px;
  height: 56px;
  z-index: 3;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.bb-card-logo svg {
  width: 28px;
  height: 28px;
  display: block;
  color: #171717;
}

/* Card bottom (content) */
.bb-card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bb-card-content h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  color: #171717;
  margin: 0 0 0.75rem;
}
.bb-card-content > p {
  font-size: 16px;
  line-height: 24px;
  color: #686868;
  margin: 0 0 1.25rem;
}

/* Check list items */
.bb-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.bb-card-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  line-height: 20px;
  color: #333;
}
.bb-card-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #171717;
}
.bb-card-check svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Card CTA — full width */
.bb-card-cta {
  margin-top: auto;
  padding-top: 0.5rem;
}
.bb-card-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  color: #171717;
  text-decoration: none;
  padding: 0.625rem 1rem;
  min-height: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  transition: background-color 0.2s;
  line-height: 1;
}
.bb-card-cta a:hover {
  background-color: #FAFAFA;
}

/* ─── Footer CTA Section — adapted from relume.io ─── */

.section_footer-cta {
  padding: 0 2.5rem;
  background-color: #FAFAFA;
}
.footer-cta {
  max-width: 1307px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr max-content;
  grid-column-gap: 5rem;
  grid-row-gap: 5rem;
  align-items: end;
  padding-top: 7vh;
  padding-bottom: 7vh;
}
.footer-cta-left {
  max-width: 48rem;
}
.footer-cta h1 {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.72px;
  color: #171717;
  margin: 0;
}
.footer-cta-gradient {
  background-image: linear-gradient(100deg, #FADAFA, #D1EDF5 44%, #72E3AD 92%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientAnimation 10s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes gradientAnimation {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.footer-cta-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #171717;
  color: #fff;
  text-align: center;
  border-radius: 999px;
  height: 3rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s;
}
.footer-cta-button:hover {
  background-color: #333;
}
.footer-cta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.footer-cta-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.footer-cta-subtitle {
  font-size: 14px;
  color: #686868;
  margin-top: 0.75rem;
}
.footer-cta-divider {
  max-width: 1307px;
  margin: 0 auto;
  background-color: rgba(22, 22, 22, 0.15);
  width: 100%;
  height: 1px;
}

/* ─── FAQ Section ─── */

.section_faq {
  padding: 7rem 0;
  background: #FAFAFA;
}
.faq-container {
  max-width: 1307px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Header */
.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}
.faq-header .bb-badge {
  justify-content: center;
  margin-bottom: 1rem;
}
.faq-header h2 {
  font-size: 38px;
  font-weight: 500;
  line-height: 43px;
  color: #171717;
  margin: 0 0 1rem;
}
.faq-header p {
  font-size: 18px;
  line-height: 28px;
  color: #686868;
  margin: 0;
}
.faq-header p a {
  color: #171717;
  font-weight: 500;
  text-decoration: none;
}
.faq-header p a:hover {
  text-decoration: underline;
}

/* Two-column accordion grid */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}
.faq-col {
  display: flex;
  flex-direction: column;
}

/* Items — blog post style */
.faq-item {
  border-bottom: 1px solid #e0e0e0;
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: Ppmori, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: #333;
  transition: color 0.2s;
}
.faq-trigger:hover .faq-question-text {
  color: #171717;
}
.faq-question-text {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  margin: 0;
  transition: color 0.2s;
}
.faq-chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #525252;
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.faq-item.is-open .faq-answer-wrap {
  max-height: 500px;
}
.faq-answer {
  padding: 0 0 16px;
  font-family: Ppmori, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #525252;
  margin: 0;
}

/* Footer */
.faq-footer {
  text-align: center;
  margin-top: 2.5rem;
}
.faq-footer .faq-footer-text {
  font-size: 14px;
  color: #525252;
  margin-bottom: 16px;
}
.faq-footer a {
  color: #00bb68;
  text-decoration: none;
}
.faq-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 991px) {
  .section_building-blocks {
    padding: 5rem 0 4rem;
  }
  .bb-header {
    flex-direction: column;
  }
  .bb-header-left, .bb-header p {
    width: 100%;
  }
  .bb-header-left h2 {
    font-size: 3.25rem;
    line-height: 1.2;
  }
  .footer-cta {
    grid-template-columns: 1fr;
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
    padding-top: 5vh;
    padding-bottom: 5vh;
  }
  .footer-cta h1 {
    font-size: 1.75rem;
  }
  .section_faq {
    padding: 5rem 0;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media screen and (max-width: 767px) {
  .section_building-blocks {
    padding: 4rem 0 3rem;
  }
  .bb-container {
    padding: 0 1rem;
  }
  .bb-card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .bb-header-left h2 {
    font-size: 2.25rem;
    line-height: 1.2;
  }
  .bb-card-image2 {
    top: -32px;
  }
  .section_footer-cta {
    padding: 0 1rem;
  }
  .footer-cta h1 {
    font-size: 1.75rem;
  }
  .footer-cta-gradient {
    white-space: normal;
  }
  .section_faq {
    padding: 4rem 0;
  }
  .faq-container {
    padding: 0 1rem;
  }
  .faq-header h2 {
    font-size: 28px;
    line-height: 34px;
  }
}
