.qa-sales-page {
  --qa-purple: #604080;
  --qa-green: #4e7046;
  --qa-purple-soft: #f4eff8;
  --qa-green-soft: #f0f4eb;
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

.qa-sales-page h1,
.qa-sales-page h2,
.qa-sales-page h3 {
  color: var(--qa-purple);
  text-wrap: balance;
}

.qa-sales-page h2 {
  font-size: clamp(1.65rem, 1.25rem + 1.2vw, 2.25rem);
  line-height: 1.2;
}

.qa-sales-page h3 {
  font-size: clamp(1.2rem, 1.08rem + .35vw, 1.45rem);
  line-height: 1.3;
}

.qa-sales-page p,
.qa-sales-page li {
  text-wrap: pretty;
}

.qa-sales-page .button {
  background: var(--qa-purple);
}

.qa-sales-page .button:hover {
  background: #4d3269;
}

.qa-sales-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 3.875rem);
  line-height: 1.08;
}

.qa-sales-hero > .qa-sales-featured-photo {
  grid-column: 1 / -1;
  width: 100%;
}

.qa-sales-hero .intro {
  max-width: 62ch;
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.65;
}

.qa-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 22px;
}

.qa-hero-actions .button {
  margin-top: 0;
}

.qa-sales-aside {
  border-color: var(--qa-green);
}

.qa-sales-aside .handwriting {
  color: var(--qa-purple);
}

.qa-sales-section > h2 {
  max-width: 34ch;
}

.qa-value {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 48px;
  border-top: 1px solid var(--qa-line);
  padding: 44px 0;
}

.qa-value h2 {
  max-width: 21ch;
}

.qa-value-copy p {
  max-width: 72ch;
}

.qa-problem-list,
.qa-findings-list,
.qa-differential-list {
  padding-left: 22px;
}

.qa-problem-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  max-width: 1000px;
}

.qa-problem-list li,
.qa-findings-list li,
.qa-differential-list li {
  padding: 7px 0 7px 3px;
}

.qa-explainer {
  max-width: 78ch;
  margin: 22px 0 0;
  border-left: 3px solid var(--qa-green);
  padding: 5px 0 5px 18px;
}

.qa-service {
  border-top-color: var(--qa-purple);
}

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

.qa-service:nth-child(2) {
  border-top-color: var(--qa-green);
}

.qa-service:nth-child(4) {
  border-top-color: var(--qa-green);
}

.qa-service:nth-child(2) .qa-service-number {
  color: var(--qa-green);
}

.qa-service:nth-child(4) .qa-service-number {
  color: var(--qa-green);
}

.qa-service-label {
  margin: 20px 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--qa-green);
}

.qa-service > p:not(.qa-service-number):not(.qa-service-label) {
  font-size: 1rem;
  line-height: 1.6;
}

