.faq {
  width: min(100% - 48px, 1040px);
  margin: 0 auto;
  padding: clamp(8px, 2vw, 26px) 0 clamp(58px, 9vw, 110px);
  scroll-margin-top: 85px;
}

.faq h2 {
  margin-bottom: clamp(23px, 4vw, 46px);
  font-size: clamp(2.15rem, 3.65vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.05em;
}

.faq-duo {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 510px;
  max-width: 860px;
  margin-inline: auto;
  padding: 27px 0 25px;
  border: 7px solid #252129;
  border-radius: clamp(29px, 5vw, 56px);
  background: #100d16;
  box-shadow: inset 0 0 0 2px #070509, 0 0 0 1px #514a55;
}

.faq-duo::before,
.faq-duo::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.faq-duo::before {
  top: 13px;
  left: 70%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #050407;
  box-shadow: 0 0 0 1px #211b2a;
}

.faq-duo::after {
  bottom: 10px;
  left: 50%;
  width: 24%;
  max-width: 150px;
  height: 4px;
  border-radius: 999px;
  background: #77707f;
  transform: translateX(-50%);
}

.faq-pane {
  min-width: 0;
  padding: 15px clamp(17px, 3vw, 32px) 12px;
}

.faq-pane h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.faq-questions { display: grid; gap: 7px; margin-top: 13px; }

.faq-questions button {
  min-height: 45px;
  padding: 9px 12px;
  border: 1px solid #332a40;
  border-radius: 11px;
  background: #1d1727;
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.faq-questions button:hover { background: #2b2038; }
.faq-questions button[aria-pressed="true"] { border-color: #9c5be5; background: #422664; }
.faq-chat { display: flex; flex-direction: column; border-inline-start: 1px solid #2a2335; }
.faq-chat-header { display: flex; align-items: center; gap: 9px; }
.faq-chat-header img { width: 34px; }
.faq-conversation {
  block-size: clamp(230px, 32vw, 340px);
  margin: 15px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  scrollbar-width: thin;
  scrollbar-color: #54376f transparent;
}
.faq-history {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-block-size: 100%;
  padding: 5px 7px;
}
.faq-history > * { flex: 0 0 auto; }
.faq-asked, .faq-reply { max-width: 94%; padding: 10px 12px; overflow-wrap: anywhere; }
.faq-asked { align-self: flex-end; background: #4a2a6a; border-radius: 14px 14px 3px 14px; font-size: .88rem; line-height: 1.4; }
.faq-reply { align-self: flex-start; background: #262032; border-radius: 14px 14px 14px 3px; font-size: .95rem; line-height: 1.5; }
.faq-reply a { color: #e4c4ff; text-decoration: underline; text-underline-offset: .15em; }
.faq-support-link { align-self: start; margin-top: auto; padding-block: 9px; color: var(--bright); font-size: .9rem; text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 590px) {
  .faq { width: calc(100% - 32px); }
  .faq-duo { grid-template-columns: minmax(0, 1fr); min-height: 0; max-width: 420px; border-width: 5px; }
  .faq-duo::before { left: calc(50% - 3.5px); }
  .faq-pane { padding: 12px 13px 15px; }
  .faq-chat { grid-row: 1; min-height: 254px; border-inline-start: 0; border-bottom: 1px solid #2a2335; padding-top: 17px; }
  .faq-conversation { block-size: 236px; scroll-margin-block: 65px 16px; }
}

.faq-readable {
  max-width: 860px;
  margin: 20px auto 0;
  scroll-margin-top: 85px;
  border-top: 1px solid #2a2335;
}

.faq-readable summary {
  padding: 12px 0;
  color: var(--bright);
  cursor: pointer;
  font-weight: 650;
}

.faq-readable-list { display: grid; gap: 15px; padding: 5px 0 0; }
.faq-readable article { padding: 12px 0; border-top: 1px solid #2a2335; }
.faq-readable h3 { margin: 0 0 5px; font-size: 1rem; }
.faq-readable p { color: var(--muted); }
.faq-readable p a { color: var(--bright); text-decoration: underline; text-underline-offset: .15em; }
