/* Support & FAQ — ported from the Grade A humanizer's style.css (.faq-* and the
   Live Support .chat-* block) so this view matches it like every other section.

   Same one change as sections.css: Grade A hardcodes indigo where its tokens don't
   reach — #a06bff in the bubble/send gradients and rgba(124,131,255,…) behind the
   avatar. Those become the B7oothKw red here. Everything else reads the shared
   tokens untouched. */

/* ---------- the two columns ---------- */
.faq-layout{display:flex;gap:0;align-items:stretch;max-width:1420px}
.faq-main{flex:1 1 0;min-width:0;padding-right:12px}
.faq-support{flex:0 0 588px;width:588px;display:flex;flex-direction:column;
  /* sticky against .view, which is the scroll container here — not the window */
  position:sticky;top:0;align-self:flex-start;
  padding-left:62px;border-left:1px solid var(--line)}
.faq-support-title{font-size:19px;font-weight:800;display:flex;align-items:center;gap:9px;margin:0 0 6px}
.faq-support-sub{font-size:13px;color:var(--mut);margin:0 0 14px;line-height:1.55}

/* ---------- tabs + accordion ---------- */
.faq-tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin:18px 0 22px}
.faq-tab{background:none;border:0;font:inherit;font-size:13.5px;font-weight:600;color:var(--mut);
  padding:10px 14px;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.faq-tab:hover{color:var(--ink)}
.faq-tab.active{color:var(--ink);border-bottom-color:var(--acc)}
.faq-group{display:flex;flex-direction:column;gap:10px}
.faq-group.hidden{display:none}
.faq-item{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.faq-item summary{list-style:none;cursor:pointer;padding:16px 48px 16px 18px;position:relative;
  font-size:14.5px;font-weight:650;color:var(--ink);user-select:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"";position:absolute;right:20px;top:50%;width:9px;height:9px;
  border-right:2px solid var(--mut);border-bottom:2px solid var(--mut);
  transform:translateY(-70%) rotate(45deg);transition:transform .2s}
.faq-item[open] summary::after{transform:translateY(-30%) rotate(225deg)}
.faq-item[open] summary{color:var(--acc)}
.faq-item[open]{border-color:color-mix(in srgb,var(--acc) 45%,var(--line))}
.faq-item summary:hover{color:var(--acc)}
.faq-item p{margin:0;padding:2px 18px 18px;font-size:14px;line-height:1.65;color:var(--mut)}
.faq-item p a{color:var(--acc2)}

/* ---------- live support chat ---------- */
.chat-card{display:flex;flex-direction:column;width:100%;height:min(72vh,620px);
  background:var(--panel);border:1px solid color-mix(in srgb,var(--acc) 34%,var(--line));
  border-radius:var(--r);overflow:hidden;box-shadow:0 26px 64px rgba(0,0,0,.42)}
.chat-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,color-mix(in srgb,var(--acc) 14%,var(--panel2)),var(--panel2))}
.chat-avatar{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:20px;background:rgba(255,49,49,.15)}
.chat-head-title{font-weight:700;color:var(--ink);font-size:15px}
.chat-head-sub{font-size:12px;color:var(--mut);display:flex;align-items:center;gap:6px}
.chat-dot{width:8px;height:8px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px rgba(63,185,80,.18)}
.chat-body{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:10px}
.chat-welcome{margin:auto;text-align:center;color:var(--mut);font-size:14px;max-width:320px;line-height:1.5}
.chat-msg{display:flex;flex-direction:column;max-width:78%}
.chat-msg.me{align-self:flex-end;align-items:flex-end}
.chat-msg.them{align-self:flex-start;align-items:flex-start}
.chat-bubble{padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.45;word-break:break-word}
.chat-msg.me .chat-bubble{background:linear-gradient(135deg,var(--acc),var(--acc2));color:#fff;
  border-bottom-right-radius:4px}
.chat-msg.them .chat-bubble{background:var(--panel2);color:var(--ink);border:1px solid var(--line2);
  border-bottom-left-radius:4px}
.chat-time{font-size:10.5px;color:var(--faint);margin-top:3px;padding:0 4px}
/* Grade A reports a failed send with a toast; this site has none, so the chat card
   carries its own line above the input. */
.chat-err{margin:0;padding:9px 16px 0;font-size:12.5px;line-height:1.45;color:var(--bad)}
.chat-err.hidden{display:none}
.chat-input{display:flex;gap:10px;padding:14px 16px;border-top:1px solid var(--line);background:var(--panel)}
.chat-input input{flex:1;background:var(--panel2);border:1px solid var(--line2);border-radius:999px;
  color:var(--ink);padding:11px 16px;font-size:14px;font-family:inherit}
.chat-input input:focus{outline:none;border-color:var(--acc)}
.chat-send{flex-shrink:0;width:42px;height:42px;border-radius:50%;border:0;cursor:pointer;
  background:linear-gradient(135deg,var(--acc),var(--acc2));color:#fff;font-size:16px;transition:.15s}
.chat-send:hover{filter:brightness(1.1)}

/* one column once the rail can't hold its 588px without squeezing the accordion */
@media (max-width:1040px){
  .faq-layout{flex-direction:column;gap:26px;max-width:860px}
  .faq-main{padding-right:0}
  .faq-support{position:static;flex:none;width:100%;padding-left:0;border-left:0;
    border-top:1px solid var(--line);padding-top:24px}
}
