.page-faq {
  --faq-ink-soft: rgba(27, 18, 12, .72);
  --faq-line-cream: rgba(138, 155, 181, .42);
  --faq-panel-shadow: 0 26px 60px -34px rgba(10, 26, 58, .6);
}

.page-faq .faq-mono {
  font-family: var(--hth-font-mono);
  letter-spacing: .02em;
}

/* ---------- Hero ---------- */
.page-faq .faq-hero {
  padding-top: clamp(28px, 5vw, 60px);
  background:
    radial-gradient(120% 80% at 88% 0%, rgba(0, 229, 255, .14), transparent 60%),
    linear-gradient(180deg, var(--hth-cream) 0%, var(--hth-cream) 70%, rgba(246, 241, 231, .4) 100%);
}

.page-faq .faq-hero__grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: 1fr;
  margin-top: clamp(18px, 3vw, 30px);
}

.page-faq .faq-hero__title {
  font-family: var(--hth-font-display);
  font-weight: 900;
  font-size: clamp(38px, 7.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--hth-navy);
  margin: 12px 0 18px;
  text-transform: none;
}

.page-faq .faq-hero__title-accent {
  display: block;
  color: var(--hth-orange);
}

.page-faq .faq-hero__copy .hth-lede {
  color: var(--faq-ink-soft);
  max-width: 62ch;
}

.page-faq .faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-faq .faq-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 18px 0 0;
  margin: 26px 0 0;
  border-top: 1px dashed var(--faq-line-cream);
  font-size: 14px;
  color: var(--hth-ink);
}

.page-faq .faq-hero__meta li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-faq .faq-hero__meta .faq-mono {
  font-size: 18px;
  font-weight: 700;
  color: var(--hth-cyan-ink);
}

.page-faq .faq-hero__figure {
  margin: 0;
  position: relative;
  border-radius: var(--hth-radius-xl);
  overflow: hidden;
  background: var(--hth-navy);
  box-shadow: var(--faq-panel-shadow);
}

.page-faq .faq-hero__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-faq .faq-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .18) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .55;
}

.page-faq .faq-hero__figure .hth-media__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  background: rgba(10, 26, 58, .82);
  color: var(--hth-white);
  padding: 6px 14px;
  border-radius: var(--hth-radius-pill);
  font-size: 13px;
  font-family: var(--hth-font-mono);
}

/* ---------- Explorer ---------- */
.page-faq .faq-explorer {
  position: relative;
}

.page-faq .faq-explorer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hth-cyan), transparent);
  opacity: .5;
}

.page-faq .faq-explorer__head {
  max-width: 60ch;
}

.page-faq .faq-explorer__head .hth-title {
  color: var(--hth-white);
}

.page-faq .faq-explorer__head .hth-eyebrow {
  color: var(--hth-cyan);
}

.page-faq .faq-explorer__note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
}

.page-faq .faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(20px, 3vw, 30px) 0 clamp(24px, 4vw, 40px);
}

.page-faq .faq-filter {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--hth-line-dark);
  background: rgba(16, 42, 86, .7);
  color: rgba(255, 255, 255, .82);
  font-family: var(--hth-font-body);
  font-size: 14px;
  padding: 9px 18px;
  border-radius: var(--hth-radius-pill);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.page-faq .faq-filter:hover {
  border-color: var(--hth-cyan);
  color: var(--hth-white);
  transform: translateY(-1px);
}

.page-faq .faq-filter.is-active {
  background: var(--hth-gold);
  border-color: var(--hth-gold);
  color: var(--hth-navy);
  font-weight: 700;
}

.page-faq .faq-explorer__grid {
  display: grid;
  gap: clamp(22px, 3.4vw, 40px);
  grid-template-columns: 1fr;
}

/* ---------- Index rail ---------- */
.page-faq .faq-index {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--hth-radius-lg);
  background: linear-gradient(160deg, rgba(16, 42, 86, .95), rgba(10, 26, 58, .95));
  border: 1px solid var(--hth-line-dark);
  align-self: start;
}

.page-faq .faq-index__label {
  margin: 0 0 14px;
  font-family: var(--hth-font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hth-cyan);
}

.page-faq .faq-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  counter-reset: none;
}

.page-faq .faq-index__link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--hth-radius-md);
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  border-left: 2px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.page-faq .faq-index__link:hover,
.page-faq .faq-index__link:focus-visible {
  background: rgba(0, 229, 255, .12);
  color: var(--hth-white);
  border-left-color: var(--hth-cyan);
}

.page-faq .faq-index__link.is-current {
  color: var(--hth-gold);
  border-left-color: var(--hth-gold);
  background: rgba(242, 193, 78, .12);
}

.page-faq .faq-index__tip {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--hth-line-dark);
}

.page-faq .faq-index__tip p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .68);
}

/* ---------- Panels ---------- */
.page-faq .faq-panels {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
}

.page-faq .faq-block {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--hth-radius-xl);
  background: var(--hth-white);
  border: 1px solid rgba(10, 26, 58, .08);
  box-shadow: var(--faq-panel-shadow);
  scroll-margin-top: 90px;
}

.page-faq .faq-block[hidden] {
  display: none;
}

.page-faq .faq-block__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(10, 26, 58, .1);
}

