/* ==========================================================================
   Section: faq — two columns (intro left, accordion right), springy accordion.
   Every rule is scoped under .section--faq (see _build/CONTRACT.md).
   ========================================================================== */
.section--faq .faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "head list"
    "help list";
  grid-template-rows: auto 1fr;
  column-gap: clamp(48px, 7vw, 110px);
  row-gap: 44px;
  align-items: start;
}
.section--faq .faq-head { grid-area: head; display: flex; flex-direction: column; align-items: flex-start; gap: var(--head-gap); }
.section--faq .faq-list { grid-area: list; display: flex; flex-direction: column; gap: 12px; }
.section--faq .faq-help { grid-area: help; display: flex; flex-direction: column; align-items: flex-start; }

.section--faq .faq-head .eyebrow { margin-bottom: 2px; }
.section--faq .faq-title { max-width: 520px; }

/* ---- Help block ----------------------------------------------------------- */
.section--faq .faq-help__title { margin: 0; }
.section--faq .faq-help__text {
  max-width: 380px;
  margin-top: 10px;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-2);
}
.section--faq .faq-help__btn { margin-top: 26px; }

/* ---- Accordion item ------------------------------------------------------- */
.section--faq .faq-item {
  position: relative;
  contain: layout;          /* the open/close height tween stays a local layout change */
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  background: rgba(255, 255, 255, .012);
  transition: border-color .45s var(--ease-out), background-color .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.section--faq .faq-item:hover { border-color: var(--border-strong); }
.section--faq .faq-item.is-open {
  border-color: rgba(255, 255, 255, .16);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .012) 100%);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
}
/* thin warm light on the top edge of the open item */
.section--faq .faq-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 150, 90, .85) 50%, transparent);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
}
.section--faq .faq-item.is-open::before { opacity: 1; }

.section--faq .faq-q { margin: 0; font-size: inherit; line-height: inherit; }
.section--faq .faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 22px 22px 24px;
  border-radius: var(--r-16);
  text-align: left;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: -0.005em;
  color: var(--text);
}
.section--faq .faq-trigger:focus-visible { outline-offset: -2px; border-radius: var(--r-16); }
.section--faq .faq-trigger__text { flex: 1; min-width: 0; }

/* + icon → − (vertical bar folds flat, whole icon spins) */
.section--faq .faq-icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  transition:
    transform .6s var(--ease-spring),
    background-color .35s var(--ease-out),
    border-color .35s var(--ease-out),
    box-shadow .35s var(--ease-out);
}
.section--faq .faq-icon::before,
.section--faq .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.6px;
  margin: -0.8px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .6s var(--ease-spring);
}
.section--faq .faq-icon::after { transform: rotate(90deg); }
.section--faq .faq-trigger:hover .faq-icon { border-color: var(--border-strong); background: rgba(255, 255, 255, .06); }
.section--faq .faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  color: #fff;
  border-color: rgba(218, 78, 36, .5);
  background: rgba(218, 78, 36, .16);
  box-shadow: 0 0 18px -6px rgba(218, 78, 36, .8);
}
.section--faq .faq-item.is-open .faq-icon::after { transform: rotate(0deg); }

/* panel (JS toggles [hidden] + animates height; without JS every answer stays visible) */
.section--faq .faq-panel { overflow: hidden; }
.section--faq .faq-answer {
  padding: 0 76px 24px 24px;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-2);
}
.section--faq .faq-answer p { max-width: 620px; }

/* ---- Tablet / mobile: stacked ---------------------------------------------- */
@media (max-width: 1023px) {
  .section--faq .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "list"
      "help";
    grid-template-rows: auto;
    row-gap: 40px;
  }
  .section--faq .faq-help {
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--r-16);
    border: 1px solid var(--hairline);
    background: radial-gradient(80% 120% at 50% 0%, rgba(218, 78, 36, .08), rgba(218, 78, 36, 0) 70%), rgba(255, 255, 255, .01);
  }
  .section--faq .faq-help__text { max-width: 460px; }
  .section--faq .faq-help__btn { margin-top: 22px; }
}
@media (max-width: 809px) {
  .section--faq .faq-list { gap: 10px; }
  .section--faq .faq-trigger { gap: 14px; padding: 18px 16px 18px 18px; font-size: 16px; line-height: 24px; }
  .section--faq .faq-answer { padding: 0 18px 20px; font-size: 15px; line-height: 24px; }
  .section--faq .faq-icon { width: 28px; height: 28px; }
}
