/* ─────────────────────────────────────────────────────────────────────────────
   /faq — ported from the Claude Design template "Clarus FAQ".
   Layers on site.css + page.css. Every class is prefixed `q-`.

   ⚠️ THE TEMPLATE'S ANSWERS WERE NOT USED, DELIBERATELY. It shipped the same 15
   questions with placeholder copy, and several answers were plainly false about
   this product: "not a subscription" (it is $5.99/mo or $39/yr), "no account
   needed" for the trial (the trial belongs to an account), "install it on your
   desktop and your laptop" (one machine at a time — signing in signs the other
   out), and "the installer is signed" (there is no code-signing certificate
   yet). A design template carries design, not facts. The live answers were kept
   verbatim and only re-housed in the new markup.

   ⚠️ WHAT THE TEMPLATE DID CONTRIBUTE, and why it was worth porting: category
   filter pills. Fifteen questions in one flat column is a wall; five groups is
   scannable.

   ⚠️ `q-` PREFIXES ARE LOAD-BEARING. compare.css once shipped five plain names
   that already existed in site.css — `.mk` is `display:none` there, which
   silently blanked every tick in the comparison tables. Check any new class:
   grep -o '\.[a-z][\w-]*' faq.css | sort -u
   ───────────────────────────────────────────────────────────────────────────── */

.q-page { max-width: 800px; padding-top: 92px; padding-bottom: 120px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.q-head { text-align: center; margin-bottom: 38px; }
.q-head h1 {
  margin: 20px 0 18px; font-size: clamp(34px, 5vw, 52px); line-height: 1.05;
  letter-spacing: -0.022em; color: var(--text); font-weight: 700;
  text-wrap: balance;
}
.q-head p {
  margin: 0 auto; font-size: 15px; line-height: 1.7; color: var(--text-soft);
  max-width: 54ch; text-wrap: pretty;
}

/* ── Category pills ───────────────────────────────────────────────────────── */
.q-tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin: 0 0 34px;
}
.q-tab {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-hi);
  background: none; color: var(--text-mut); font-size: 13.5px; font-weight: 500;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.q-tab:hover { color: var(--text-soft); border-color: var(--gold-soft); }
/* ⚠️ Driven by a CLASS, not by inline styles written from JS. The template's
   script assigned el.style.background/color directly, which outranks every rule
   in this file and makes the selected state impossible to restyle from CSS —
   the same thing that had to be undone in the /features port. */
/* ⚠️ `background-origin: border-box` fixes a REAL artifact, not a hypothetical.
   `background-origin` defaults to padding-box while `background-clip` defaults
   to border-box, so under a TRANSPARENT border the gradient is positioned to
   the padding box, painted over the larger border box, and the leftover 1px
   strip is filled by REPEATING it — the gradient wraps, leaving a dark hairline
   on the top edge and a bright one on the bottom. Measured on the identical
   changelog badge at 2x: top rgb(186,142,69) = gold-DEEP where it should start
   bright; bottom rgb(240,207,133) = gold-BRIGHT where it should end dark.
   Spanning the border box removes the strip with no size change. Any rule that
   puts a gradient under a transparent border needs this. */
.q-tab.is-on {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  background-origin: border-box;
  color: oklch(0.15 0.02 84); border-color: transparent; font-weight: 600;
}
.q-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── The questions ────────────────────────────────────────────────────────── */
.q-list { display: flex; flex-direction: column; gap: 12px; }

.q-item {
  border: 1px solid var(--line); border-radius: 14px;
  background: oklch(1 0 0 / 0.012);
  transition: border-color .25s ease, background .25s ease;
}
.q-item.is-open { border-color: var(--gold-soft); background: var(--gold-faint); }
.q-item.is-hidden { display: none; }

/* The question is a heading for structure AND a button for behaviour — that
   pairing is the standard disclosure pattern. The template used a bare <div>
   with `cursor:pointer`, which cannot be reached or operated from a keyboard. */
.q-h { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: 0; }
.q-q {
  display: flex; align-items: center; gap: 18px; width: 100%;
  padding: 21px 24px; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 15.5px; font-weight: 600; color: var(--text);
  line-height: 1.4; text-align: left;
}
.q-q:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: 14px; }

/* A plus that rotates into a cross. Two pseudo-elements rather than the
   template's two extra <span>s — same shape, no spare markup. */
.q-i {
  position: relative; width: 12px; height: 12px; flex: 0 0 auto;
  margin-left: auto; transition: transform .25s ease;
}
.q-i::before, .q-i::after {
  content: ""; position: absolute; background: var(--gold);
}
.q-i::before { left: 0; right: 0; top: 5.25px; height: 1.5px; }
.q-i::after { top: 0; bottom: 0; left: 5.25px; width: 1.5px; }
.q-item.is-open .q-i { transform: rotate(45deg); }

.q-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.q-a p {
  margin: 0; padding: 0 52px 22px 24px;
  font-size: 14.5px; line-height: 1.75; color: var(--text-soft);
  text-wrap: pretty;
}
.q-a code {
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 13px; color: var(--text);
  background: oklch(1 0 0 / 0.05); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px;
}
.q-a b { color: var(--text); font-weight: 600; }
.q-a em { color: var(--text); font-style: normal; font-weight: 600; }

/* ⚠️ site.css sets a bare `a { color: inherit }`, so a link inside a paragraph
   renders at EXACTLY the body colour — measured identical on both, oklch(0.78
   0.006 80). Six answers link out to pricing, refunds, system requirements and
   the changelog and not one of them looked clickable. This was true of the old
   page as well, so it is a fix carried by the rebuild rather than a regression
   introduced by it. Same trap as `section` and `nav`: the bare rule wins for
   any property the class does not set. */
.q-a a, .q-head p a { color: var(--gold); font-weight: 500; }
.q-a a:hover, .q-head p a:hover { color: var(--gold-bright); text-decoration: underline; }

.q-foot {
  margin: 44px 0 0; text-align: center;
  font-size: 13.5px; color: var(--text-dim);
}
.q-foot a { color: var(--gold); font-weight: 500; }

@media (max-width: 640px) {
  .q-page { padding-top: 64px; padding-bottom: 80px; }
  .q-q { padding: 18px 18px; font-size: 15px; gap: 14px; }
  .q-a p { padding: 0 40px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .q-item, .q-i, .q-a, .q-tab { transition: none; }
}
