/* ============ FAQ — ROCKET (confirmed build, 2026-11-30) ============
   Transplanted from rebuild-samples/faq-rocket-2026-11-30/index.html.
   Every class and custom property carries the faqx- prefix: the page
   :root (index.css) already owns --bg / --ink, and the old .faq-glass
   stylesheet is gone. The sample's two <style> blocks are merged here
   into their final computed state (glass cards, plain text badge).
   Adaptation for the assembled page: the Waves WebGL canvas lives
   INSIDE the section (absolute, behind the content) instead of the
   sample's viewport-fixed canvas, so the waves never paint outside
   this section. There is deliberately NO glow button here — the
   support card keeps its plain "Email us ->" text link. */

.faqx-section{
  --faqx-fill:#131315;
  --faqx-chev-fill:#232428;
  --faqx-chev:#C9C9CC;
  --faqx-ink:#F9F9F9;
  --faqx-secondary:#A7A7A7;
  --faqx-accent:#E85002;
  --faqx-ease:cubic-bezier(.4,0,.2,1);
  position:relative;
  overflow:hidden;
  background:#000000;
  color:var(--faqx-ink);
  font-family:"Archivo",system-ui,sans-serif;
  padding:88px 24px 96px;
  /* Fix round 2026-11-30: the section is a full-height stage. In the
     standalone sample the section WAS the page (viewport-fixed waves), so
     it always filled the screen; transplanted, it collapsed to content
     height (~half a screen). min-height + a flex column lets the body
     stretch so the composition fills the viewport. */
  min-height:100vh;
  min-height:100svh;
  display:flex;
  flex-direction:column;
}
.faqx-section button{font:inherit;background:none;border:0;cursor:pointer;color:inherit}
.faqx-section a{color:inherit}

.faqx-bg-canvas{
  position:absolute;inset:0;
  width:100%;height:100%;
  z-index:0;
  pointer-events:none;
  display:block;
  /* Lag fix (2026-12-01, fix round 9): the waves canvas keeps its own
     composited layer, so scrolling the section composites its texture
     instead of re-rastering it with the page. Same pixels, same
     shader — only the layer promotion changes. */
  transform:translateZ(0);
  will-change:transform;
}
.faqx-inner{
  position:relative;
  z-index:1;
  max-width:1200px;
  width:100%;
  margin:0 auto;
  flex:1;
  display:flex;
  flex-direction:column;
}

/* ---------- Header ---------- */
.faqx-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--faqx-secondary);
}
.faqx-badge .faqx-dot{
  width:5px;height:5px;border-radius:50%;
  background:var(--faqx-accent);
  flex:none;
}
.faqx-head-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:48px;
  margin-top:22px;
}
.faqx-title{
  font-family:"Playfair Display",Georgia,serif;
  font-weight:600;
  font-size:46px;
  line-height:1.12;
  letter-spacing:-.01em;
  color:var(--faqx-ink);
}
.faqx-intro{
  max-width:300px;
  flex:none;
  font-size:14px;
  line-height:1.6;
  color:var(--faqx-secondary);
  padding-top:5px;
}

/* ---------- Body layout ---------- */
.faqx-body{
  display:grid;
  grid-template-columns:250px 1fr;
  gap:48px;
  align-items:start;
  margin-top:60px;
  flex:1;
}

