.qa-page {
  background:
    linear-gradient(180deg, rgba(255, 247, 231, 0.72), rgba(247, 244, 238, 0.96)),
    var(--paper);
  overflow-x: hidden;
}

.qa-shell {
  padding-top: 86px;
  overflow-x: hidden;
}

.qa-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 5vw, 72px);
  align-items: start;
  padding: clamp(72px, 10vw, 118px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(32, 61, 52, 0.96), rgba(62, 109, 129, 0.76)),
    var(--forest);
  color: #fff;
}

.qa-hero h1 {
  max-width: 1080px;
  margin-bottom: 22px;
  color: #fff;
  text-shadow: none;
}

.qa-hero p:not(.section-kicker) {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.62;
}

.qa-jump-button {
  min-width: 160px;
  color: #1e1707;
  box-shadow: 0 18px 42px rgba(214, 168, 79, 0.24);
}

.qa-workspace {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 5vw, 72px);
}

.qa-workspace-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: end;
}

.qa-workspace-head h2 {
  max-width: 980px;
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.9rem, 4vw, 3.65rem);
  line-height: 1;
}

.qa-workspace-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.58;
}

.qa-business-picker {
  display: grid;
  max-width: 420px;
  min-width: 0;
}

.qa-question-button {
  min-width: 0;
  border: 1px solid rgba(32, 61, 52, 0.18);
  border-radius: 6px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.qa-business-picker label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.qa-business-picker select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.qa-question-button:hover,
.qa-question-button:focus-visible {
  border-color: rgba(185, 99, 71, 0.44);
  background: #fff7e7;
}

.qa-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 18px;
  align-items: start;
}

.qa-main-panel,
.qa-value-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.qa-main-panel {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 34px);
}

.qa-industry-intro {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(32, 61, 52, 0.12);
}

.qa-industry-intro h3,
.qa-value-panel h3 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

.qa-industry-intro p:last-child,
.qa-value-panel li {
  color: var(--muted);
  line-height: 1.58;
}

.qa-industry-intro p:last-child {
  max-width: 820px;
  margin: 0;
  font-size: 1.02rem;
}

.qa-question-area {
  display: grid;
  gap: 14px;
}

.qa-panel-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.qa-panel-heading h4 {
  margin: 0;
  color: var(--forest);
  font-size: 1rem;
}

.qa-sample-button {
  min-height: 42px;
  color: var(--forest);
  border: 1px solid rgba(32, 61, 52, 0.22);
  background: rgba(32, 61, 52, 0.08);
}

.qa-question-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.qa-question-button {
  min-height: 72px;
  padding: 12px;
  text-align: left;
  line-height: 1.28;
}

.qa-question-button.is-active {
  border-color: rgba(32, 61, 52, 0.5);
  background: #fff7e7;
}

.qa-chat-window {
  overflow: hidden;
  border: 1px solid rgba(32, 61, 52, 0.16);
  border-radius: 8px;
  background: #fbfaf7;
}

.qa-chat-topbar {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
  background: var(--forest);
}

.qa-chat-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
}

.qa-chat-topbar strong,
.qa-chat-topbar em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-chat-topbar strong {
  font-size: 0.92rem;
}

.qa-chat-topbar em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.qa-chat-thread {
  display: grid;
  gap: 12px;
  min-height: 300px;
  align-content: start;
  padding: clamp(16px, 3vw, 24px);
}

.qa-message {
  display: grid;
  gap: 5px;
  max-width: min(620px, 86%);
}

.qa-message span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.qa-bubble {
  padding: 13px 15px;
  border-radius: 8px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.qa-message.customer {
  justify-self: end;
}

.qa-message.customer span {
  text-align: right;
}

.qa-message.customer .qa-bubble {
  color: #fff;
  background: var(--blue);
}

.qa-message.closeful .qa-bubble {
  color: var(--forest);
  background: #fff;
  border: 1px solid rgba(32, 61, 52, 0.12);
}

.qa-value-panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(111, 137, 119, 0.12), rgba(214, 168, 79, 0.12)),
    #fff;
}

.qa-value-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qa-value-panel li {
  position: relative;
  padding-left: 22px;
  color: var(--forest);
  font-weight: 850;
}

.qa-value-panel li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.qa-cta {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(48px, 7vw, 84px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--forest);
  text-align: center;
}

.qa-cta h2 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
}

.qa-cta .button {
  width: fit-content;
}

@media (max-width: 980px) {
  .qa-hero,
  .qa-workspace-head,
  .qa-demo-grid {
    grid-template-columns: 1fr;
  }

  .qa-question-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qa-jump-button {
    width: fit-content;
  }
}

@media (max-width: 660px) {
  .qa-shell {
    padding-top: 68px;
  }

  .qa-hero {
    padding-top: 64px;
  }

  .qa-workspace {
    padding: 24px 14px;
  }

  .qa-panel-heading {
    display: grid;
  }

  .qa-business-picker,
  .qa-question-list,
  .qa-sample-button,
  .qa-jump-button,
  .qa-cta .button {
    width: 100%;
  }

  .qa-question-list {
    grid-template-columns: 1fr;
  }

  .qa-chat-topbar {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .qa-chat-topbar em {
    grid-column: 2;
  }

  .qa-message {
    max-width: 94%;
  }
}
