/*
 * License page: FAQ accordion.
 * Figma: desktop 107:38654 (1360 content), mobile 282:331 (376 content).
 * Aligned with the page tokens (base.css: --lpl-line, --lpl-yellow, --lpl-purple-tag, --lpl-navy, --lpl-muted, motion tokens);
 * answers open with a grid-rows height animation (faq.js toggles .is-open), no hidden attribute.
 * Section top padding is derived from the distance to the previous band in Figma (100px desktop / 70px mobile).
 * Mobile-first; desktop layout from 1200px.
 */
.lpl-sec--faq {
  padding: 70px 0 0;
  background: transparent;
  color: #000;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}
.lpl-sec--faq *,
.lpl-sec--faq *::before,
.lpl-sec--faq *::after { box-sizing: border-box; }

.lpl-faq__inner {
  width: min(760px, calc(100% - 14px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 37px;
}
.lpl-faq__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lpl-faq__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #640ea1;
  color: #fff;
  font-weight: 600;
  font-size: 10px;
  line-height: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}
.lpl-sec--faq .lpl-faq__title {
  margin: 0;
  color: #0d0c41;
  font-weight: 600;
  font-size: 22px;
  line-height: 29px;
  letter-spacing: -0.22px;
  text-align: left;
}

.lpl-faq__list { display: flex; flex-direction: column; }
.lpl-faq__item {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.lpl-faq__item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--lpl-line, #e1e2ee);
}
.lpl-faq__item:last-child { padding-bottom: 0; margin-bottom: 0; }
.lpl-faq__item:last-child::after { display: none; }

.lpl-sec--faq .lpl-faq__h { margin: 0; padding: 0; font: inherit; }
.lpl-faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.lpl-faq__item.is-static .lpl-faq__btn { cursor: default; }
.lpl-sec--faq .lpl-faq__btn:focus-visible { outline: 2px solid var(--lpl-purple-tag, #640ea1); outline-offset: 6px; border-radius: var(--lpl-r-note, 16px); }
.lpl-faq__q {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 27px;
  color: #000;
  transition: color var(--lpl-dur-fast, 0.2s) var(--lpl-ease, ease);
}
.lpl-faq__icon {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: var(--lpl-yellow, #f5b319);
  transition: transform var(--lpl-dur, 0.45s) var(--lpl-ease, ease), box-shadow var(--lpl-dur, 0.45s) var(--lpl-ease, ease);
}
/* chevron (closed) and close mark (open) cross-fade and rotate into each other */
.lpl-faq__icon::before,
.lpl-faq__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  background: no-repeat center / 20px 20px;
  transition: opacity var(--lpl-dur, 0.45s) var(--lpl-ease, ease), transform var(--lpl-dur, 0.45s) var(--lpl-ease, ease);
}
.lpl-faq__icon::before { background-image: url('../../img/license/faq-chevron.svg'); transform: rotate(90deg); }
.lpl-faq__icon::after {
  width: 15px;
  height: 15px;
  background-image: url('../../img/license/faq-close.svg');
  background-size: 15px 15px;
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}
.lpl-faq__item.is-open .lpl-faq__icon::before { opacity: 0; transform: rotate(270deg) scale(0.6); }
.lpl-faq__item.is-open .lpl-faq__icon::after { opacity: 1; transform: none; }
/* smooth open: the question row keeps its alignment when opened (the old flex-start snap moved the icon / text instantly) */
.lpl-faq__item.is-open .lpl-faq__q { color: #130030; }

@media (hover: hover) {
  .lpl-faq__item:not(.is-static) .lpl-faq__btn:hover .lpl-faq__q { color: var(--lpl-purple-tag, #640ea1); }
  .lpl-faq__item:not(.is-static) .lpl-faq__btn:hover .lpl-faq__icon { transform: scale(1.08); box-shadow: 0 8px 18px -8px rgba(245, 179, 25, 0.8); }
}
.lpl-faq__item:not(.is-static) .lpl-faq__btn:active .lpl-faq__icon { transform: scale(0.94); transition-duration: 0.08s; }

/* answer: grid-rows height animation. Collapsed only when JS runs (html.lpl-js), so no-JS shows every answer. */
.lpl-faq__a {
  display: grid;
  grid-template-rows: 1fr;
  color: var(--lpl-muted, #6f7781);
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
}
.lpl-faq__a-in { min-height: 0; overflow: hidden; }
.lpl-faq__a-in > * { margin: 0; }
.lpl-faq__a-in > * + * { margin-top: 1em; }
.lpl-faq__a-in > :first-child { margin-top: 14px; }
.lpl-faq__a a { color: var(--lpl-purple-tag, #640ea1); text-decoration: underline; text-decoration-skip-ink: none; text-underline-offset: 2px; }
.lpl-faq__a a:hover { color: var(--lpl-navy, #0d0c41); }
html.lpl-js .lpl-faq__a {
  transition: grid-template-rows var(--lpl-faq-dur, 0.5s) var(--lpl-faq-ease, cubic-bezier(0.4, 0, 0.2, 1));
}
html.lpl-js .lpl-faq__a-in {
  transition: opacity var(--lpl-dur, 0.45s) var(--lpl-ease, ease), visibility 0s linear 0s;
}
html.lpl-js .lpl-faq__item:not(.is-open) .lpl-faq__a { grid-template-rows: 0fr; }
html.lpl-js .lpl-faq__item:not(.is-open) .lpl-faq__a-in {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--lpl-dur-fast, 0.2s) var(--lpl-ease, ease), visibility 0s linear var(--lpl-faq-dur, 0.5s);
}

@media (min-width: 1200px) {
  .lpl-sec--faq { padding-top: 100px; }
  .lpl-faq__inner { width: min(1360px, calc(100% - 80px)); gap: 50px; }
  .lpl-faq__head { align-items: center; gap: 16px; width: min(941px, 100%); margin: 0 auto; }
  .lpl-faq__tag { font-size: 14px; }
  .lpl-sec--faq .lpl-faq__title {
    color: #000;
    font-size: 60px;
    line-height: 83.6px;
    letter-spacing: -3px;
    text-align: center;
  }
  .lpl-faq__item { padding-bottom: 20px; margin-bottom: 20px; }
  .lpl-faq__btn { min-height: 54px; gap: 41px; }
  .lpl-faq__q { font-size: 24px; line-height: 34px; }
  /* (old: open question line-height 40px - removed, it made the row jump 3px at the start of the animation) */
  .lpl-faq__icon { flex-basis: 54px; width: 54px; height: 54px; }
  .lpl-faq__a { max-width: 1265px; font-size: 18px; line-height: 26px; }
  .lpl-faq__a-in > :first-child { margin-top: 4px; }
}

/* QA: base .lpl-tag has align-self:flex-start, which beat the centred header (Figma centres the pill) */
@media (min-width: 1200px) {
  .lpl-faq__tag { align-self: center; }
}

/* VQA: - the pill is centred at every width (it hugged the left edge under a centred head below 1200)
 *      - the list uses the page container (1360 / gutter) from 768 up: it was a 760px strip between 768 and 1199
 *        and 1345px (calc(100% - 80px)) above, 8px inside the other blocks' edge
 *      - 14px pill from 768 (it stayed at the 10px phone size up to 1199, every other block switches at 768) */
.lpl-faq__tag { align-self: center; }
.lpl-faq__head { align-items: center; }
.lpl-sec--faq .lpl-faq__title { text-align: center; }
@media (min-width: 768px) {
  .lpl-faq__inner { width: min(var(--lpl-container, 1360px), calc(100% - 2 * var(--lpl-gutter, 24px))); }
  .lpl-faq__tag { font-size: 14px; }
}
@media (min-width: 1200px) {
  .lpl-faq__inner { width: min(var(--lpl-container, 1360px), calc(100% - 2 * var(--lpl-gutter, 24px))); }
}

/* Imported copy (include/license/import-*.php): lists, sub-headings and tables inside an answer. */
.lpl-faq__a-in ul,
.lpl-faq__a-in ol {
  padding-left: 1.3em;
}

.lpl-faq__a-in ul { list-style: disc; }
.lpl-faq__a-in ol { list-style: decimal; }
.lpl-faq__a-in li + li { margin-top: 0.4em; }

.lpl-faq__a-in h4 {
  font-size: 1.05em;
  line-height: 1.35;
  font-weight: 600;
  color: var(--lpl-navy);
}

.lpl-faq__a-in .lpl-tablewrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lpl-faq__a-in table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.92em;
  line-height: 1.45;
}

.lpl-faq__a-in th,
.lpl-faq__a-in td {
  padding: 8px 12px;
  border: 1px solid var(--lpl-line, rgba(13, 12, 65, 0.12));
  text-align: left;
  vertical-align: top;
}

.lpl-faq__a-in th { background: rgba(100, 14, 161, 0.06); }

/* VQA: balanced title lines */
.lpl-sec--faq .lpl-faq__title { text-wrap: balance; }

/* 2026-10-16 restore of the pre-Figma look: the old base.css centred this head ("lpl-heads-centered");
   base.css now centres only restrictions / process / turnkey, so the same rules live here. */
.lpl-page .lpl-sec .lpl-faq__head {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  text-align: center !important;
}
.lpl-page .lpl-sec .lpl-faq__head h2 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
}

/* Smooth open / close (customer: "FAQ opens jerkily"):
   - height = grid-template-rows 0fr -> 1fr (above), nothing else in the row changes instantly;
   - the browser's scroll anchoring is off for the list: faq.js keeps the clicked question still while a row above it
     closes (otherwise the page jumped by the height of the closing answer). */
.lpl-faq__list { overflow-anchor: none; }
@media (prefers-reduced-motion: reduce) {
  html.lpl-js .lpl-faq__a,
  html.lpl-js .lpl-faq__a-in,
  html.lpl-js .lpl-faq__item:not(.is-open) .lpl-faq__a-in,
  .lpl-faq__icon,
  .lpl-faq__icon::before,
  .lpl-faq__icon::after { transition: none !important; }
}
