.page-faq {
  --faq-cut: 16px;
  --faq-text: #B6C1CC;
  --faq-sticky: calc(var(--shell-h) + 0px);
  display: block;
  padding-bottom: clamp(40px, 7vw, 96px);
}

/* ── Hero ───────────────────────────────────────────── */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
  background:
    radial-gradient(140% 100% at 92% 0%, rgba(200, 255, 60, .13), transparent 58%),
    radial-gradient(80% 70% at 6% 100%, rgba(53, 224, 192, .07), transparent 60%),
    linear-gradient(180deg, var(--c-deep) 0%, var(--c-void) 78%);
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(244, 247, 249, .035) 0 1px, transparent 1px 72px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 82%);
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.page-faq .faq-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(26px, 5vw, 58px) clamp(30px, 5vw, 64px);
  align-items: end;
}

.page-faq .faq-hero__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-neon);
}

.page-faq .faq-hero__title {
  margin: 14px 0 0;
  font-size: clamp(30px, 6.4vw, 56px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--c-ink);
  max-width: 17ch;
}

.page-faq .faq-hero__lead {
  margin: 16px 0 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.85;
  color: var(--c-muted);
}

.page-faq .faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-jump a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--c-ink);
  text-decoration: none;
  border: 1px solid var(--c-line);
  background: rgba(17, 24, 33, .7);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}

.page-faq .faq-jump a:hover,
.page-faq .faq-jump a:focus-visible {
  color: var(--c-neon);
  border-color: var(--c-neon);
  background: rgba(200, 255, 60, .07);
  outline: none;
}

.page-faq .faq-jump a:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 2px;
}

.page-faq .faq-hero__figure {
  margin: 0;
}

.page-faq .faq-hero__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  border: 1px solid var(--c-line);
  background: var(--c-panel);
}

.page-faq .faq-hero__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--c-muted);
}

@media (min-width: 900px) {
  .page-faq .faq-hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: clamp(32px, 5vw, 72px);
    padding-block: clamp(48px, 6vw, 84px) clamp(44px, 5.5vw, 76px);
  }
}

/* ── Filter bar ─────────────────────────────────────── */
.page-faq .faq-filter {
  position: sticky;
  top: var(--faq-sticky);
  z-index: 6;
  background: rgba(7, 9, 12, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}

.page-faq .faq-filter__inner {
  display: grid;
  gap: 10px;
  padding-block: 14px;
}

.page-faq .faq-filter__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-neon);
}

.page-faq .faq-filter__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--c-ink);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-neon);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background .16s var(--ease), border-color .16s var(--ease);
}

.page-faq .faq-filter__input::placeholder {
  color: var(--c-muted);
}

.page-faq .faq-filter__input:hover {
  background: var(--c-lift);
}

.page-faq .faq-filter__input:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: -2px;
  background: var(--c-lift);
}

.page-faq .faq-filter__hint {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--c-muted);
}

@media (min-width: 760px) {
  .page-faq .faq-filter__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
  }

  .page-faq .faq-filter__hint {
    max-width: 30ch;
    text-align: right;
  }
}

/* ── Category blocks ────────────────────────────────── */
.page-faq .faq-cat {
  padding-block: clamp(36px, 5.5vw, 72px);
  border-bottom: 1px solid var(--c-line);
  background: none;
}

.page-faq .faq-cat__inner {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}

.page-faq .faq-cat__index {
  display: block;
  font-family: var(--font-mono);
  font-weight: 200;
  font-size: clamp(40px, 7vw, 76px);
  line-height: .88;
  letter-spacing: -.05em;
  color: rgba(200, 255, 60, .3);
}

.page-faq .faq-cat__title {
  margin: 6px 0 0;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--c-ink);
}

.page-faq .faq-cat__lead {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--c-muted);
}

.page-faq .faq-cat__head::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 18px;
  background: var(--c-neon);
}

.page-faq .faq-cat__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

@media (min-width: 960px) {
  .page-faq .faq-cat__inner {
    grid-template-columns: minmax(0, 288px) minmax(0, 1fr);
    gap: clamp(32px, 4.5vw, 80px);
    align-items: start;
  }
}

/* Contact block gets a moss-green tint + CTA */
.page-faq .faq-cat--contact {
  border-top: 1px solid rgba(200, 255, 60, .22);
  background: linear-gradient(180deg, rgba(14, 26, 16, .88) 0%, var(--c-void) 76%);
}

/* ── Accordion items ────────────────────────────────── */
.page-faq .faq-item {
  position: relative;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--faq-cut)), calc(100% - var(--faq-cut)) 100%, 0 100%);
  transition: background .16s var(--ease), border-color .16s var(--ease);
  scroll-margin-top: calc(var(--shell-h) + 110px);
}

