/* Homepage: FAQ and final call to action */

.final-cta h2 {
  margin-inline: auto;
  font-weight: 600;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 120px;
  max-width: 440px;
}

.faq-intro h2 {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: clamp(2.3rem, 4vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.faq-intro > p:last-child {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.86);
}

.faq-list details[open] {
  border-color: color-mix(in srgb, var(--primary-2) 42%, var(--hairline));
  box-shadow: 0 12px 26px rgba(18, 30, 25, 0.07);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  flex: 0 0 auto;
  font-weight: 400;
}

.faq-list details p {
  max-width: 42rem;
  margin: -4px 42px 22px 0;
  color: var(--muted);
  line-height: 1.65;
}

.final-cta {
  padding-block: 92px 84px;
  color: var(--ink);
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.final-cta .shell {
  max-width: min(100%, 760px);
}

.final-cta .eyebrow {
  margin-inline: auto;
  color: var(--primary-2);
}

.final-cta h2 {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.final-cta-copy {
  max-width: 520px;
  margin: 22px auto 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.faq-list details {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}

.faq-list summary::after {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-list details[open] summary::after {
  content: '−';
  background: var(--primary-2);
  color: #fff;
}

.final-cta::before,
.final-cta::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.faq-section::before {
  inset: 0;
  background-image: linear-gradient(rgba(26, 91, 75, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 91, 75, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 15% 20%, #000, transparent 65%);
  mask-image: radial-gradient(ellipse at 15% 20%, #000, transparent 65%);
}

.faq-section::after {
  display: none;
  width: 380px;
  height: 380px;
  right: -120px;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 91, 75, 0.14), transparent 68%);
}

.final-cta::before {
  display: none;
  width: 820px;
  height: 820px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 58px,
    rgba(26, 91, 75, 0.07) 58px 59px
  );
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 68%);
  mask-image: radial-gradient(circle, #000 25%, transparent 68%);
}

.final-cta::after {
  inset: 0;
  background-image: radial-gradient(rgba(197, 140, 43, 0.1) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(35% 60% at 0% 50%, #000, transparent),
    radial-gradient(35% 60% at 100% 50%, #000, transparent);
  mask-image: radial-gradient(35% 60% at 0% 50%, #000, transparent),
    radial-gradient(35% 60% at 100% 50%, #000, transparent);
}

.faq-list summary {
  color: #000;
}

.faq-list summary::after {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--edge);
}

.final-cta .final-cta-copy {
  color: var(--muted);
}

.faq-list a {
  color: var(--primary-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: none) {
  .faq-list details:hover {
    transform: none;
  }

}

@media (max-width: 960px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .faq-intro {
    position: static;
    max-width: none;
  }

}

@media (max-width: 760px) {
  .faq-list details {
    padding-inline: 18px;
  }

  .faq-list summary {
    min-height: 64px;
    font-size: 0.95rem;
  }

  .faq-list details p {
    margin-right: 0;
  }

  .final-cta::before {
    width: 520px;
    height: 520px;
  }

  .faq-section::after {
    width: 260px;
    height: 260px;
  }

  .final-cta {
    padding-block: var(--m-section);
  }

  .faq-intro h2,
  .final-cta h2 {
    font-family: var(--font-head);
    font-size: var(--m-h2);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  .faq-list details p,
  .final-cta-copy {
    font-size: var(--m-body);
    line-height: 1.65;
  }

  .faq-list details {
    border-radius: var(--radius-md);
  }

  .faq-list {
    gap: var(--m-gap);
  }

  .faq-layout {
    gap: var(--m-head-gap);
  }

  .faq-intro h2 {
    margin-bottom: 12px;
  }

  .faq-list details summary {
    padding: 16px var(--m-card-pad);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
  }

  .faq-list details p {
    margin: 0;
    padding: 0 var(--m-card-pad) 16px;
  }

  .final-cta h2 {
    margin-bottom: 12px;
  }

  .final-cta-copy {
    margin: 0 0 20px;
  }

}
