.faq {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 88px;
  border-top: 1px solid rgba(41, 117, 255, 0.16);
  background:
    radial-gradient(circle at 8% 25%, rgba(0, 170, 255, 0.10), transparent 28rem),
    radial-gradient(circle at 92% 70%, rgba(0, 120, 255, 0.075), transparent 30rem),
    linear-gradient(180deg, #0a1a35 0%, #08182f 48%, #07152b 100%);
}

/* 0.1.9-R6-R12 — stronger FAQ/footer separation.
   Keep the approved side-only connection language from R6-R11, but make the
   section base visibly bluer than the frozen near-black footer. */
.faq::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: url("../images/faq-network.svg") center / 100% 100% no-repeat;
  opacity: 0.50;
}

.faq__container {
  padding-block: 104px 116px;
}

.faq__header {
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
}

.faq__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid rgba(0, 162, 255, 0.30);
  border-radius: 999px;
  color: #9edcff;
  background: rgba(0, 162, 255, 0.10);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.faq__header h2 {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--color-text);
  font-size: clamp(2.35rem, 5vw, 4.05rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.faq__supporting {
  max-width: 760px;
  margin: 23px auto 0;
  color: #bdcae6;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
}

.faq__accordion {
  width: min(100%, 960px);
  margin: 54px auto 0;
  display: grid;
  gap: 8px;
}

/* 0.1.9-R6-R13 — FAQ cards Free-blue visual alignment.
   Derive the card surface directly from the approved Free CTA blue family
   (#087ed3 -> #035db0), softened with transparency so the accordion reads as
   a content surface rather than a full-width CTA. Geometry remains frozen. */
.faq-item {
  overflow: hidden;
  border: 1px solid rgba(0, 162, 255, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(8, 126, 211, 0.84), rgba(3, 93, 176, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.faq-item:hover {
  border-color: rgba(79, 190, 255, 0.58);
}

.faq-item.is-open {
  border-color: rgba(79, 190, 255, 0.64);
  background:
    radial-gradient(circle at 92% 0%, rgba(107, 207, 255, 0.10), transparent 18rem),
    linear-gradient(180deg, rgba(8, 126, 211, 0.86), rgba(3, 93, 176, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 14px 38px rgba(0, 3, 36, 0.16);
}

/* 0.1.9-R6-R10 — true rendered-height compaction
   The semantic h3 wrapper kept the browser default block margins in R6-R9,
   adding ~37px around a 60px trigger. Reset only that wrapper so the visible
   closed card follows the intended compact geometry. */
.faq-item > h3 {
  margin: 0;
  padding: 0;
}

.faq-item__trigger {
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 8px 22px 8px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  column-gap: 18px;
  border: 0;
  color: var(--color-text);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* Expanded items keep the more comfortable R6-R8 trigger spacing. */
.faq-item.is-open .faq-item__trigger {
  min-height: 72px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.faq-item__question {
  min-width: 0;
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.45;
}

.faq-item__icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 162, 255, 0.32);
  border-radius: 50%;
  color: #9edcff;
  background: rgba(0, 162, 255, 0.08);
  position: relative;
  font-size: 0;
  line-height: 1;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.faq-item__icon::before {
  content: "+";
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.faq-item.is-open .faq-item__icon {
  color: #d8ff9d;
  border-color: rgba(169, 242, 56, 0.48);
  background: rgba(169, 242, 56, 0.09);
}

.faq-item.is-open .faq-item__icon::before {
  transform: rotate(45deg);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 220ms ease,
    opacity 170ms ease;
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item__panel-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-item__answer {
  max-width: 860px;
  padding: 0 78px 24px 24px;
  color: #aebddd;
  font-size: 0.95rem;
  line-height: 1.72;
  transform: translateY(-4px);
  transition: transform 220ms ease;
}

.faq-item.is-open .faq-item__answer {
  color: #e1efff;
  transform: translateY(0);
}

.faq-item__answer p {
  margin: 0;
}

.faq-item__answer p + p {
  margin-top: 13px;
}

@media (max-width: 900px) {
  .faq::before {
    opacity: 0.36;
  }

  .faq__container {
    padding-block: 90px 100px;
  }

  .faq__accordion {
    margin-top: 48px;
  }

  .faq-item__trigger {
    min-height: 58px;
    padding-block: 8px;
  }

  .faq-item.is-open .faq-item__trigger {
    min-height: 70px;
    padding-block: 12px;
  }
}

@media (max-width: 700px) {
  .faq {
    background:
      radial-gradient(circle at 4% 22%, rgba(0, 170, 255, 0.068), transparent 20rem),
      radial-gradient(circle at 96% 76%, rgba(0, 120, 255, 0.050), transparent 22rem),
      linear-gradient(180deg, #0a1a35 0%, #08182f 48%, #07152b 100%);
  }

  .faq::before {
    opacity: 0.24;
  }

  .faq__container {
    padding-block: 78px 90px;
  }

  .faq__header {
    text-align: left;
  }

  .faq__header h2 {
    margin-top: 18px;
    font-size: clamp(2.15rem, 10vw, 2.9rem);
  }

  .faq__supporting {
    margin-top: 18px;
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .faq__accordion {
    margin-top: 40px;
    gap: 8px;
  }

  .faq-item {
    border-radius: 16px;
  }

  .faq-item__trigger {
    min-height: 56px;
    padding: 8px 17px 8px 19px;
    grid-template-columns: minmax(0, 1fr) 32px;
    column-gap: 13px;
  }

  .faq-item.is-open .faq-item__trigger {
    min-height: 66px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .faq-item__question {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .faq-item__icon {
    width: 31px;
    height: 31px;
  }

  .faq-item__icon::before {
    font-size: 1.22rem;
  }

  .faq-item__answer {
    padding: 0 19px 21px;
    font-size: 0.9rem;
    line-height: 1.68;
  }
}

@media (max-width: 430px) {
  .faq-item__trigger {
    padding-inline: 17px 15px;
    column-gap: 11px;
  }

  .faq-item__answer {
    padding-inline: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item__icon,
  .faq-item__icon::before,
  .faq-item__panel,
  .faq-item__answer {
    transition: none;
  }
}

/* Phase 0.1.9-R6-R43 — Block 6 mobile header alignment & top-spacing refinement.
   Scope: mobile only. Centers the FAQ eyebrow and heading, justifies the
   introductory copy, and reduces only the Block 6 top padding so the transition
   from Block 5 is tighter without changing tablet/desktop or accordion cards. */
@media (max-width: 560px) {
  .faq__container {
    padding-top: 46px;
    padding-bottom: 42px;
  }

  .faq__header {
    text-align: center;
  }

  .faq__eyebrow {
    margin-inline: auto;
  }

  .faq__header h2 {
    text-align: center;
  }

  .faq__supporting {
    max-width: none;
    text-align: justify;
    text-align-last: left;
    text-wrap: wrap;
    hyphens: auto;
  }
}

/* 0.1.9-R6-R45 — Mobile FAQ-to-footer transition compaction.
   Scope: mobile only. The R43 header alignment remains unchanged; only the FAQ
   bottom padding is reduced to create a shorter, comfortable transition into
   the footer. */
