.landing-faq-section {
  margin: 3rem clamp(0.75rem, 3vw, 2rem) 2rem;
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--background) 0%,
    var(--background-light) 88%,
    var(--background) 100%
  );
  z-index: 1;
}

.landing-faq-section::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='25' height='25' fill='none'%3e%3ccircle fill='rgb(0 0 0 / 0.12)' cx='10' cy='10' r='1.6257413380501518'%3e%3c/circle%3e%3c/svg%3e");
  background-repeat: repeat;
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.landing-faq-section::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.65) 100%);
  pointer-events: none;
  z-index: 0;
}

.landing-faq-inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3rem;
}

.landing-faq-section .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-faq-title {
  width: 100%;
  text-align: center;
  font-size: clamp(2.25rem, 8vw, 4rem);
  font-weight: 800;
  margin: 0;
  padding: 0 1.5rem 0.5rem;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
}

.landing-faq-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  margin-top: 1rem;
}

.landing-faq-search {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.landing-faq-searcher {
  flex: 1 1 240px;
  max-width: 480px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  background: rgba(244, 244, 244, 0.45);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.landing-faq-searcher:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 0 3px rgba(255, 162, 92, 0.28);
}

.landing-faq-search-button {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white-color);
  background: var(--color);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.landing-faq-search-button:hover {
  filter: brightness(1.04);
}

mark.landing-faq-search-highlight {
  background: transparent;
  color: var(--error-color);
  font-weight: 700;
  padding: 0 0.05em;
}

.landing-faq-questions {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.landing-faq-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.landing-faq-item[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .landing-faq-reveal:not(.landing-faq-reveal--visible) {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
  }
}

.landing-faq-reveal--visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.landing-faq-panel {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.landing-faq-panel.is-open {
  border-color: rgba(255, 162, 92, 0.45);
  box-shadow: 0 8px 32px rgba(255, 162, 92, 0.12);
}

.landing-faq-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.25rem 0.25rem 1.25rem;
}

.landing-faq-question {
  flex: 1;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
  background: none;
  border: none;
  padding: 1rem 0;
  cursor: pointer;
  line-height: 1.35;
}

.landing-faq-panel.is-open .landing-faq-question {
  color: var(--color-alt);
}

.landing-faq-toggle-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-faq-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.landing-faq-toggle:hover {
  filter: brightness(1.06);
  transform: scale(1.04);
}

.landing-faq-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  transition: transform 0.3s ease;
}

.landing-faq-panel.is-open .landing-faq-toggle svg {
  transform: rotate(180deg);
}

.landing-faq-answer {
  padding: 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.4s ease, padding 0.45s ease;
}

.landing-faq-answer p {
  margin: 0 0 1rem;
}

.landing-faq-answer p:last-child {
  margin-bottom: 0;
}

.landing-faq-panel.is-open .landing-faq-answer {
  max-height: 480px;
  opacity: 1;
  padding: 0 1.25rem 1.25rem;
}

@media (max-width: 850px) {
  .landing-faq-questions {
    flex-direction: column;
  }

  .landing-faq-section {
    margin: 2rem 0.75rem 1.5rem;
    border-radius: 20px;
  }

  .landing-faq-section::before,
  .landing-faq-section::after {
    border-radius: 20px;
  }

  .landing-faq-inner {
    padding: 2rem 0 2.5rem;
  }

  .landing-faq-searcher {
    max-width: none;
  }
}

/* Embedded variant for internal pages (no big background card). */
.landing-faq-section.landing-faq-section--embedded {
  margin: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.landing-faq-section.landing-faq-section--embedded::before,
.landing-faq-section.landing-faq-section--embedded::after {
  content: none;
}

.landing-faq-section.landing-faq-section--embedded .landing-faq-inner {
  padding: 0;
}

.landing-faq-section.landing-faq-section--embedded .landing-faq-wrapper {
  padding: 0;
  margin-top: 0;
}

.landing-faq-section.landing-faq-section--embedded .landing-faq-search {
  justify-content: center;
}

.landing-faq-section.landing-faq-section--embedded .landing-faq-title {
  text-align: center;
  padding: 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  margin-top: 1.25rem;
  margin-bottom: 0.9rem;
}

/* Tighter layout + slightly roomier cards for embedded pages. */
.landing-faq-section.landing-faq-section--embedded .landing-faq-questions {
  gap: 1.25rem;
}

.landing-faq-section.landing-faq-section--embedded .landing-faq-column {
  gap: 0.9rem;
}

.landing-faq-section.landing-faq-section--embedded .landing-faq-panel-header {
  padding: 0.35rem 0.35rem 0.35rem 1.5rem;
}

.landing-faq-section.landing-faq-section--embedded .landing-faq-question {
  padding: 1.1rem 0;
}

.landing-faq-section.landing-faq-section--embedded .landing-faq-answer {
  padding: 0 1.5rem;
}

.landing-faq-section.landing-faq-section--embedded .landing-faq-panel.is-open .landing-faq-answer {
  padding: 0 1.5rem 1.5rem;
}

