/* ==========================================================================
   FAQ page - premium upgrade matching /about /tools /services aesthetic.
   Scoped to .faq-page. No !important.
   ========================================================================== */

.faq-page {
  --faq-bg: #07070b;
  --faq-card: rgba(255, 255, 255, 0.035);
  --faq-card-hover: rgba(255, 255, 255, 0.06);
  --faq-border: rgba(255, 255, 255, 0.08);
  --faq-border-hover: rgba(196, 181, 253, 0.45);
  --faq-text: #f5f5f7;
  --faq-text-muted: #a8a8b3;
  --faq-accent: #c4b5fd;
  --faq-accent-strong: #a78bfa;
  --faq-success: #7AB55C;
}

/* HERO */
.faq-page .page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #050508 0%, #0a0a12 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  isolation: isolate;
}
.faq-page .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 35% at 22% 28%, rgba(196, 181, 253, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 78% 72%, rgba(122, 181, 92, 0.10), transparent 70%);
}
.faq-page .page-hero > .container { position: relative; z-index: 1; }
.faq-page .page-hero-inner { text-align: center; }

.faq-page .page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  background: rgba(196, 181, 253, 0.08);
  border: 1px solid rgba(196, 181, 253, 0.25);
  color: var(--faq-accent);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.faq-page .page-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faq-success);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(122, 181, 92, 0.7);
  animation: faq-pulse 2.4s infinite;
}
@keyframes faq-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.faq-page .page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--faq-text);
  margin: 0 auto 1.1rem;
  max-width: 22ch;
}
.faq-page .page-hero h1 .accent,
.faq-page .page-hero-accent {
  display: inline;
  background: linear-gradient(135deg, #c4b5fd 0%, #7AB55C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.faq-page .page-hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
  color: var(--faq-text-muted);
  max-width: 60ch;
  margin: 0 auto 2rem;
}
.faq-page .page-hero-desc a {
  color: var(--faq-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Quick-jump nav chips */
.faq-page .faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.faq-page .faq-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--faq-text-muted);
  background: var(--faq-card);
  border: 1px solid var(--faq-border);
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  min-height: 36px;
}
.faq-page .faq-nav-link:hover,
.faq-page .faq-nav-link:focus-visible {
  color: var(--faq-accent);
  border-color: var(--faq-border-hover);
  background: rgba(196, 181, 253, 0.08);
  transform: translateY(-1px);
}

/* Section blocks */
.faq-page > section { background: var(--faq-bg); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.faq-page > section + section { padding-top: 0; }

.faq-page .faq-section-title {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--faq-text);
  margin: 0 0 1.5rem;
  position: relative;
  padding-bottom: 0.85rem;
}
.faq-page .faq-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--faq-accent), transparent);
}

/* Accordion */
.faq-page .faq-accordion { display: grid; gap: 0.5rem; }
.faq-page .faq-item {
  background: var(--faq-card);
  border: 1px solid var(--faq-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
}
.faq-page .faq-item:hover {
  border-color: var(--faq-border-hover);
  background: var(--faq-card-hover);
}
.faq-page .faq-item[open] {
  border-color: rgba(196, 181, 253, 0.35);
  background: rgba(196, 181, 253, 0.04);
}
.faq-page .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--faq-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  user-select: none;
  transition: color 0.2s ease;
}
.faq-page .faq-item:hover summary { color: #ffffff; }
.faq-page .faq-item summary::-webkit-details-marker { display: none; }

/* Toggle icon — pixel-perfect plus drawn from two gradient bars instead
   of a text glyph (the "+" character renders with optical bias in most
   fonts and never truly centers). On [open] the whole square rotates
   45deg, turning the plus into an x without an extra keyframe. */
.faq-page .faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: rgba(196, 181, 253, 0.1);
  background-image:
    linear-gradient(#c4b5fd, #c4b5fd),
    linear-gradient(#c4b5fd, #c4b5fd);
  background-size: 12px 2px, 2px 12px;
  background-position: center, center;
  background-repeat: no-repeat;
  border: 1px solid rgba(196, 181, 253, 0.25);
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.faq-page .faq-item:hover summary::after {
  background-color: rgba(196, 181, 253, 0.18);
  border-color: rgba(196, 181, 253, 0.4);
}
.faq-page .faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: rgba(196, 181, 253, 0.22);
  border-color: rgba(196, 181, 253, 0.5);
}
.faq-page .faq-item summary:focus-visible {
  outline: 2px solid var(--faq-accent);
  outline-offset: -2px;
}
.faq-page .faq-answer {
  padding: 0.85rem 1.25rem 1.1rem;
  border-top: 1px solid rgba(196, 181, 253, 0.08);
  animation: faq-answer-in 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes faq-answer-in {
  from { opacity: 0; transform: translate3d(0, -4px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.faq-page .faq-answer p,
.faq-page .faq-answer li {
  color: var(--faq-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
}
.faq-page .faq-answer p:last-child,
.faq-page .faq-answer ol:last-child,
.faq-page .faq-answer ul:last-child { margin-bottom: 0; }
.faq-page .faq-answer ul,
.faq-page .faq-answer ol { padding-left: 1.4rem; margin-bottom: 0.85rem; }
.faq-page .faq-answer strong { color: var(--faq-text); font-weight: 700; }
.faq-page .faq-answer a {
  color: var(--faq-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Closing CTA - replace .section-cta-final / .cta-final */
.faq-page .section-cta-final {
  background: var(--faq-bg);
  padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(4rem, 7vw, 6rem);
}
.faq-page .cta-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(122, 181, 92, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(196, 181, 253, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(15, 15, 20, 0.6) 0%, rgba(20, 16, 32, 0.5) 100%);
  border: 1px solid rgba(196, 181, 253, 0.3);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  box-shadow: 0 30px 80px -40px rgba(196, 181, 253, 0.35);
}
.faq-page .cta-final h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--faq-text);
  margin: 0 0 0.85rem;
}
.faq-page .cta-final p {
  color: var(--faq-text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0 auto 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq-page .page-eyebrow::before,
  .faq-page .faq-nav-link,
  .faq-page .faq-item,
  .faq-page .faq-item summary,
  .faq-page .faq-item summary::after,
  .faq-page .faq-answer { transition: none; animation: none; }
}
