/* --- FAQ Section --- */
.faq-section {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
  background: #f5f5f6;
  margin-top: -1px;
  padding: clamp(76px, 8vw, 112px) 0 clamp(88px, 9vw, 128px);
}

.faq-stage {
  position: relative;
  width: min(calc(100% - var(--content-gutter-desktop)), var(--content-wide));
  height: auto;
  margin: 0 auto;
  background: transparent;
}

.faq-eyebrow {
  position: absolute;
  left: 78px;
  top: 100px;
  margin: 0;
  color: var(--lime);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.faq-title {
  position: static;
  width: min(100%, 1180px);
  margin: 0 auto;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: clamp(44px, 4.1vw, 64px);
  font-weight: var(--section-title-weight);
  letter-spacing: var(--section-title-spacing);
  line-height: var(--section-title-line);
  text-align: center;
}

.faq-title span {
  color: var(--lime);
}

.faq-container {
  position: static;
  width: min(100%, 1280px);
  margin: 42px auto 0;
  display: block;
}

.faq-list {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Questions stay available immediately, including keyboard and anchor visits. */
.faq-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  opacity: 1;
  transform: none;
}

.faq-row.faq-row--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Vertical timeline line segments between circles */
.faq-row:not(:last-child)::after {
  display: none !important;
}

/* Active green line below the active node */
.faq-row:has(.faq-timeline-node.is-active):not(:last-child)::after {
  display: none !important;
}

.faq-row:last-of-type::after {
  display: none !important;
}

.faq-timeline-node {
  display: none !important;
}

.faq-timeline-node.is-active {
  border-color: var(--lime);
  color: var(--lime);
  background: rgb(var(--lime-rgb) / 0.05);
  box-shadow: 0 0 0 4px rgb(var(--lime-rgb) / 0.08);
}

.faq-item {
  flex: 1;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: none;
  border: 0;
  overflow: hidden;
  transition: 
    border-color 300ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.faq-item.is-open {
  box-shadow: none;
}

.faq-trigger {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px 12px 32px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .faq-trigger::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 -10% 0 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1160C1120 18 1200 30 1160 50S1120 82 1160 100H0Z' fill='%23eef0ed'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    transform: translateX(-100%);
    transition: transform 180ms cubic-bezier(.23, 1, .32, 1);
  }

  .faq-trigger:hover::before {
    transform: translateX(0);
    transition-duration: 280ms;
  }

  .faq-trigger:hover .faq-chevron-icon {
    background-color: #ededed;
  }
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -3px;
}

.faq-question {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.faq-chevron-icon {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: 50%;
  background-color: #f7f7f7;
  transition:
    color 180ms var(--ease-out),
    background-color 180ms var(--ease-out);
}

.faq-chevron-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.faq-plus-vertical {
  transform-origin: center;
  transition:
    opacity 160ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.faq-item.is-open .faq-chevron-icon {
  color: var(--ink);
  background-color: #f1f1f1;
}

.faq-item.is-open .faq-plus-vertical {
  opacity: 0;
  transform: scaleY(0.25);
}

.faq-item.is-open .faq-trigger {
  background-color: #ffffff;
}

.faq-content-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms var(--ease-out);
}

.faq-item.is-open .faq-content-wrap {
  grid-template-rows: 1fr;
}

.faq-content {
  overflow: hidden;
  /* Fade the answer text when the accordion opens */
  opacity: 0;
  transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-item.is-open .faq-content {
  opacity: 1;
}

.faq-content p {
  margin: 0;
  padding: 18px 32px 28px;
  font-size: 17px;
  line-height: 1.62;
  color: #3a3a3a;
}

.faq-row[data-input="keyboard"] :is(.faq-content-wrap, .faq-content, .faq-plus-vertical) { transition: none; }
.faq-trigger:focus-visible::before { transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .faq-trigger::before { display: none; }
  .faq-row :is(.faq-content-wrap, .faq-content, .faq-plus-vertical) { transition: none; }
}
