/* ==========================================================================
   Home: "Questions We Get Most Often" — intro and illustration on the left,
   accordion on the right. Without JavaScript every answer stays open.
   Shared type sizes and section spacing come from css/home-scale.css.
   ========================================================================== */

.faq2-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0;
  background: linear-gradient(180deg, #F8FAFD 0%, #F1F6FD 100%);
  font-family: var(--font-sans);
}

.faq2-wave {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.faq2-wave--left {
  top: -200px;
  left: -240px;
  width: 600px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(191, 219, 254, 0.8), rgba(191, 219, 254, 0));
}

.faq2-wave--right {
  right: -220px;
  bottom: -240px;
  width: 600px;
  height: 500px;
  background: radial-gradient(closest-side, rgba(147, 197, 253, 0.55), rgba(147, 197, 253, 0));
}

.faq2-inner {
  max-width: 1360px;
}

.faq2-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 64px;
}

/* ---- Left column ---- */
.faq2-intro {
  position: sticky;
  top: 110px;
}

.faq2-pill {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 4px 4px;
  border: 1px solid #DBE5F3;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1D4ED8;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq2-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: #1D4ED8;
  color: #FFFFFF;
  letter-spacing: 0;
}

.faq2-pill-badge svg {
  width: 18px;
  height: 18px;
}

.faq2-heading {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #071827;
}

.faq2-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  color: #1D4ED8;
}

.faq2-swoosh {
  position: absolute;
  left: 40%;
  bottom: -6px;
  width: 60%;
  height: 16px;
}

.faq2-sub {
  max-width: 470px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #334155;
}

.faq2-points {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.faq2-points li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #0B2239;
}

.faq2-point-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #E3EDFC;
  color: #1D4ED8;
}

.faq2-point-icon svg {
  width: 22px;
  height: 22px;
}

.faq2-art {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin: 24px 0 0 -8px;
}

/* ---- Accordion ---- */
.faq2-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq2-item {
  border: 1px solid #E3EBF6;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 14px 30px -26px rgba(11, 34, 57, 0.5);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.faq2-item.is-open {
  border-color: #93C5FD;
  background: linear-gradient(180deg, #F3F8FF 0%, #EAF2FE 100%);
  box-shadow: 0 20px 40px -28px rgba(29, 78, 216, 0.5);
}

.faq2-q {
  margin: 0;
}

.faq2-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 18px 16px 16px;
  border: 0;
  border-radius: 20px;
  background: none;
  color: #071827;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.faq2-btn:focus-visible {
  outline: 3px solid #2563EB;
  outline-offset: 2px;
}

.faq2-q-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F1F5FB;
  color: #1D4ED8;
}

.faq2-item.is-open .faq2-q-icon {
  background: #FFFFFF;
  box-shadow: 0 6px 14px -8px rgba(11, 34, 57, 0.4);
}

.faq2-q-icon svg {
  width: 24px;
  height: 24px;
}

.faq2-q-text {
  flex: 1;
}

.faq2-chevron {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #0B2239;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s ease;
}

.faq2-chevron svg {
  width: 20px;
  height: 20px;
}

.faq2-item.is-open .faq2-chevron {
  background: #1D4ED8;
  color: #FFFFFF;
  transform: rotate(180deg);
}

.faq2-btn:hover .faq2-chevron {
  background: #DBEAFE;
}

.faq2-item.is-open .faq2-btn:hover .faq2-chevron {
  background: #1E40AF;
}

.faq2-panel-inner {
  padding: 0 28px 24px 82px;
  font-size: 16.5px;
  line-height: 1.65;
  color: #1E293B;
}

.faq2-panel-inner p {
  margin: 0;
}

/* With JavaScript: answers fold away until their question is opened */
.faq2-js .faq2-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.35s;
}

.faq2-js .faq2-item.is-open .faq2-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

.faq2-js .faq2-panel > div {
  min-height: 0;
  overflow: hidden;
}

/* ---- Responsive ---- */
@media (max-width: 1099px) {
  .faq2-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .faq2-intro {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    align-items: center;
    column-gap: 32px;
  }

  .faq2-intro > :not(.faq2-art) {
    grid-column: 1;
  }

  .faq2-art {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin: 0;
  }
}

@media (max-width: 680px) {
  .faq2-section {
    padding: 72px 0;
  }

  .faq2-intro {
    display: block;
  }

  .faq2-sub {
    font-size: 16px;
  }

  .faq2-art {
    width: min(70%, 260px);
    margin: 24px auto 0;
  }

  .faq2-btn {
    gap: 12px;
    padding: 14px 12px;
    font-size: 16.5px;
  }

  .faq2-q-icon {
    width: 40px;
    height: 40px;
  }

  .faq2-q-icon svg {
    width: 20px;
    height: 20px;
  }

  .faq2-chevron {
    width: 34px;
    height: 34px;
  }

  .faq2-panel-inner {
    padding: 0 16px 18px 16px;
    font-size: 15.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq2-item,
  .faq2-chevron,
  .faq2-js .faq2-panel,
  .faq2-js .faq2-item.is-open .faq2-panel {
    transition: none;
  }
}