/* ---------- Left rail ---------- */
.faqx-cat-list{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.faqx-cat-btn{
  width:100%;
  font-size:14px;
  font-weight:500;
  color:var(--faqx-secondary);
  padding:10px;
  border:1px solid transparent;
  border-radius:8px;
  text-align:center;
  transition:background .25s var(--faqx-ease),color .25s var(--faqx-ease);
}
.faqx-cat-btn:hover{color:var(--faqx-ink)}
.faqx-cat-btn.active{
  /* De-glassed (Sami, 2026-12-01, same treatment as the Services
     tiles): solid AMOLED dark, fully opaque, no backdrop-filter;
     border brightened to .35 so the edge still catches light. */
  background:#060607;
  border:1px solid rgba(249,249,249,.35);
  color:var(--faqx-ink);
}
.faqx-cat-btn:focus-visible,.faqx-q-btn:focus-visible,.faqx-support-link:focus-visible{
  outline:2px solid var(--faqx-secondary);
  outline-offset:2px;
}

.faqx-support-card{
  margin-top:32px;
  /* De-glassed (Sami, 2026-12-01): solid AMOLED dark, no backdrop blur. */
  background:#060607;
  border:1px solid rgba(249,249,249,.35);
  box-shadow:inset 0 1px 0 rgba(249,249,249,.06);
  border-radius:12px;
  padding:20px;
}
.faqx-support-card h3{
  font-size:16px;
  font-weight:600;
  color:var(--faqx-ink);
}
.faqx-support-card p{
  font-size:13.5px;
  line-height:1.6;
  color:var(--faqx-secondary);
  margin:8px 0 14px;
}
.faqx-support-link{
  font-size:13.5px;
  font-weight:500;
  text-decoration:none;
  color:var(--faqx-ink);
  transition:color .25s var(--faqx-ease);
}
.faqx-support-link:hover{color:var(--faqx-accent)}

/* ---------- Accordion ---------- */
.faqx-qa-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.faqx-qa{
  /* De-glassed (Sami, 2026-12-01): solid AMOLED dark, no backdrop blur. */
  background:#060607;
  border:1px solid rgba(249,249,249,.35);
  box-shadow:inset 0 1px 0 rgba(249,249,249,.06);
  border-radius:12px;
  overflow:hidden;
}
.faqx-q-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  text-align:left;
  padding:18px 20px;
  transition:padding-bottom .3s var(--faqx-ease);
}
.faqx-qa.open .faqx-q-btn{padding-bottom:8px}
.faqx-q-text{
  font-size:16px;
  font-weight:500;
  line-height:1.4;
  color:var(--faqx-ink);
}
.faqx-chev{
  flex:none;
  width:30px;height:30px;
  border-radius:50%;
  background:var(--faqx-chev-fill);
  display:flex;
  align-items:center;
  justify-content:center;
}
.faqx-chev svg{
  width:14px;height:14px;
  color:var(--faqx-chev);
  transition:transform .3s var(--faqx-ease);
}
.faqx-qa.open .faqx-chev svg{transform:rotate(180deg)}
.faqx-a-wrap{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .3s var(--faqx-ease);
}
.faqx-qa.open .faqx-a-wrap{grid-template-rows:1fr}
.faqx-a-clip{overflow:hidden;min-height:0}
.faqx-a-text{
  padding:2px 20px 18px;
  font-size:14.5px;
  line-height:1.55;
  color:var(--faqx-secondary);
  max-width:62ch;
  opacity:0;
  transition:opacity .3s var(--faqx-ease);
}
.faqx-qa.open .faqx-a-text{opacity:1}

/* ---------- Desktop: stack lowered, support card raised ----------
   The support card no longer hugs the bottom: its top sits level
   with the boundary between the 3rd and 4th accordion items
   (Sami, 2026-12-01). The FAQ script measures that boundary per
   category and sets the exact margin inline; this static value is
   the no-JS fallback, tuned to the General category. */
@media (min-width:821px){
  .faqx-body{margin-top:120px;align-items:stretch}
  .faqx-side{display:flex;flex-direction:column}
  .faqx-support-card{margin-top:181px}
}

/* ---------- Large desktops: proportional scale-up (fix round 2026-11-30) ---------- */
@media (min-width:1600px){
  .faqx-section{padding:104px 24px 112px}
  .faqx-inner{max-width:1380px}
  .faqx-badge{font-size:13px}
  .faqx-title{font-size:57px}
  .faqx-intro{font-size:17px;max-width:360px}
  .faqx-body{grid-template-columns:300px 1fr;gap:56px}
  .faqx-cat-btn{font-size:16.5px;padding:12px}
  .faqx-support-card{padding:24px}
  .faqx-support-card h3{font-size:19px}
  .faqx-support-card p{font-size:16px}
  .faqx-support-link{font-size:16px}
  .faqx-q-btn{padding:22px 24px}
  .faqx-q-text{font-size:19px}
  .faqx-a-text{font-size:17px;padding:2px 24px 22px}
  .faqx-chev{width:36px;height:36px}
  .faqx-chev svg{width:17px;height:17px}
}

/* ---------- Mobile ---------- */
@media (max-width:820px){
  .faqx-section{padding:56px 16px 64px}
  .faqx-head-row{flex-direction:column;gap:16px;margin-top:18px}
  .faqx-title{font-size:30px}
  .faqx-intro{max-width:52ch;padding-top:0}
  .faqx-body{grid-template-columns:1fr;gap:24px;margin-top:40px}
  .faqx-side{display:contents}
  .faqx-cat-list{order:1}
  .faqx-qa-stack{order:2}
  .faqx-support-card{order:3;margin-top:0}
  .faqx-q-btn{padding:16px 18px}
  .faqx-qa.open .faqx-q-btn{padding-bottom:6px}
  .faqx-a-text{padding:2px 18px 16px}
}
