/* ==========================================================================
   FAQ (Before you start — both homepages)
   --------------------------------------------------------------------------
   Reference (29 Sep): polarsignals.com FAQ — a small marked label alone in
   the left column; on the right a large two-tone headline, then full-width
   question rows between hairlines, each with a plus at the far right that
   opens the answer. Same left-column rhythm as the structured module tour.

   Rows are native <details>, so they open by keyboard and announce their
   state with no script. The plus turns 45° into a close mark; the answer
   eases open where ::details-content and interpolate-size are supported,
   and opens instantly elsewhere. Copy is the live site's, verbatim.
   ========================================================================== */

.faq {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  column-gap: var(--space-9);
}

.faq__label {
  position: relative;
  align-self: start;
  padding-top: 14px;
  padding-left: 18px;
  font-size: 15px;
  line-height: 20px;
  color: var(--heading);
}
.faq__label::before {
  content: '';
  position: absolute;
  left: 0; top: 24px;             /* padding-top + half the 20px line */
  width: 8px; height: 8px;
  translate: 0 -50%;
  background: var(--accent);
}

.faq__head h2 {
  font-size: var(--size-h2);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--heading);
}
.faq__sub {
  max-width: 30ch;
  margin: 0.3em 0 0;
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-muted);
}
.faq__guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-5);
  font-size: 15px;
  color: var(--accent-text, var(--accent));
  text-decoration: none;
}
.faq__guide:hover { text-decoration: underline 1px; text-underline-offset: 4px; }

.faq__list {
  margin-top: var(--space-8);
  border-bottom: var(--border-w) solid var(--line);
  interpolate-size: allow-keywords;
}
.faq__item { border-top: var(--border-w) solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: 28px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.35;
  color: var(--heading);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq__item summary .icon {
  --icon-size: 22px;
  --icon-stroke: 1.5;
  color: var(--heading);
  transition: rotate 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq__item[open] summary .icon { rotate: 45deg; }
.faq__item summary:hover .icon { color: var(--accent-text, var(--accent)); }

.faq__item p {
  max-width: 68ch;
  margin: 0;
  padding-bottom: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .faq__item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
                content-visibility 300ms allow-discrete;
  }
  .faq__item[open]::details-content { block-size: auto; }
}

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq__label { padding-top: 0; margin-bottom: var(--space-5); }
  .faq__label::before { top: 10px; }
  .faq__list { margin-top: var(--space-7); }
  .faq__item summary { padding-block: 22px; }
  .faq__item p { padding-bottom: 22px; }
}
