/* Full /faq page — contact-quality header + homepage-style accordion */

.faq-doc {
  --faq-ease: cubic-bezier(0.22, 1, 0.36, 1);
  width: min(860px, 100%);
  margin: 8px auto 72px;
  padding: 8px 4px 0;
}

.faq-header {
  position: relative;
  margin-bottom: 24px;
  padding: 8px 0 32px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.faq-header::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: min(420px, 70vw);
  height: 220px;
  background:
    radial-gradient(ellipse at center, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%);
  pointer-events: none;
  opacity: 0.9;
}

.faq-eyebrow {
  position: relative;
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.faq-header h1 {
  position: relative;
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.2vw, 2.65rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--cream);
}

.faq-lede {
  position: relative;
  margin: 0;
  max-width: 40rem;
  color: var(--cream-dim);
  font-size: 1.05rem;
  line-height: 1.75;
}

.faq-lede a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-lede a:hover {
  color: var(--gold-bright);
}

/* —— Section jump links —— */

.faq-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
  padding: 0;
}

.faq-toc a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--cream-dim);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    border-color 180ms var(--faq-ease),
    color 180ms var(--faq-ease),
    background 180ms var(--faq-ease);
}

.faq-toc a:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  color: var(--cream);
  background: color-mix(in srgb, var(--gold) 6%, var(--paper));
}

.faq-toc a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* —— Sections —— */

.faq-section {
  margin-bottom: 36px;
  scroll-margin-top: 88px;
}

.faq-section:target h2 {
  color: var(--gold-bright);
}

.faq-section h2 {
  margin: 0 0 14px;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--cream);
}

.faq-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  overflow: hidden;
  box-shadow: var(--panel-glow);
}

.faq-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  transition: background 0.18s ease;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item:hover {
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
}

.faq-item[open] {
  background: color-mix(in srgb, var(--gold) 5%, var(--panel));
}

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  list-style: none;
  cursor: pointer;
  color: var(--cream);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.4;
  user-select: none;
}

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

.faq-item > summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.faq-q {
  flex: 1 1 auto;
  min-width: 0;
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  margin: -0.75px 0 0 -5px;
  background: var(--muted);
  border-radius: 1px;
  transition: background 0.18s ease, transform 0.22s var(--faq-ease), opacity 0.18s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line-strong));
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.faq-item[open] .faq-icon::before {
  background: var(--gold);
}

.faq-item[open] .faq-icon::after {
  background: var(--gold);
  transform: rotate(90deg) scaleX(0);
  opacity: 0;
}

.faq-a {
  padding: 0 52px 18px 20px;
}

.faq-a > p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.faq-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.faq-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.faq-link::after {
  content: "→";
  transition: transform 0.18s ease;
}

.faq-link:hover::after {
  transform: translateX(3px);
}

/* —— Contact band —— */

.faq-contact {
  margin-top: 12px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.faq-contact-copy {
  margin-bottom: 16px;
}

.faq-contact-copy h2 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--cream);
}

.faq-contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 70%, transparent), var(--panel));
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms var(--faq-ease),
    background 180ms var(--faq-ease),
    transform 180ms var(--faq-ease),
    box-shadow 180ms var(--faq-ease);
}

.faq-contact-card:hover {
  border-color: var(--glow-line, color-mix(in srgb, var(--gold) 40%, var(--line)));
  background: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--panel-glow-hover);
}

.faq-contact-card:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.faq-contact-card--primary {
  border-color: color-mix(in srgb, var(--gold) 28%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gold) 8%, var(--paper)), var(--panel));
}

.faq-contact-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.faq-contact-title {
  color: var(--cream);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.35;
  word-break: break-word;
}

.faq-contact-hint {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .faq-doc {
    margin-bottom: 56px;
  }

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

  .faq-header h1 {
    font-size: clamp(1.75rem, 8vw, 2.1rem);
  }

  .faq-toc {
    margin-bottom: 28px;
    gap: 6px;
  }

  .faq-toc a {
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .faq-item > summary {
    padding: 15px 16px;
    font-size: 0.95rem;
  }

  .faq-a {
    padding: 0 16px 16px;
  }

  .faq-contact-actions {
    grid-template-columns: 1fr;
  }
}