.qa-service-footnote {
  max-width: 82ch;
  margin: 20px 0 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.qa-ebook {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
  align-items: center;
  gap: 48px;
  margin: 8px 0;
  padding: 40px 44px;
  border: 1px solid #d8dfd1;
  border-radius: 8px;
  background: var(--qa-green-soft);
}

.qa-ebook h2 {
  max-width: 24ch;
}

.qa-ebook-copy > p:not(.eyebrow) {
  max-width: 67ch;
}

.qa-ebook-copy .button {
  margin-top: 8px;
}

.qa-ebook-unavailable {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 3px solid var(--qa-purple);
  color: var(--muted);
  font-size: .9375rem;
}

.qa-ebook-unavailable code {
  overflow-wrap: anywhere;
  font-size: .875em;
}

.qa-ebook-outline {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-left: 6px solid var(--qa-green);
  background: #fffdfa;
  box-shadow: 0 10px 26px #27333112;
  transform: rotate(1deg);
}

.qa-ebook-outline > span {
  color: var(--qa-green);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.qa-ebook-outline > strong {
  color: var(--qa-purple);
  font-family: "Architects Daughter", cursive;
  font-size: clamp(1.8rem, 1.4rem + 1vw, 2.5rem);
  line-height: 1.15;
}

.qa-ebook-outline ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: .875rem;
}

.qa-ebook-outline li {
  padding: 3px 0;
}

.qa-ideation {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 48px;
  border-top: 1px solid var(--qa-line);
  padding: 44px 0;
}

.qa-ideation h2 {
  max-width: 18ch;
}

.qa-ideation > div:last-child p {
  max-width: 72ch;
}

.qa-deliverables {
  align-items: start;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.qa-process-list {
  list-style: none;
  counter-reset: qa-process;
  padding: 0;
  margin: 0;
}

.qa-process-list li {
  counter-increment: qa-process;
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr);
  gap: 6px 20px;
  border-bottom: 1px solid var(--qa-line);
  padding: 15px 0;
}

.qa-process-list li:first-child {
  border-top: 1px solid var(--qa-line);
}

.qa-process-list li strong::before {
  content: "0" counter(qa-process) " · ";
  color: var(--qa-green);
  font-size: 13px;
  font-weight: 400;
}

.qa-process-list li span {
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.55;
}

.qa-findings,
.qa-testplay,
.qa-business,
.qa-differentials {
  border-top: 1px solid var(--qa-line);
  padding: 42px 0;
}

.qa-findings h2,
.qa-testplay h2,
.qa-business h2,
.qa-differentials h2 {
  max-width: 35ch;
}

.qa-testplay-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.qa-testplay-heading img {
  display: block;
  flex: 0 0 auto;
  width: clamp(80px, 12vw, 112px);
  height: auto;
  border-radius: 12px;
}

.qa-testplay-heading .eyebrow {
  margin-bottom: 8px;
}

.qa-testplay-heading h2 {
  margin: 0;
}

.qa-findings-list {
  columns: 2;
  column-gap: 48px;
}

.qa-testplay > p:not(.eyebrow),
.qa-business > p:not(.eyebrow) {
  max-width: 82ch;
}

.qa-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.qa-roles article {
  border-top: 2px solid var(--qa-green);
  padding: 18px 18px 4px 0;
}

.qa-roles h3 {
  margin: 0 0 10px;
}

.qa-roles p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
}

.qa-testplay-note {
  border-left: 3px solid var(--qa-purple);
  padding: 5px 0 5px 18px;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.6;
}

.qa-differential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  max-width: 1000px;
}

.qa-sales-cta {
  border-color: #d8dfd1;
  background-color: var(--qa-green-soft);
  background-image: linear-gradient(#6040800b 1px, transparent 1px), linear-gradient(90deg, #6040800b 1px, transparent 1px);
}

.qa-sales-cta h2 {
  margin-bottom: 16px;
}

.qa-sales-cta > p:not(.eyebrow):not(.qa-contact-note) {
  max-width: 75ch;
}

.qa-sales-cta .button {
  background: var(--qa-green);
}

.qa-sales-cta .button:hover {
  background: #3e5938;
}

.qa-contact-note {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}

@media (min-width: 1200px) {
  .qa-sales-hero {
    gap: 64px;
  }
}

@media (max-width: 991.98px) {
  .qa-sales-hero {
    gap: 40px;
  }

  .qa-sales-hero h1 {
    font-size: clamp(2.375rem, 1.6rem + 2.5vw, 3.25rem);
  }

  .qa-roles {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .qa-value {
    gap: 32px;
  }

  .qa-ebook {
    gap: 32px;
    padding: 32px;
  }
}

@media (max-width: 767.98px) {
  .qa-sales-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0 36px;
  }

  .qa-sales-hero h1 {
    font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3rem);
  }

  .qa-sales-aside {
    padding-left: 22px;
  }

  .qa-sales-featured-photo {
    margin-bottom: 40px;
  }

  .qa-sales-featured-photo img {
    aspect-ratio: 1.5;
  }

  .qa-sales-mascot {
    width: min(68vw, 260px);
    margin-bottom: 12px;
  }

  .qa-sales-section {
    margin: 20px 0 48px;
  }

  .qa-problem-list,
  .qa-differential-list {
    grid-template-columns: 1fr;
  }

  .qa-service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .qa-service:last-child {
    grid-column: auto;
  }

  .qa-service {
    padding: 20px;
  }

  .qa-ideation,
  .qa-deliverables,
  .qa-value,
  .qa-ebook {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }

  .qa-ebook {
    padding: 28px 24px;
  }

  .qa-ebook-outline {
    width: min(100%, 340px);
    min-height: 230px;
    margin: 8px auto 0;
  }

  .qa-process-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .qa-findings,
  .qa-testplay,
  .qa-business,
  .qa-differentials {
    padding: 32px 0;
  }

  .qa-findings-list {
    columns: 1;
  }

  .qa-testplay-heading {
    align-items: flex-start;
    gap: 16px;
  }

  .qa-testplay-heading img {
    width: 76px;
  }

  .qa-sales-cta {
    margin: 4px 0 48px;
    padding: 30px 24px;
  }
}

