.faq-section {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 24px;
}

.faq-header {
  margin-bottom: 24px;
}

.faq-header h2,
.faq-group :is(h2, h3) {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.faq-header h1 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

.faq-intro,
.faq-answer p,
.faq-contact p,
.faq-empty {
  max-width: 48ch;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.faq-search-box {
  display: grid;
  gap: 8px;
  max-width: 640px;
  margin-bottom: 24px;
}

.faq-search-label {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.faq-search {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  background: var(--surface-sunken);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
}

.faq-search::placeholder { color: var(--text-secondary); }
.faq-result-count { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.4; }

.faq-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.faq-group {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.faq-group :is(h2, h3) { margin: 0 0 16px; }
.faq-item { border-top: 1px solid var(--border); }

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--text-secondary); }
.faq-item > summary::after {
  content: '';
  flex: 0 0 8px;
  height: 8px;
  border-right: 1px solid var(--text-secondary);
  border-bottom: 1px solid var(--text-secondary);
  transform: rotate(45deg);
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}
.faq-item[open] > summary::after { transform: rotate(225deg); }
.faq-answer { display: grid; gap: 16px; padding-bottom: 24px; }
.faq-answer p { margin: 0; }
.faq-answer .secondary-button { justify-self: start; max-width: 100%; }
.faq-answer a,
.faq-contact a { color: var(--accent-quiet); text-decoration: none; }
.faq-answer a:hover,
.faq-contact a:hover { text-decoration: underline; }
.faq-contact { margin-top: 24px; }
.faq-contact p { margin: 8px 0 0; }
.faq-empty { margin: 0; }
.faq-search:focus-visible,
.faq-item > summary:focus-visible,
.faq-answer a:focus-visible,
.faq-contact a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.faq-group[hidden], .faq-item[hidden], .faq-empty[hidden] { display: none; }

#help-view { padding-top: 40px; }
.support-content { grid-template-columns: minmax(0, 1fr); }
.support-content .faq-section { padding-top: 0; border-top: 0; }
.support-contact { max-width: 760px; scroll-margin-top: 24px; }
.policy-header.support-header { justify-content: space-between; gap: 24px; }

@media (max-width: 760px) {
  .faq-groups { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .landing-nav { flex-wrap: wrap; gap: 16px; }
  .landing-nav-actions { width: 100%; justify-content: space-between; gap: 16px; }
  .faq-section { padding-top: 40px; padding-bottom: 48px; }
  .faq-group { padding: 20px; }
  .support-header { flex-wrap: wrap; }
}

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