/* FAQ Page */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: #030303;
  color: var(--color-white);
  font-family: var(--font-main);
}

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(255, 107, 0, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at 70% 45%,
      rgba(255, 107, 0, 0.06),
      transparent 35%
    ),
    #030303;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.08) 0.5px,
    transparent 0.5px
  );
  background-size: 3px 3px;
  opacity: 0.08;
}

/* ══════════════════════════════════════════
   PAGE WRAPPER — aligned to site tokens
══════════════════════════════════════════ */
.faq-page {
  max-width: var(--site-max, 1350px);
  margin: 0 auto;
  /* Explicit side padding with fallback — matches Teams page --site-px token */
  padding-top: calc(var(--nav-h, 4.5rem) + 3rem);
  padding-bottom: 5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ══════════════════════════════════════════
   EYEBROW
══════════════════════════════════════════ */
.t-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-main);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0;
  transform: translateY(14px);
  animation: faq-rise 0.65s 0.1s ease forwards;
}

.dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 rgba(255, 107, 0, 0.7);
  animation: dotPulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.75);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(255, 107, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
  }
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.faq-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 3rem;
}

/* Hero H1 — large display heading, same weight/style as homepage hero */
.faq-hero-left h1 {
  font-family: var(--font-main);
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 1.1rem 0 1.1rem;
  max-width: 100%;
  opacity: 0;
  transform: translateY(18px);
  animation: faq-rise 0.65s 0.2s ease forwards;
}

.highlight {
  display: block;
  background: linear-gradient(
    115deg,
    var(--color-primary) 0%,
    rgba(255, 155, 60, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-hero-left p {
  margin-bottom: 2rem;
  color: var(--color-white-50);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 32rem;
  opacity: 0;
  transform: translateY(14px);
  animation: faq-rise 0.65s 0.32s ease forwards;
}

/* ══════════════════════════════════════════
   CTA BUTTONS
══════════════════════════════════════════ */
.faq-cta,
.faq-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 2.4rem;

  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight:400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.faq-cta {
  background: var(--color-primary);
  color: #ffff;
  border: 2px solid var(--color-primary);
}
.faq-cta:hover {
  background: transparent;
  color: var(--color-primary) !important;
}

.faq-secondary {
  background: transparent;
  color: var(--color-white) !important;
  border: 2px solid var(--color-white-25);
}
.faq-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary) ! important;
}

/* ══════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════ */
.faq-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.faq-stat-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.05rem;
  padding: 2rem 1.8rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 107, 0, 0.04)
  );
  backdrop-filter: blur(5px);
  transition:
    border-color 0.3s,
    background 0.3s;
}
.faq-stat-card:hover {
  border-color: rgba(255, 107, 0, 0.3);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.06),
    rgba(255, 107, 0, 0.02)
  );
}

.faq-stat-card h3 {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-stat-card p {
  margin: 0.8rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white-50);
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════
   TOOLBAR / FILTER PILLS
══════════════════════════════════════════ */
.faq-toolbar {
  margin: 1rem 0 2.4rem;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-pill {
  font-family: var(--font-mono, var(--mono));
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white-50, var(--w50));
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  border-radius: 2px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font: inherit;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}
.topic-pill:hover {
  border-color: rgba(255, 107, 0, 0.35);
  color: var(--color-primary);
  background: rgba(255, 107, 0, 0.06);
}
.topic-pill.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(255, 107, 0, 0.06);
}

/* ══════════════════════════════════════════
   FAQ LAYOUT
══════════════════════════════════════════ */
.faq-layout {
  width: 100%;
}

.faq-main {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* ── Section / Group headings — same as Teams section-header h2 ── */
.faq-group h3,
.faq-section h3 {
  font-family: var(--font-main);
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0 0 1.4rem;
  opacity: 0;
  transform: translateY(18px);
  animation: faq-rise 0.65s 0.15s ease forwards;
}

.faq-group {
  padding-top: 0;
}

.faq-container {
  width: 100%;
}

.faq-content {
  display: block;
  padding-top: 2rem;
}

.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── FAQ Items ── */
.faq-item {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  padding: 0 1.2rem 0 1.5rem;
  transition:
    background 0.24s ease,
    box-shadow 0.24s ease;
}
.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Left orange accent bar */
.faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.36s ease;
  border-radius: 2px;
}
.faq-item:hover::before,
.faq-item.open::before {
  transform: scaleY(1);
}

.faq-question {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.5rem 0;
  font-family: var(--font-main);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.55;
  text-align: left;
  transition: background 0.22s ease;
}

