.page-faq {
  --faq-cyan: var(--ly-cyan, #22d3ee);
  --faq-line: var(--ly-line, #1e293b);
  --faq-ink: var(--ly-ink, #0b1220);
  --faq-text: var(--ly-text, #cbd5e1);
  --faq-panel: var(--ly-panel, #111a2b);
  --faq-blue: var(--ly-blue, #3b82f6);
  --faq-radius: var(--ly-radius, 12px);
  --faq-gap: var(--ly-gap, 24px);
  --faq-mono: var(--ly-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  --faq-display: var(--ly-font-display, system-ui, sans-serif);
  --faq-body: var(--ly-font-body, system-ui, sans-serif);
  color: var(--faq-text);
  background: var(--faq-ink);
  font-family: var(--faq-body);
  line-height: 1.7;
}

.page-faq *,
.page-faq *::before,
.page-faq *::after {
  box-sizing: border-box;
}

.page-faq a {
  color: inherit;
  text-decoration: none;
}

.page-faq img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- Hero ---------- */
.faq-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--faq-line);
}

.faq-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.faq-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.55), rgba(11, 18, 32, 0.96));
}

.faq-hero__inner {
  position: relative;
  max-width: var(--ly-maxw, 1200px);
  margin: 0 auto;
  padding: 72px 24px 56px;
}

.faq-hero__lede {
  max-width: 62ch;
  margin: 16px 0 0;
  font-size: 1.0625rem;
  color: var(--faq-text);
}

.faq-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--faq-gap);
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.faq-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--faq-line);
}

.faq-hero__stats strong {
  font-family: var(--faq-mono);
  font-size: 1.75rem;
  color: var(--faq-cyan);
  letter-spacing: 0.02em;
}

.faq-hero__stats span {
  font-size: 0.875rem;
  color: var(--faq-text);
}

/* ---------- Layout ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  max-width: var(--ly-maxw, 1200px);
  margin: 0 auto;
  padding: 56px 24px 72px;
}

/* ---------- Rail ---------- */
.faq-rail {
  position: sticky;
  top: 96px;
  align-self: start;
}

.faq-rail__title {
  margin: 0 0 16px;
  font-family: var(--faq-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faq-cyan);
}

.faq-rail__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--faq-line);
}

.faq-rail__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0 10px 16px;
  font-size: 0.9375rem;
  color: var(--faq-text);
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.faq-rail__link:hover,
.faq-rail__link:focus-visible {
  color: var(--faq-cyan);
  border-left-color: var(--faq-cyan);
}

.faq-rail__num {
  font-family: var(--faq-mono);
  font-size: 0.75rem;
  color: var(--faq-cyan);
}

.faq-rail__tip {
  margin: 20px 0 0;
  font-size: 0.8125rem;
  color: var(--faq-text);
  opacity: 0.7;
}

/* ---------- Stream ---------- */
.faq-stream {
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-width: 0;
}

.faq-group__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--faq-line);
}

.faq-group__num {
  font-family: var(--faq-mono);
  font-size: 0.875rem;
  color: var(--faq-cyan);
}

.faq-group__head h2 {
  margin: 0;
  font-family: var(--faq-display);
  font-size: 1.375rem;
  color: #f8fafc;
}

.faq-list {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

/* ---------- Fold items ---------- */
.faq-item {
  border-bottom: 1px solid var(--faq-line);
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-q__num {
  flex: none;
  font-family: var(--faq-mono);
  font-size: 1.125rem;
  color: var(--faq-cyan);
  letter-spacing: 0.04em;
}

.faq-q__text {
  flex: 1 1 auto;
  font-size: 1rem;
  color: #e2e8f0;
}

.faq-q__mark {
  flex: none;
  position: relative;
  width: 14px;
  height: 14px;
}

.faq-q__mark::before,
.faq-q__mark::after {
  content: "";
  position: absolute;
  background: var(--faq-cyan);
  transition: transform 0.2s ease;
}

.faq-q__mark::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

.faq-q__mark::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

.faq-item.is-open .faq-q__mark::after {
  transform: scaleY(0);
}

.faq-a {
  display: none;
  padding: 0 0 22px 34px;
  border-left: 2px solid var(--faq-cyan);
  margin-left: 2px;
}

.faq-item.is-open .faq-a {
  display: block;
}

.faq-a p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--faq-text);
}

/* ---------- Support ---------- */
.faq-support {
  border-top: 1px solid var(--faq-line);
  background: rgba(17, 26, 43, 0.6);
}

.faq-support__inner {
  max-width: var(--ly-maxw, 1200px);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.faq-support__head {
  max-width: 62ch;
}

.faq-support__head h2 {
  margin: 8px 0 0;
  font-family: var(--faq-display);
  font-size: 1.5rem;
  color: #f8fafc;
}

.faq-support__lede {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  color: var(--faq-text);
}

.faq-support__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px minmax(0, 1fr);
  align-items: center;
  gap: var(--faq-gap);
  margin-top: 40px;
}

.faq-channel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--faq-line);
  border-radius: var(--faq-radius);
  background: var(--faq-panel);
  transition: border-color 0.2s ease;
}

.faq-channel:hover,
.faq-channel:focus-visible {
  border-color: var(--faq-cyan);
}

.faq-channel__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--faq-cyan);
  border-radius: 50%;
  color: var(--faq-cyan);
  margin-bottom: 6px;
}

.faq-channel__label {
  font-family: var(--faq-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faq-cyan);
}

.faq-channel__value {
  font-family: var(--faq-mono);
  font-size: 1.0625rem;
  color: #f8fafc;
  word-break: break-all;
}

.faq-channel__note {
  font-size: 0.8125rem;
  color: var(--faq-text);
  opacity: 0.8;
}

.faq-support__art {
  width: 100%;
  border-radius: var(--faq-radius);
  opacity: 0.85;
}

.faq-support__foot {
  margin: 40px 0 0;
  font-size: 0.875rem;
  color: var(--faq-text);
}

.faq-support__foot a {
  color: var(--faq-cyan);
  border-bottom: 1px solid rgba(34, 211, 238, 0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 20px 56px;
  }

  .faq-rail {
    position: static;
  }

  .faq-rail__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-left: 0;
  }

  .faq-rail__link {
    padding: 8px 12px;
    border: 1px solid var(--faq-line);
    border-radius: 999px;
    margin-left: 0;
  }

  .faq-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-support__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-support__art {
    max-width: 240px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .faq-hero__inner {
    padding: 48px 18px 40px;
  }

  .faq-hero__stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-q {
    gap: 12px;
  }

  .faq-a {
    padding-left: 24px;
  }
}
