/* FAQ Section - Accordion Row Style */
.faq {
  position: relative;
  background: #000000;
  overflow: hidden;
}

[data-theme="light"] .faq {
  background: #ffffff;
}

.faq.section {
  min-height: 100vh;
}

.faq::before,
.faq::after {
  content: none;
}

.faq__background,
.faq-terminal,
.faq-terminal__canvas-host,
.faq-glass-overlay {
  display: none;
}

.faq__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
}

.faq .section-inner {
  margin-top: 0;
  padding-top: clamp(2rem, 6vw, 3.75rem);
}

.faq .section-header {
  max-width: clamp(28rem, 68vw, 38rem);
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.faq .section-header h2 {
  font-size: clamp(2.25rem, 4.2vw, 2.8rem);
}

.faq .section-header p {
  color: color-mix(in srgb, var(--fg) 78%, var(--fg-muted) 22%);
}

[data-theme="light"] .faq .section-header,
[data-theme="light"] .faq .section-header h2 {
  color: var(--fg);
}

[data-theme="light"] .faq .section-header p {
  color: var(--fg-muted);
}

.faq .section-header .eyebrow {
  color: var(--eyebrow-color);
  letter-spacing: var(--eyebrow-letter-spacing);
}

/* Layout */
.faq__layout {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ List */
.faq__list {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.faq__list-scroller {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Accordion Row Styles */
.faq__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq__row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .faq__row {
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .faq__row:first-child {
  border-top-color: rgba(0, 0, 0, 0.12);
}

.faq__row-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--fg);
  transition: opacity 200ms ease;
}

.faq__row-header:hover {
  opacity: 0.7;
}

.faq__row-header:focus {
  outline: none;
}

.faq__row-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.faq__row-question {
  flex: 1;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.faq__row-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 300ms ease;
}

.faq__row-icon svg {
  width: 100%;
  height: 100%;
}

/* Collapse vertical line when open to show minus */
.faq__row-icon svg line:first-child {
  transform-origin: center;
  transition: transform 250ms ease;
}

.faq__row--open .faq__row-icon svg line:first-child {
  transform: scaleY(0);
}

/* Answer content */
.faq__row-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__row--open .faq__row-content {
  grid-template-rows: 1fr;
}

.faq__row-content-inner {
  overflow: hidden;
}

.faq__row-answer {
  margin: 0;
  padding-bottom: clamp(1.25rem, 3vw, 1.75rem);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48rem;
}

[data-theme="light"] .faq__row-answer {
  color: var(--fg-muted);
}

/* Loading state */
.faq__loading {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  text-align: center;
  padding: 2.5rem 1rem;
}

[data-theme="light"] .faq__loading {
  color: rgba(0, 0, 0, 0.5);
}

/* Sidebar - hidden */
.faq__sidebar {
  display: none;
}

.faq__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.25rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .faq__aside {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.faq__aside h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  text-align: center;
}

.faq__aside p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.faq__contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.faq__contact-trigger {
  justify-content: center;
  width: 100%;
}

/* Highlights sidebar card */
.faq__highlights {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.25rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .faq__highlights {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.faq__highlights h4 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  text-align: center;
}

.faq__highlights-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--fg-muted);
}

.faq__highlights-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.faq__highlights-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.faq__highlight-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

[data-theme="light"] .faq__highlight-label {
  background: rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 1149px) {
  .faq__layout {
    grid-template-columns: 1fr;
  }

  .faq__sidebar {
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .faq__aside,
  .faq__highlights {
    flex: 1 1 300px;
  }
}

@media (max-width: 640px) {
  .faq__sidebar {
    flex-direction: column;
  }

  .faq__aside,
  .faq__highlights {
    flex: 1 1 auto;
  }

  .faq__row-question {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq__row-content,
  .faq__row-icon,
  .faq__row-icon svg line:first-child,
  .faq__row-header {
    transition-duration: 0ms !important;
  }
}