@media (max-width: 575.98px) {
  .qa-sales-page h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 1.75rem);
  }

  .qa-sales-hero {
    padding-top: 36px;
  }

  .qa-sales-hero > .qa-sales-featured-photo {
    margin-top: 4px;
  }

  .qa-sales-hero h1 {
    font-size: clamp(2rem, 1.25rem + 4vw, 2.5rem);
  }

  .qa-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .qa-problem-list,
  .qa-findings-list,
  .qa-differential-list {
    padding-left: 20px;
  }

  .qa-explainer,
  .qa-testplay-note {
    padding-left: 14px;
  }

  .qa-sales-cta {
    padding: 26px 20px;
  }

  .qa-ebook {
    padding: 24px 20px;
  }
}

/* ===== Caça aos bugs (qa-game-hub-game.js) ===== */
.qa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qa-hunt .qa-sales-mascot {
  position: relative;
  overflow: hidden;
}

.qa-hunt-canvas {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}

.qa-hunt.is-3d .qa-hunt-canvas {
  display: block;
}

.qa-hunt.is-3d .qa-hunt-fallback {
  visibility: hidden;
}

.qa-hunt-panel {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #d8dfd1;
  border-radius: 8px;
  background: var(--qa-purple-soft, #f4eff8);
}

.qa-hunt-title {
  margin: 0;
  color: var(--qa-purple, #604080);
  font-weight: 700;
  font-size: 15px;
}

.qa-hunt-help {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.qa-hunt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qa-hunt-list button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--qa-purple, #604080);
  border-radius: 6px;
  background: #fffdfa;
  color: var(--qa-purple, #604080);
  font-size: 14px;
  font-weight: 700;
}

.qa-hunt-list button:hover {
  background: var(--qa-purple, #604080);
  color: #fff;
}

.qa-hunt-list button.is-done {
  border-color: var(--qa-green, #4e7046);
  background: var(--qa-green, #4e7046);
  color: #fff;
}

/* Bug report */
.qa-bug-dialog {
  width: min(580px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #d8dfd1;
  border-radius: 10px;
  background: #fffdfa;
  color: var(--ink);
  box-shadow: 0 24px 60px #27333133;
}

.qa-bug-dialog::backdrop {
  background: #27333199;
}

.qa-bug-dialog article {
  padding: 24px 28px;
}

.qa-bug-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.qa-bug-dialog header .eyebrow {
  margin: 0;
  color: var(--qa-green, #4e7046);
}

.qa-bug-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid #d8dfd1;
  border-radius: 50%;
  background: #fffdfa;
  font-size: 24px;
  line-height: 1;
}

.qa-bug-dialog h2 {
  margin: 10px 0 8px;
  color: #604080;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
}

.qa-bug-dialog h3 {
  margin: 0 0 6px;
  color: #604080;
  font-size: 1rem;
}

.qa-bug-severity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 15px;
}

.qa-bug-severity i {
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.qa-bug-criterion,
.qa-bug-evidence {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-left: 3px solid #604080;
  background: #f4eff8;
  font-size: 15px;
  line-height: 1.5;
}

.qa-bug-evidence {
  border-left-color: #4e7046;
  background: #f0f4eb;
}

.qa-bug-dialog ol {
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
}

.qa-bug-dialog dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 14px;
}

.qa-bug-dialog dl > div {
  padding: 10px 12px;
  border: 1px solid #dfe5de;
  border-radius: 8px;
}

.qa-bug-dialog dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.qa-bug-dialog dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.qa-bug-note {
  margin: 0 0 16px;
  padding-top: 12px;
  border-top: 1px solid #dfe5de;
  color: var(--muted);
  font-size: 14px;
}

.qa-bug-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.qa-bug-actions .button {
  background: #604080;
}

.qa-bug-actions .button:hover {
  background: #4d3269;
}

.qa-link-button {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Saúde da build e insígnias */
.qa-quest-hud {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: 16px;
  width: min(360px, calc(100% - 32px));
  font-size: 14px;
}

.qa-quest-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #d8dfd1;
  border-radius: 10px;
  background: #fffdfa;
  box-shadow: 0 10px 26px #2733311f;
  color: var(--ink);
  text-align: left;
}

.qa-quest-mode {
  width: auto;
  margin-left: auto;
  font-weight: 700;
}

.qa-quest-hud:has(.qa-quest-mode) {
  width: auto;
}

.qa-quest-label {
  font-weight: 700;
  white-space: nowrap;
}

.qa-quest-bar {
  flex: 1;
  height: 10px;
  overflow: hidden;
  border: 1px solid #c9d3c4;
  border-radius: 99px;
  background: #f0f4eb;
}

.qa-quest-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4e7046, #604080);
  transition: width .6s ease;
}

.qa-quest-count {
  color: #604080;
  font-weight: 700;
  white-space: nowrap;
}

.qa-quest-panel {
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid #d8dfd1;
  border-radius: 12px;
  background: #fffdfa;
  box-shadow: 0 14px 36px #27333126;
}

.qa-quest-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.qa-quest-head p {
  margin: 0;
}

.qa-quest-head strong {
  display: block;
  color: #604080;
  font-size: 16px;
}

.qa-quest-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.qa-quest-head button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid #d8dfd1;
  border-radius: 50%;
  background: #fffdfa;
  font-size: 22px;
  line-height: 1;
}

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

.qa-quest-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px dashed #d8dfd1;
  border-radius: 8px;
  color: var(--muted);
}

.qa-quest-panel li strong,
.qa-quest-panel li small {
  display: block;
}

.qa-quest-panel li strong {
  font-size: 14px;
}

.qa-quest-panel li small {
  font-size: 12px;
}

.qa-quest-panel li.is-unlocked {
  border-style: solid;
  border-color: #4e7046;
  background: #f0f4eb;
  color: var(--ink);
}

.qa-quest-panel .button {
  display: block;
  margin-bottom: 10px;
  background: #4e7046;
  text-align: center;
}

.qa-quest-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid #dfe5de;
}

.qa-quest-foot button {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 13px;
  text-decoration: underline;
}

.qa-quest-toast {
  position: fixed;
  z-index: 31;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 99px;
  background: #604080;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 26px #27333133;
}

/* Hall de cases */
.qa-cases-intro {
  max-width: 78ch;
}

.qa-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.qa-case {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #dfe5de;
  border-top: 4px solid var(--qa-purple);
  border-radius: 8px;
  background: #fffdfa;
}

.qa-case:nth-child(2) {
  border-top-color: var(--qa-green);
}

.qa-case-tag {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--qa-green-soft);
  color: var(--qa-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.qa-case h3 {
  margin: 0 0 4px;
}

.qa-case-meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.qa-case dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.qa-case dt {
  color: var(--qa-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.qa-case dd {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.qa-case-yours {
  justify-content: flex-start;
  border-style: dashed;
  border-top-style: solid;
  background: var(--qa-purple-soft);
}

.qa-case-yours .button {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 1050px) {
  .qa-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .qa-case-grid,
  .qa-bug-dialog dl {
    grid-template-columns: 1fr;
  }

  .qa-bug-dialog article {
    padding: 20px;
  }

  .qa-quest-hud {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .qa-quest-count {
    display: none;
  }

  .footer {
    padding-bottom: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qa-quest-bar span {
    transition: none;
  }
}