.page-faq .faq-block__num {
  font-family: var(--hth-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--hth-navy);
  background: var(--hth-gold);
  border-radius: var(--hth-radius-pill);
  padding: 5px 13px;
}

.page-faq .faq-block__title {
  font-family: var(--hth-font-display);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--hth-navy);
  margin: 0;
}

.page-faq .faq-block__split {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  grid-template-columns: 1fr;
  align-items: start;
}

.page-faq .faq-block__figure {
  margin: 0;
  border-radius: var(--hth-radius-lg);
  overflow: hidden;
  background: var(--hth-navy);
  position: relative;
}

.page-faq .faq-block__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.page-faq .faq-block__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .16) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: screen;
  opacity: .5;
  pointer-events: none;
}

.page-faq .faq-block__figure .hth-media__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  background: rgba(10, 26, 58, .82);
  color: var(--hth-white);
  padding: 5px 12px;
  border-radius: var(--hth-radius-pill);
  font-size: 12px;
  font-family: var(--hth-font-mono);
}

/* ---------- Details list ---------- */
.page-faq .faq-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.page-faq .faq-item {
  border-radius: var(--hth-radius-lg);
  background: var(--hth-cream);
  border: 1px solid rgba(10, 26, 58, .08);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.page-faq .faq-item[open] {
  border-color: rgba(0, 229, 255, .55);
  box-shadow: 0 14px 34px -26px rgba(10, 26, 58, .6);
}

.page-faq .faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 46px 16px 18px;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--hth-navy);
}

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

.page-faq .faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--hth-font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--hth-cyan-ink);
  transition: transform .2s ease;
}

.page-faq .faq-item[open] > summary::after {
  content: "−";
  color: var(--hth-orange);
}

.page-faq .faq-item__body {
  padding: 0 18px 18px;
  border-top: 1px dashed var(--faq-line-cream);
  margin-top: 0;
}

.page-faq .faq-item__body p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--faq-ink-soft);
}

.page-faq .faq-item__body a {
  color: var(--hth-cyan-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-faq .faq-item__body a:hover {
  color: var(--hth-orange);
}

/* ---------- Support cards ---------- */
.page-faq .faq-support {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.page-faq .faq-support__card {
  padding: 18px 20px;
  border-radius: var(--hth-radius-lg);
  background: linear-gradient(155deg, rgba(16, 42, 86, .96), rgba(10, 26, 58, .96));
  color: var(--hth-white);
  border: 1px solid var(--hth-line-dark);
}

.page-faq .faq-support__label {
  margin: 0;
  font-family: var(--hth-font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hth-cyan);
}

.page-faq .faq-support__value {
  margin: 10px 0 0;
  font-size: 15px;
  word-break: break-all;
  color: var(--hth-white);
}

.page-faq .faq-support__value--text {
  font-family: var(--hth-font-body);
  line-height: 1.6;
}

.page-faq .faq-support__hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .64);
}

.page-faq .faq-copy {
  margin-top: 14px;
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--hth-lime);
  background: transparent;
  color: var(--hth-lime);
  font-family: var(--hth-font-body);
  font-size: 13px;
  padding: 7px 16px;
  border-radius: var(--hth-radius-pill);
  transition: background .2s ease, color .2s ease;
}

.page-faq .faq-copy:hover {
  background: var(--hth-lime);
  color: var(--hth-navy);
}

.page-faq .faq-list--support {
  margin-top: 22px;
}

/* ---------- CTA ---------- */
.page-faq .faq-cta {
  background: var(--hth-cream);
}

.page-faq .faq-cta__panel {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: 1fr;
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--hth-radius-xl);
  background:
    linear-gradient(120deg, var(--hth-navy) 0%, var(--hth-midnight) 62%, #143563 100%);
  color: var(--hth-white);
  border: 1px solid var(--hth-line-dark);
  box-shadow: var(--faq-panel-shadow);
  position: relative;
  overflow: hidden;
}

.page-faq .faq-cta__panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, .28), transparent 68%);
  pointer-events: none;
}

.page-faq .faq-cta__panel .hth-eyebrow {
  color: var(--hth-gold);
}

.page-faq .faq-cta__title {
  font-family: var(--hth-font-display);
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.12;
  margin: 10px 0 14px;
  color: var(--hth-white);
}

.page-faq .faq-cta__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .78);
  max-width: 58ch;
}

.page-faq .faq-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
  }

  .page-faq .faq-support {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-faq .faq-cta__panel {
    grid-template-columns: 1.4fr .6fr;
    align-items: center;
  }

  .page-faq .faq-cta__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1000px) {
  .page-faq .faq-explorer__grid {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }

  .page-faq .faq-index {
    position: sticky;
    top: 84px;
  }

  .page-faq .faq-block__split {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 420px) {
  .page-faq .faq-hero__title {
    font-size: clamp(32px, 9vw, 44px);
  }

  .page-faq .faq-filter {
    padding: 8px 14px;
    font-size: 13px;
  }

  .page-faq .faq-block {
    padding: 18px 16px;
  }

  .page-faq .faq-item > summary {
    padding: 14px 40px 14px 14px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-filter,
  .page-faq .faq-index__link,
  .page-faq .faq-copy,
  .page-faq .faq-item {
    transition: none;
  }
}
</main>
