/* FAQ surface layout — uses shared design tokens from tokens.css */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 600;
}

section:first-of-type h2 {
  margin-top: 0.5rem;
}

a {
  color: var(--color-primary);
}

.faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.faq-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.1s ease,
    border-color 0.1s ease;
}

@media (hover: hover) {
  .faq-nav a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
  }
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.faq-item summary {
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

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

.faq-item p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0.5rem 0 0;
}

.home {
  margin-top: 2rem;
}
