/* FAQ section */
.faq-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: flex-start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.faq {
  overflow: hidden;
  padding: .85rem 1rem;
  border: 1px solid rgba(148, 163, 184, .4);
  border-radius: 1rem;
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq:hover {
  border-color: rgba(13, 110, 253, .4);
  transform: translateY(-1px);
}

.faq[open] {
  border-color: rgba(13, 110, 253, .5);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  list-style: none;
  color: var(--text);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  display: grid;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(13, 110, 253, .08);
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 220ms ease, background-color 180ms ease;
}

.faq[open] summary::after {
  transform: rotate(45deg);
  background: rgba(13, 110, 253, .14);
}

.faq summary:focus-visible {
  border-radius: .35rem;
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.faq > p {
  margin-top: .7rem;
  color: var(--muted);
  line-height: 1.65;
}

.faq > p a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: .15em;
}

/* A short fade and rise makes the answer feel connected to its question. */
.faq[open] > p {
  animation: faq-answer-in 240ms ease-out both;
}

@keyframes faq-answer-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-more {
  margin-top: .4rem;
  color: var(--primary);
}

.faq-more:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq,
  .faq summary::after {
    transition: none;
  }

  .faq[open] > p {
    animation: none;
  }
}
