.faq-page {
  --faq-brand: #3384fc;
  --faq-ink: #0f172a;
  --faq-muted: #64748b;
  --faq-line: #e2e8f0;
  padding-bottom: 4rem;
}

.faq-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Hero ── */
.faq-page-hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 3rem;
  border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 768px) {
  .faq-page-hero {
    padding: 7.5rem 0 3.5rem;
  }
}

.faq-page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(51, 132, 252, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 45% at 100% 10%, rgba(51, 132, 252, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.faq-page-hero-shell {
  position: relative;
}

.faq-page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.faq-page-breadcrumb a {
  color: #64748b;
  transition: color 0.15s;
}

.faq-page-breadcrumb a:hover {
  color: var(--faq-brand);
}

.faq-page-hero-layout {
  display: grid;
  gap: 1.75rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .faq-page-hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem;
    align-items: center;
  }
}

.faq-page-hero-copy {
  min-width: 0;
  max-width: 38rem;
}

.faq-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
}

.faq-page-eyebrow-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--faq-brand);
  box-shadow: 0 0 10px rgba(51, 132, 252, 0.55);
}

.faq-page-title {
  margin: 0;
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--faq-ink);
}

.faq-page-lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--faq-muted);
  text-wrap: pretty;
}

.faq-page-hero-visual {
  min-width: 0;
  height: 100%;
}

.faq-page-hero-photo {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 11rem;
  margin: 0;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--faq-line);
  box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.3);
}

@media (min-width: 900px) {
  .faq-page-hero-photo {
    min-height: 15rem;
  }
}

.faq-page-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  aspect-ratio: unset;
  flex: 1 1 auto;
  object-fit: cover;
  object-position: center;
}

.faq-page-hero-photo figcaption {
  display: none;
}

/* ── Body ── */
.faq-page-body {
  padding-top: 2rem;
}

/* ── Filter panel ── */
.faq-page-panel {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--faq-line);
  background: #fff;
  box-shadow: 0 18px 40px -30px rgba(15, 23, 42, 0.2);
}

@media (min-width: 768px) {
  .faq-page-panel {
    padding: 1.5rem;
  }
}

.faq-page-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--faq-line);
  border-radius: 0.875rem;
  background: #f8fafc;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.faq-page-search:focus-within {
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(51, 132, 252, 0.12);
}

.faq-page-search svg {
  width: 1.15rem;
  height: 1.15rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.faq-page-search input {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--faq-ink);
  outline: none;
}

.faq-page-search input::placeholder {
  color: #94a3b8;
}

.faq-page-categories {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-bottom: 0.15rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) {
  .faq-page-categories {
    flex-wrap: wrap;
    overflow: visible;
  }
}

.faq-page-category {
  flex: 0 0 auto;
  border: 1px solid var(--faq-line);
  border-radius: 9999px;
  background: #fff;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.faq-page-category:hover {
  border-color: #93c5fd;
  color: #2563eb;
}

.faq-page-category.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #3384fc, #2563eb);
  color: #fff;
}

.faq-page-meta {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--faq-muted);
}

.faq-page-meta strong {
  font-weight: 600;
  color: #334155;
}

/* ── Accordion list ── */
.faq-page-list {
  display: grid;
  gap: 0.75rem;
}

.faq-page-item {
  border: 1px solid var(--faq-line);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 6.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-page-item.is-open {
  border-color: #bfdbfe;
  box-shadow: 0 14px 32px -24px rgba(51, 132, 252, 0.35);
}

.faq-page-item-category {
  margin: 0;
  padding: 0.9rem 1.2rem 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
}

.faq-page-item-question {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.faq-page-item-trigger {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  padding: 0.5rem 1.2rem 1rem;
  text-align: left;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--faq-ink);
  cursor: pointer;
}

.faq-page-item-trigger:hover {
  color: #2563eb;
}

.faq-page-item-trigger:focus-visible {
  outline: 2px solid #3384fc;
  outline-offset: -2px;
}

.faq-page-item-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--faq-line);
  background: #f8fafc;
  color: #2563eb;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.faq-page-item.is-open .faq-page-item-icon {
  border-color: transparent;
  background: #eff6ff;
  color: #2563eb;
}

.faq-page-item-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.faq-page-item-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq-page-item-answer.is-open {
  grid-template-rows: 1fr;
}

.faq-page-item-answer > p {
  margin: 0;
  overflow: hidden;
  padding: 0 1.2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
}

.faq-page-item-answer.is-open > p {
  margin: 0 1.2rem 1.15rem;
  padding: 0.9rem 0 0;
  border-top: 1px solid #f1f5f9;
}

.faq-page-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 2.25rem 1.25rem;
  text-align: center;
  color: var(--faq-muted);
}

.faq-page-reset {
  margin-top: 0.85rem;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.faq-page-reset:hover {
  color: #1d4ed8;
}

/* ── Index (browse all) ── */
.faq-page-index {
  margin: 2rem 0 0;
  border: 1px solid var(--faq-line);
  border-radius: 1.15rem;
  background: #fff;
  padding: 1rem 1.2rem;
}

.faq-page-index summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--faq-ink);
  list-style: none;
}

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

.faq-page-index summary::after {
  content: "+";
  float: right;
  color: #94a3b8;
  font-weight: 600;
}

.faq-page-index[open] summary::after {
  content: "–";
}

.faq-page-index ol {
  margin: 0.95rem 0 0.15rem;
  padding-left: 1.2rem;
  color: #2563eb;
}

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

.faq-page-index a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .faq-page-index ol {
    columns: 2;
    column-gap: 1.75rem;
  }
}

/* ── Infinite scroll / end ── */
.faq-page-sentinel {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.faq-page-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--faq-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.faq-page-spinner {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid rgba(51, 132, 252, 0.2);
  border-top-color: var(--faq-brand);
  border-radius: 50%;
  animation: faq-spin 0.7s linear infinite;
}

@keyframes faq-spin {
  to {
    transform: rotate(360deg);
  }
}

.faq-page-load-link,
.faq-page-end {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563eb;
}

.faq-page-load-link:hover {
  text-decoration: underline;
}

.faq-page-end {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--faq-muted);
}

.faq-page-error {
  margin-top: 1rem;
  text-align: center;
  color: #b91c1c;
}

.faq-page-noscript {
  padding: 2rem 0;
}

/* ── CTA ── */
.faq-page-cta {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 52%, #0f2744 100%);
  box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.55);
  overflow: hidden;
  align-items: center;
}

@media (min-width: 900px) {
  .faq-page-cta {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
    padding: 1.75rem;
  }
}

.faq-page-cta-copy {
  min-width: 0;
}

.faq-page-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}

.faq-page-cta-copy h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #fff;
}

.faq-page-cta-copy > p:not(.faq-page-cta-label) {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #94a3b8;
}

.faq-page-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3384fc, #2563eb);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px -10px rgba(51, 132, 252, 0.65);
  transition: transform 0.2s, filter 0.2s;
}

.faq-page-cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.faq-page-cta-btn svg {
  width: 1rem;
  height: 1rem;
}

.faq-page-cta-visual {
  min-width: 0;
  height: 100%;
}

.faq-page-cta-photo {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 10rem;
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 900px) {
  .faq-page-cta-photo {
    min-height: 12rem;
  }
}

.faq-page-cta-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  aspect-ratio: unset;
  flex: 1 1 auto;
  object-fit: cover;
  object-position: center;
}

.faq-page-cta-photo figcaption {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .faq-page-item-answer,
  .faq-page-cta-btn,
  .faq-page-spinner {
    transition: none;
    animation: none;
  }
}
