/* Home page FAQ, "Straight answers" (owner, 15 Nov 2026). Built up by assets/faq.js; every rule is scoped to #faq.
   Two columns: a sticky side (heading, a short promise, the topic filter, "Still have a question?") and the questions
   as numbered cards. Uses the active palette's tokens, so it follows every theme. Without script (no .faqx-js) the
   cards show at once and open as plain <details>. */
#faq{overflow:hidden}
/* a soft glow drifting slowly behind the section */
#faq::before{content:"";position:absolute;left:-180px;top:8%;width:560px;height:560px;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--accent) 20%,transparent),transparent);animation:faqxOrb 18s ease-in-out infinite alternate}
@keyframes faqxOrb{to{transform:translate(160px,120px) scale(1.15)}}

#faq .faqx-grid{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.42fr);gap:clamp(28px,5vw,72px);align-items:start}
#faq .faqx-side{position:sticky;top:110px}
#faq .faqx-side h2{margin:10px 0 12px}
#faq .faqx-lead{margin:0 0 22px;max-width:420px;color:var(--muted);font-size:17px;line-height:1.6}

/* the topic filter */
#faq .faqx-topics{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px}
#faq .faqx-topics button{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 8px 0 14px;border-radius:99px;cursor:pointer;
  border:1px solid var(--line);background:var(--surface);color:var(--muted);font:600 14px/1 var(--font);transition:background .3s,color .3s,border-color .3s,transform .2s}
#faq .faqx-topics button:hover{color:var(--text);transform:translateY(-1px)}
#faq .faqx-topics button b{min-width:24px;height:24px;padding:0 6px;border-radius:99px;display:grid;place-items:center;font-size:12px;background:var(--surface-2);color:var(--text);transition:background .3s,color .3s}
#faq .faqx-topics button[aria-pressed="true"]{background:var(--fill);color:var(--on-accent);border-color:transparent;box-shadow:0 10px 24px -12px var(--glow)}
#faq .faqx-topics button[aria-pressed="true"] b{background:rgba(255,255,255,.22);color:#fff}

/* "Still have a question?" */
#faq .faqx-help{display:grid;gap:6px;padding:18px 20px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line)}
#faq .faqx-help b{font-size:16px}
#faq .faqx-help p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.5}
#faq .faqx-help .btn{justify-self:start;margin-top:8px}

/* the questions, as cards */
#faq .faq{max-width:none;margin:0;display:grid;gap:12px}
#faq .faq details{position:relative;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);
  transition:border-color .35s,box-shadow .35s,translate .3s var(--ease)}
#faq .faq details:hover{translate:0 -2px;border-color:color-mix(in srgb,var(--accent-2) 40%,var(--line))}
/* the bar on the left fills when the card is open */
#faq .faq details::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--fill);transform:scaleY(0);transform-origin:top;transition:transform .5s var(--ease)}
#faq .faq details[open]:not(.closing){border-color:color-mix(in srgb,var(--accent-2) 60%,var(--line));box-shadow:0 18px 44px -26px var(--glow)}
#faq .faq details[open]:not(.closing)::before{transform:scaleY(1)}
#faq .faq summary{align-items:center;gap:14px;padding:18px 18px 18px 22px;font-size:17px;line-height:1.35}
#faq .faq summary::after{content:none}
#faq .faq summary:focus-visible{outline:2px solid var(--accent-2);outline-offset:-2px;border-radius:18px}
#faq .faqx-n{flex:none;width:26px;font:600 13px/1 var(--mono);color:var(--accent-2)}
#faq .faqx-q{flex:1;min-width:0}
#faq .faqx-tag{flex:none;padding:4px 10px;border-radius:99px;font-size:11.5px;font-weight:600;background:var(--surface-2);color:var(--muted)}
/* the round button: + turns into − as it spins */
#faq .faqx-ic{flex:none;position:relative;width:34px;height:34px;border-radius:50%;background:var(--surface-2);transition:background .35s,transform .5s var(--ease)}
#faq .faqx-ic::before,#faq .faqx-ic::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;margin:-1px 0 0 -7px;border-radius:2px;background:var(--text);transition:transform .5s var(--ease),background .35s}
#faq .faqx-ic::after{transform:rotate(90deg)}
#faq details[open]:not(.closing) .faqx-ic{background:var(--fill);transform:rotate(180deg)}
#faq details[open]:not(.closing) .faqx-ic::after{transform:rotate(0)}
#faq details[open]:not(.closing) .faqx-ic::before,#faq details[open]:not(.closing) .faqx-ic::after{background:#fff}
/* the answer */
#faq .faqx-a{overflow:hidden}
#faq .faqx-ai{padding:0 22px 20px 62px;color:var(--muted);line-height:1.65}
#faq .faq details p{margin:0;padding:0;color:var(--muted)}
#faq .faq details[open] .faqx-ai{animation:faqxUp .45s var(--ease) .06s both}
@keyframes faqxUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* the cards rise in one after another (only once the script is on, so nothing hides without it) */
#faq.faqx-js .faq details{opacity:0;transform:translateY(22px)}
#faq.faqx-js .faq.in details{animation:faqxIn .65s var(--ease) both;animation-delay:calc(var(--i) * 70ms)}
@keyframes faqxIn{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
#faq .faq details.faqx-pop{animation:faqxIn .45s var(--ease) both;animation-delay:calc(var(--i) * 50ms)}
#faq .faq details.faqx-hide{display:none}

@media (max-width:900px){
  #faq .faqx-grid{grid-template-columns:1fr}
  #faq .faqx-side{position:static}
  #faq .faqx-lead{max-width:none}
  #faq .faqx-help{display:none}
}
@media (max-width:560px){
  #faq .faqx-tag{display:none}
  #faq .faq summary{padding:16px 14px 16px 16px;font-size:16px;gap:10px}
  #faq .faqx-n{width:22px}
  #faq .faqx-ai{padding:0 16px 18px 48px}
  #faq .faqx-topics{flex-wrap:nowrap;overflow-x:auto;margin-bottom:6px;padding-bottom:4px;scrollbar-width:none}
  #faq .faqx-topics button{flex:none}
}
@media (prefers-reduced-motion:reduce){
  #faq::before,#faq .faq details,#faq .faqx-ai{animation:none!important}
  #faq.faqx-js .faq details{opacity:1;transform:none}}
html.reduce-motion #faq::before,html.reduce-motion #faq .faq details,html.reduce-motion #faq .faqx-ai{animation:none!important}
html.reduce-motion #faq.faqx-js .faq details{opacity:1;transform:none}