.faq-item.open > .faq-question {
  color: var(--color-white);
}

.faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm, 4px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1;
  user-select: none;
  transition: all 0.28s ease;
}
.faq-question:hover .faq-icon,
.faq-item.open .faq-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-item:hover,
.faq-item.open {
  background: linear-gradient(
    90deg,
    rgba(255, 107, 0, 0.07) 0%,
    rgba(255, 107, 0, 0.03) 55%,
    transparent 100%
  );
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.06);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open > .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  margin: 0;
  color: var(--color-white);
  line-height: 1.9;
  padding: 0.2rem 0 1.9rem 0;
  font-size: var(--font-size-base, 0.95rem);
  font-weight: 300;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.3s 0.08s ease,
    transform 0.3s 0.08s ease;
}
.faq-item.open .faq-answer p {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   BOTTOM CTA
══════════════════════════════════════════ */
.faq-bottom-cta {
  margin-top: 2.5rem;
  border: 1px solid rgba(255, 107, 0, 0.26);
  border-radius: 18px;
  padding: 4rem 1.5rem;
  text-align: center;
  background: var(--s);
}

.faq-bottom-cta span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-main);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
}

/* Bottom CTA h2 — same title style */
.faq-bottom-cta h2 {
  font-family: var(--font-main);
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0.5rem 0 1.2rem;
}

.faq-bottom-cta h2 span {
  font-family: var(--font-main);
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0.5rem 0 1.2rem;
}
.faq-bottom-cta p {
  margin: 0 auto 0;
  max-width: 50ch;
  color: var(--color-white);
  line-height: 1.75;
  font-size: 1rem;
  font-weight: 300;
}

.faq-bottom-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ══════════════════════════════════════════
   HIDDEN STATE (filter)
══════════════════════════════════════════ */
.faq-group.hidden,
.faq-section.hidden {
  display: none;
}

/* ══════════════════════════════════════════
   FAQ READ MORE
══════════════════════════════════════════ */
.faq-read-more {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.2rem 1.5rem 0;
  width: 100%;
}

.faq-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.8;
  transition:
    opacity 0.2s,
    gap 0.2s;
}
.faq-read-more-btn:hover {
  opacity: 1;
  gap: 0.7rem;
}
.faq-read-more-btn svg {
  transition: transform 0.2s ease;
}
.faq-read-more-btn:hover svg {
  transform: translateX(4px);
}

/* ══════════════════════════════════════════
   KEYFRAME
══════════════════════════════════════════ */
@keyframes faq-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet ≤ 900px
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .faq-page {
    padding-top: calc(var(--nav-h, 4.5rem) + 1.8rem);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .faq-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .faq-hero-left h1 {
    font-size: clamp(2rem, 6vw, 61.828px);
    margin-left: auto;
    margin-right: auto;
  }

  .faq-hero-left p {
    margin-left: auto;
    margin-right: auto;
  }

  .faq-hero-left .t-eyebrow {
    justify-content: center;
  }

  .faq-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-group h3,
  .faq-section h3 {
    font-size: clamp(1.65rem, 4.5vw, 2.4rem);
  }

  .faq-main {
    gap: 2.8rem;
  }

  .faq-question {
    font-size: var(--font-size-base);
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile ≤ 600px
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .faq-page {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .faq-hero-left h1 {
    font-size: clamp(1.9rem, 9vw, 61.828px);
  }

  .faq-group h3,
  .faq-section h3 {
    font-size: clamp(1.45rem, 7.5vw, 2rem);
  }

  .faq-bottom-cta h2 {
    font-size: clamp(1.45rem, 7.5vw, 2rem);
  }

  .topic-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .topic-pill {
    width: 100%;
    text-align: center;
    padding: 0.6rem 0.5rem;
    font-size: 0.58rem;
  }

  .faq-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-question {
    font-size: var(--font-size-base);
    padding: 1.2rem 0;
  }

  .faq-icon {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }

  .faq-stat-card p {
    font-size: 0.78rem;
  }

  .faq-bottom-cta {
    border-radius: 14px;
    padding: 2.5rem 1rem;
  }

  .faq-bottom-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .faq-bottom-actions .faq-cta,
  .faq-bottom-actions .faq-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Very small ≤ 400px
══════════════════════════════════════════ */
@media (max-width: 400px) {
  .faq-group h3,
  .faq-section h3,
  .faq-bottom-cta h2 {
    font-size: clamp(1.3rem, 9vw, 1.75rem);
  }
  .faq-hero-left h1 {
    font-size: clamp(1.6rem, 10vw, 61.828px);
  }
}
