/* faq-section — THE site-wide FAQ section (Sofia, 2026-08-03: every FAQ
   uses the deepsight layout, one class set). Sticky intro left, numbered
   exclusive accordion right. Open/close is animated by
   /js/behaviors/product-faq.js (adds .js-faq to the list and .is-open to
   the active item); without JS the group still works: native
   <details name="faq"> toggling, instant, exclusive.
   The --seam modifier keeps the rounded chapter-seam (the home's
   rounded-curtain motif) where the FAQ opens over a dark section. */
/* DARK site-wide (Sofia, 2026-08-11): ink ground, on-dark type, Blue 200
   accents (the on-ink accent rule). The seam modifier still curtains over
   bright closing chapters; over dark neighbors it reads flush. */
.faq {
  background: var(--color-rich-black);
  color: var(--color-white);
  border-top: 1px solid var(--color-border-dark);
}
.faq .kicker { color: rgba(255, 255, 255, 0.5); }
.faq .section-title { color: var(--color-white); }
/* chapter seam: rounded top corners sliding over the dark closing chapter */
.faq--seam {
  position: relative;
  margin-top: -20px;
  border-top: 0;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
@media (min-width: 768px) {
  .faq--seam {
    margin-top: -32px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
  }
}
/* section inner: the shared template rhythm (pr-inner / sol-inner) */
.faq__inner {
  margin-inline: auto;
  max-width: var(--container-large);
  padding: var(--space-section-sm) var(--space-inline);
}
@media (min-width: 768px) { .faq__inner { padding-block: var(--space-section); } }
@media (min-width: 1024px) { .faq__inner { padding-inline: 24px; } }

.faq__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .faq__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 96px;
  }
  .faq__head {
    position: sticky;
    top: 120px;
    align-self: start;
  }
}
.faq__intro {
  margin-top: 16px;
  max-width: 680px;
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  color: var(--color-grey-on-black);
}
.faq__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-size: var(--fs-sm);
  letter-spacing: 0;
  color: var(--color-grey-on-black);
  transition: color 0.2s ease;
}
.faq__cta-label {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
  transition: text-decoration-color 0.2s ease;
}
.faq__cta:hover { color: var(--color-white); }
.faq__cta:hover .faq__cta-label { text-decoration-color: currentColor; }

.faq__item {
  border-top: 1px solid var(--color-border-dark);
}
.faq__item:last-child { border-bottom: 1px solid var(--color-border-dark); }
.faq__q {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  font-size: var(--fs-xl);
  line-height: 1.3;
  color: var(--color-white);
  transition: color 0.2s ease;
}
.faq__q::-webkit-details-marker { display: none; }
/* accents on ink take Blue 200 (contrast rule) */
.faq__q:hover { color: var(--color-blue-200); }
.faq__num {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-widest);
  color: var(--color-grey-400);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}
.faq__q:hover .faq__num,
.faq__item[open] .faq__num { color: var(--color-blue-200); }
.faq__q-text { flex: 1; min-width: 0; }
.faq__mark {
  flex-shrink: 0;
  font-size: var(--fs-xl);
  line-height: 1;
  color: var(--color-grey-400);
  transition: transform 0.3s var(--ease-out-expo), color 0.2s ease;
}
/* mark rotation: JS mode keys off .is-open (so it turns back the moment a
   close STARTS, not when the height animation ends); no-JS keys off [open] */
.js-faq .faq__item.is-open .faq__mark,
.faq__list:not(.js-faq) .faq__item[open] .faq__mark {
  transform: rotate(45deg);
  color: var(--color-blue-200);
}
.faq__body { overflow: hidden; }
.faq__a {
  max-width: 68ch;
  padding: 0 4px 24px 36px;
  font-size: var(--fs-sm);
  line-height: var(--leading-body);
  color: var(--color-grey-on-black);
}
/* inline links inside answers stay legible on ink */
.faq__a a { color: var(--color-blue-200); }
/* no-JS fallback: a light fade carries the open since height can't animate */
.faq__list:not(.js-faq) .faq__item[open] .faq__a {
  animation: faq-fade-up 0.4s var(--ease-out-expo);
}
/* post-FAQ action slot (e.g. a product overview PDF button) */
.faq__after { margin-top: -8px; }
@media (min-width: 1024px) {
  .faq__after { grid-column: 2; margin-top: -56px; }
}
@keyframes faq-fade-up {
  from { opacity: 0; transform: translateY(-6px); }
}
