/* AI Buddy · "Questions, answered." (#faq, data-sec="faq")
   Headline, a line and a "Book a call" button on the left; ten questions on the right as native <details>.
   With every question closed, both columns fit one window on a wide page. No script: opening and closing are the
   browser's own, so keyboard and screen reader behaviour is untouched and it works with scripts blocked.

   Layout   .fq            two columns (.fq-l and .fq-list); .fq-l is sticky inside its own grid column, so it stays
                           in view while long answers are open and can never overlap the list or the next section
            .fq-q          one question: summary (.fq-t text, .fq-pm plus sign that turns into a cross) and .fq-a answer
   Sizes    a question row is about 6.6% of the window tall (52 to 72 px), so ten of them fit with the headline
   States   [open]         the answer shows; where the browser can animate to a height of "auto" (::details-content with
                           interpolate-size) it slides open in about half a second, elsewhere it simply opens
            .is-armed / .is-in from kit.js (entrance only); the rows of the list enter a few ms apart */

.fq{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:clamp(30px,5cqw,90px);align-items:start}
.fq-l{position:sticky;top:var(--sec-y)}
.fq-cta{margin-top:clamp(22px,calc(var(--u) * 1.7),30px)}

/* the list */
.fq-list{interpolate-size:allow-keywords}
.fq-q{border-top:1px solid var(--line)}
.fq-q:last-child{border-bottom:1px solid var(--line)}
.fq-q summary{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;
  min-height:clamp(52px,calc(var(--dvh) * .066),72px);padding-block:clamp(8px,calc(var(--dvh) * .012),16px);
  list-style:none;cursor:pointer;
  font-size:clamp(17px,1.3cqw,21px);font-weight:400;line-height:1.35;letter-spacing:-.01em;color:#e9e9ee;
  transition:color .4s;
}
.fq-q summary::-webkit-details-marker{display:none}
.fq-q summary::after{content:"";position:absolute;left:0;bottom:-1px;width:100%;height:1px;background:var(--v);transform:scaleX(0);transform-origin:0 50%;transition:transform .7s var(--ease)}
.fq-q summary:focus-visible{outline:2px solid var(--v2);outline-offset:4px;border-radius:6px}
.fq-t{transition:transform .5s var(--ease)}
.fq-pm{position:relative;flex:none;width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.18);transition:background .4s,border-color .4s,transform .6s var(--ease)}
.fq-pm::before,.fq-pm::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:1.5px;margin:-.75px 0 0 -6px;background:#fff}
.fq-pm::after{transform:rotate(90deg)}
.fq-a{max-width:40em;padding:0 50px 24px 0;font-size:16px;line-height:1.65;color:#a9a9b2}

/* hover and open */
.fq-q summary:hover{color:#fff}
.fq-q summary:hover .fq-t{transform:translateX(10px)}
.fq-q summary:hover .fq-pm{border-color:var(--v)}
.fq-q summary:hover::after,.fq-q[open] summary::after{transform:scaleX(1)}
.fq-q[open] .fq-pm{background:var(--v);border-color:var(--v);transform:rotate(45deg)}

/* opening and closing: time based, only where the browser supports it; otherwise the answer simply appears */
.fq-q::details-content{block-size:0;overflow:clip;opacity:0;transition:block-size .5s var(--ease),opacity .35s ease,content-visibility .5s allow-discrete}
.fq-q[open]::details-content{block-size:auto;opacity:1}

/* entrance: the list is one part; its rows follow each other 40 ms apart where sibling-index() exists, else together */
.is-armed .fq-list[data-u]{transform:none}
.is-armed .fq-list .fq-q{opacity:0;transform:translate3d(0,12px,0)}
.is-armed .fq-list.is-in .fq-q{opacity:1;transform:none;transition:opacity .5s var(--ease),transform .6s var(--ease);transition-delay:calc((sibling-index() - 1) * 40ms)}

/* narrow page (phones, and the phone preview): one column, nothing sticky */
@container (max-width:900px){
  .fq{grid-template-columns:minmax(0,1fr);gap:36px}
  .fq-l{position:static}
  .fq-q summary{min-height:64px;font-size:17px}
  .fq-a{padding-right:0}
}

/* motion off: the shared rule in sections.css stops transitions on elements; the answer box is a pseudo element */
html.calm .fq-q::details-content{transition:none !important}
@media (prefers-reduced-motion:reduce){.fq-q::details-content{transition:none !important}}