.page-faq .faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-neon);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform .22s var(--ease);
  z-index: 1;
}

.page-faq .faq-item[open]::before {
  transform: scaleY(1);
}

.page-faq .faq-item:hover {
  background: var(--c-lift);
}

.page-faq .faq-item[open] {
  background: var(--c-lift);
  border-color: rgba(200, 255, 60, .38);
}

.page-faq .faq-item[open]:target,
.page-faq .faq-item:target {
  border-color: var(--c-neon);
}

.page-faq .faq-item > summary {
  position: relative;
  display: block;
  padding: 16px 54px 16px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--c-ink);
  transition: color .16s var(--ease);
}

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

.page-faq .faq-item > summary::marker {
  content: "";
}

.page-faq .faq-item > summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: rotate(45deg);
  transition: transform .2s var(--ease), border-color .2s var(--ease), margin-top .2s var(--ease);
}

.page-faq .faq-item:hover > summary::after {
  border-color: var(--c-ink);
}

.page-faq .faq-item[open] > summary::after {
  border-color: var(--c-neon);
  transform: rotate(-135deg);
  margin-top: -2px;
}

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

.page-faq .faq-item__a {
  padding: 0 20px 20px 20px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--faq-text);
}

.page-faq .faq-item__a p {
  margin: 0 0 12px;
}

.page-faq .faq-item__a > p:last-child,
.page-faq .faq-item__a > ol:last-child,
.page-faq .faq-item__a > ul:last-child {
  margin-bottom: 0;
}

.page-faq .faq-item__a ol,
.page-faq .faq-item__a ul {
  margin: 0 0 12px;
  padding-left: 1.3em;
}

.page-faq .faq-item__a li {
  margin-bottom: 7px;
}

.page-faq .faq-item__a li:last-child {
  margin-bottom: 0;
}

.page-faq .faq-item__a li::marker {
  color: var(--c-neon);
  font-family: var(--font-mono);
  font-weight: 600;
}

.page-faq .faq-item__a a {
  color: var(--c-neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 255, 60, .42);
  transition: border-color .16s var(--ease);
}

.page-faq .faq-item__a a:hover {
  border-bottom-color: var(--c-neon);
}

.page-faq .faq-item__a a:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 2px;
}

.page-faq .num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.6em;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--c-neon);
  transform: translateY(.06em);
}

/* ── Aside figure inside a category ─────────────────── */
.page-faq .faq-aside {
  margin: clamp(20px, 3vw, 30px) 0 0;
}

.page-faq .faq-aside img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--c-line);
  background: var(--c-panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-faq .faq-aside__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--c-muted);
}

@media (max-width: 959px) {
  .page-faq .faq-aside {
    order: 2;
  }
}

/* ── In-category CTA ────────────────────────────────── */
.page-faq .faq-cta {
  margin-top: 14px;
  padding: 22px 22px 24px;
  background: rgba(11, 17, 25, .82);
  border: 1px solid rgba(200, 255, 60, .3);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-faq .faq-cta__text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-ink);
  max-width: 52ch;
}

.page-faq .faq-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-faq .faq-cta__link {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  background: transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}

.page-faq .faq-cta__link:hover,
.page-faq .faq-cta__link:focus-visible {
  border-color: var(--c-neon);
  color: var(--c-neon);
  outline: none;
}

.page-faq .faq-cta__link:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 3px;
}

.page-faq .faq-cta__link--solid {
  color: var(--c-void);
  background: var(--c-neon);
  border-color: var(--c-neon);
}

.page-faq .faq-cta__link--solid:hover,
.page-faq .faq-cta__link--solid:focus-visible {
  color: var(--c-void);
  background: #D7FF6A;
  border-color: #D7FF6A;
}

/* ── More links ─────────────────────────────────────── */
.page-faq .faq-more {
  padding-block: clamp(34px, 5vw, 64px);
  background: var(--c-deep);
  border-top: 1px solid var(--c-line);
}

.page-faq .faq-more__title {
  margin: 0 0 20px;
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--c-ink);
}

.page-faq .faq-more__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-more__list a {
  display: block;
  padding: 16px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-ink);
  text-decoration: none;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}

.page-faq .faq-more__list a:hover,
.page-faq .faq-more__list a:focus-visible {
  background: var(--c-lift);
  border-color: var(--c-neon);
  transform: translateY(-2px);
  outline: none;
}

.page-faq .faq-more__list a:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .page-faq .faq-more__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .page-faq .faq-more__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── Motion preferences ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item,
  .page-faq .faq-item::before,
  .page-faq .faq-item > summary::after,
  .page-faq .faq-jump a,
  .page-faq .faq-more__list a,
  .page-faq .faq-cta__link {
    transition: none;
  }

  .page-faq .faq-more__list a:hover {
    transform: none;
  }
}
