/* ==========================================================================
   KOBIL — SuperApp family: FAQ
   Figma: /superapp/ 5839:34719 (mobile 6087:53852) ·
          /digital-workplace-superapp/ 5837:31011 (mobile 5501:35706)

   A flat accordion — no category tabs, unlike the older product-page FAQ
   sections. Figma's rows are 72px tall, 18/26 regular navy, separated by
   hairlines, with a plus glyph on the right.
   ========================================================================== */

.sec-sa-faq__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--w50);
  line-height: 1.24;
  color: var(--navy);
}

.sec-sa-faq__list {
  margin-top: var(--w48);
  border-top: 1px solid var(--navy-40);
}

.sec-sa-faq__item {
  border-bottom: 1px solid var(--navy-40);
}

.sec-sa-faq__q {
  margin: 0;
}

.sec-sa-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--w20);
  width: 100%;
  min-height: var(--w72);
  padding: var(--w16) var(--w20);
  background: none;
  border: 0;
  font-family: var(--font-sans);
  font-size: var(--w18);
  font-weight: 400;
  line-height: var(--w26);
  text-align: left;
  color: var(--navy);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  .sec-sa-faq__trigger[aria-expanded="false"]:hover {
    color: var(--blue-dark);
    font-weight: 600;
    line-height: var(--w24);
  }
}

.sec-sa-faq__item.is-open .sec-sa-faq__trigger {
  font-weight: 600;
  line-height: var(--w24);
  color: var(--navy);
}

.sec-sa-faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: var(--w18);
  height: var(--w18);
}

.sec-sa-faq__icon::before,
.sec-sa-faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
  -webkit-mask: url("/assets/faqs/icon-plus.svg") center / contain no-repeat;
  mask: url("/assets/faqs/icon-plus.svg") center / contain no-repeat;
  transition: opacity var(--dur) var(--ease), transform 0.3s var(--ease);
}

.sec-sa-faq__icon::after {
  opacity: 0;
  -webkit-mask-image: url("/assets/faqs/icon-minus.svg");
  mask-image: url("/assets/faqs/icon-minus.svg");
}

.sec-sa-faq__icon img {
  visibility: hidden;
}

.sec-sa-faq__item.is-open .sec-sa-faq__icon::before {
  opacity: 0;
  transform: rotate(90deg);
}

.sec-sa-faq__item.is-open .sec-sa-faq__icon::after {
  opacity: 1;
}

/* Plus turns into minus while open — two glyphs swapped rather than a
   rotated plus, matching the site's other FAQ sections. */
.sec-sa-faq__icon-minus,
.sec-sa-faq__item.is-open .sec-sa-faq__icon-plus {
  display: none;
}

.sec-sa-faq__item.is-open .sec-sa-faq__icon-minus {
  display: block;
}

.sec-sa-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.sec-sa-faq__item.is-open .sec-sa-faq__answer {
  grid-template-rows: 1fr;
}

.sec-sa-faq__answer-inner {
  overflow: hidden;
}

.sec-sa-faq__answer-text {
  padding: 0 var(--w58) var(--w24) var(--w20);
  font-family: var(--font-sans);
  font-size: var(--w16);
  font-weight: 400;
  line-height: var(--w23);
  color: var(--navy-70);
}

/* Bulleted answers. Several of the Digital Workplace SuperApp answers are a
   sentence followed by a list (the fuller list in the FAQ master doc); every
   other answer on these pages is a single paragraph, which is why this arrives
   only now. Metrics are the paragraph's, so a list reads as one block with the
   line that introduces it; the left inset is deeper by the marker's width so the
   bullets sit in the text column instead of hanging into the 20px gutter. */
.sec-sa-faq__answer-list {
  margin: 0;
  padding: 0 var(--w58) var(--w24) var(--w40);
  list-style: disc;
  font-family: var(--font-sans);
  font-size: var(--w16);
  font-weight: 400;
  line-height: var(--w23);
  color: var(--navy-70);
}

.sec-sa-faq__answer-list > li + li {
  margin-top: var(--w6);
}

/* --------------------------------------------------------------------------
   Responsive — the phone frames drop the question to 16px and pull the
   rows flush to the content edge.
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .sec-sa-faq__title {
    font-size: var(--m34);
    line-height: 1.2;
  }

  .sec-sa-faq__list {
    margin-top: var(--m28);
  }

  .sec-sa-faq__trigger {
    min-height: 0;
    padding: var(--m18) 0;
    font-size: var(--m16);
    line-height: var(--m22);
  }

  .sec-sa-faq__item.is-open .sec-sa-faq__trigger {
    line-height: var(--m22);
  }

  .sec-sa-faq__answer-text {
    padding: 0 var(--m34) var(--m18) 0;
    font-size: var(--m14);
    line-height: var(--m20);
  }

  .sec-sa-faq__answer-list {
    padding: 0 var(--m34) var(--m18) var(--m18);
    font-size: var(--m14);
    line-height: var(--m20);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sec-sa-faq__trigger,
  .sec-sa-faq__icon::before,
  .sec-sa-faq__icon::after,
  .sec-sa-faq__answer {
    transition: none;
  }
}
