/* FAQ page. Loaded after styles.css; reuses the home FAQ components (.faq-layout, .faq-item, .sec-icon). */

.faq-page {
  background: var(--bg);
}

/* ---------- Intro ---------- */
.faq-page .faq-hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.faq-hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.faq-hero-mesh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.faq-hero-mesh span:first-child {
  top: -160px;
  right: -80px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(0, 164, 255, 0.28), transparent 70%);
}

.faq-hero-mesh span:last-child {
  bottom: -220px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 164, 255, 0.16), transparent 70%);
}

.faq-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-hero .sec-icon {
  margin-bottom: 22px;
}

.faq-hero h1 {
  max-width: 18ch;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.faq-hero-lede {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.faq-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.faq-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.faq-jump a svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent);
}

.faq-jump a:hover,
.faq-jump a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px rgba(0, 164, 255, 0.16);
}

/* ---------- Category sections ---------- */
.faq-page .faq-cat {
  padding: 88px 0;
  background: var(--surface);
  scroll-margin-top: 72px;
}

.faq-page .faq-cat-alt {
  background: var(--surface-alt);
}

.faq-cat .faq-side h2 {
  font-size: clamp(28px, 3.2vw, 38px);
}

.faq-cat .faq-side p {
  font-size: 16.5px;
}

/* Keep each question on a single line. The text gets all the free space beside the icon, and on
   tablet and desktop it never wraps (an ellipsis is the last-resort fallback). Phones may wrap. */
.faq-page .faq-q > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.faq-page .faq-q-text {
  min-width: 0;
}

@media (min-width: 761px) {
  .faq-page .faq-q-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* a little more room for the question column on wide screens */
@media (min-width: 981px) {
  .faq-page .faq-layout {
    grid-template-columns: 0.7fr 1.3fr;
  }
}

/* Question cards: the base style keeps the left edge transparent until a card is open and uses a
   very light border, so cards disappear on the white sections. Give every card a clear outline. */
.faq-page .faq-item {
  border-color: var(--border-strong);
  box-shadow: 0 1px 2px rgba(11, 15, 20, 0.05);
}

.faq-page .faq-item.open {
  border-left-color: var(--accent);
  box-shadow: 0 4px 14px rgba(11, 15, 20, 0.07);
}

.faq-a a {
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.faq-a a:hover {
  text-decoration-thickness: 2px;
}

.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ---------- Closing call to action ---------- */
.faq-page .faq-cta {
  padding: 80px 0 96px;
  background: var(--surface-alt);
}

.faq-cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 48px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%);
  box-shadow: var(--shadow-sm);
}

.faq-cta h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
}

.faq-cta p {
  max-width: 54ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.faq-cta-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.faq-cta-mail {
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
}

.faq-cta-mail:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .faq-page .faq-hero {
    padding: 48px 0 40px;
  }

  .faq-hero-lede {
    font-size: 16px;
  }

  .faq-jump {
    gap: 8px;
  }

  .faq-jump a {
    padding: 9px 14px 9px 12px;
    font-size: 13px;
  }

  .faq-page .faq-cat {
    padding: 56px 0;
    scroll-margin-top: 56px;
  }

  .faq-page .faq-cta {
    padding: 56px 0 72px;
  }

  .faq-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
    padding: 32px 26px;
    border-radius: 20px;
  }

  .faq-cta-actions {
    align-items: flex-start;
  }
}
