/* ============================================================
   QUALITY ASSURANCE PAGE — QA-specific components.
   Shared tokens, sections, cards, form, FAQ and sub-nav come
   from ai-agent-modern.css (body class .ag-page).
   ============================================================ */
.qa-page {
  --qa-pass: #10b981;
  --qa-fail: #ef4444;
  --qa-run: #f59e0b;
}
.qa-hero h1 {
  max-width: 640px;
  font-size: clamp(2.2rem, 3.5vw, 3.25rem);
  line-height: 1.08;
}
.qa-hero .ag-lead {
  max-width: 540px;
}

/* ── Overview strip (intro + highlights, below the hero) ── */
.qa-overview {
  padding: clamp(44px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--ag-line);
  background: #fff;
}
.qa-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.qa-overview-copy {
  color: #334155;
  font-size: clamp(16.5px, 1.3vw, 19px);
  line-height: 1.75;
}
.qa-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.qa-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--ag-line);
  border-radius: 16px;
  background: var(--ag-soft);
  color: var(--ag-ink);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
}
.qa-highlights li:first-child {
  grid-column: 1 / -1;
  border-color: transparent;
  background: var(--ag-grad);
  color: #fff;
}
.qa-highlights li:first-child span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.qa-highlights li:hover {
  border-color: #c7cdfb;
  box-shadow: var(--ag-shadow);
  transform: translateY(-3px);
}
.qa-highlights span {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #fff;
  color: var(--ag-indigo);
}

/* ── Hero: sample test-run dashboard ─────────────────── */
.qa-dash-wrap {
  position: relative;
  width: min(100%, 520px);
  justify-self: center;
  padding: 40px 0 56px;
}
.qa-dash {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #111735, #0b1026);
  color: #e2e8f0;
  box-shadow:
    0 40px 80px -28px rgba(79, 70, 229, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.qa-dash-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 12px;
}
.qa-dash-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f87171;
}
.qa-dash-bar i:nth-child(2) {
  background: #fbbf24;
}
.qa-dash-bar i:nth-child(3) {
  margin-right: 8px;
  background: #34d399;
}
.qa-dash-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 20px 8px;
}
.qa-ring {
  display: flex;
  align-items: center;
  gap: 14px;
}
.qa-ring svg {
  width: 84px;
  height: 84px;
  rotate: -90deg;
}
.qa-ring circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 11;
}
.qa-ring .qa-ring-val {
  stroke: #818cf8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s;
}
.qa-dash-wrap.is-in .qa-ring-val,
.ag-main:not(.ec-motion) .qa-ring-val {
  stroke-dashoffset: 47;
}
.qa-ring strong {
  display: block;
  color: #fff;
  font-size: 15px;
}
.qa-ring small {
  color: #94a3b8;
  font-size: 12px;
}
.qa-counts {
  display: grid;
  gap: 6px;
}
.qa-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 600;
}
.qa-count--pass svg {
  color: var(--qa-pass);
}
.qa-count--fail svg {
  color: var(--qa-fail);
}
.qa-count--run svg {
  color: var(--qa-run);
}
.qa-runs {
  display: grid;
  gap: 6px;
  padding: 12px 16px 18px !important;
}
.qa-run {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font: 500 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.qa-run b {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  font: 700 11px/1 var(--font-secondary, Inter, sans-serif);
}
.qa-run-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.qa-run--pass .qa-run-dot {
  background: var(--qa-pass);
}
.qa-run--pass b {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}
.qa-run--fail .qa-run-dot {
  background: var(--qa-fail);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}
.qa-run--fail b {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}
.qa-run--run .qa-run-dot {
  background: var(--qa-run);
  animation: qaPulse 1.2s ease-in-out infinite;
}
.qa-run--run b {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}
.ec-motion .qa-run {
  animation: qaRow 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(0.6s + var(--d, 0ms));
}
.qa-float {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ag-ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  animation: agBob 5s ease-in-out infinite;
}
.qa-float--bug {
  left: -34px;
  bottom: 14px;
  align-items: flex-start;
  animation-delay: -1.5s;
}
.qa-float--bug > svg {
  padding: 6px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fee2e2;
  color: var(--qa-fail);
}
.qa-float--bug strong {
  display: block;
  font-size: 13.5px;
}
.qa-float--bug small {
  color: var(--ag-muted);
  font-size: 11.5px;
  font-weight: 500;
}
.qa-float--api {
  right: -26px;
  top: 6px;
  animation-delay: -3s;
}
.qa-float--api svg {
  color: var(--ag-indigo);
}
.qa-float--api b {
  color: #059669;
}
.qa-float--devices {
  right: -14px;
  bottom: 0;
  gap: 6px;
  color: var(--ag-indigo);
}

/* ── Consultation steps ──────────────────────────────── */
.qa-consult-steps {
  display: grid;
  gap: 12px;
  margin-top: 28px !important;
}
.qa-consult-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #e2e8f0;
  font-size: 15.5px;
  font-weight: 600;
}
.qa-consult-steps span {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ag-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(129, 140, 248, 0.14);
}

/* ── Why QA ──────────────────────────────────────────── */
.qa-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.qa-why:last-child {
  grid-column: span 2;
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  border-color: #dcdcfb;
}

/* ── Services tabs ───────────────────────────────────── */
.qa-tabs {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.qa-tablist {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--ag-line);
  border-radius: 22px;
  background: var(--ag-soft);
}
.qa-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #334155;
  font: 600 14.5px/1.3 var(--font-secondary, Inter, sans-serif);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.qa-tab svg {
  flex: none;
  color: var(--ag-indigo);
}
.qa-tab:hover {
  background: #fff;
  color: var(--ag-indigo);
}
.qa-tab[aria-selected="true"] {
  border-color: #dcdffb;
  background: #fff;
  color: var(--ag-ink);
  box-shadow: 0 10px 24px -14px rgba(79, 70, 229, 0.5);
}
.qa-tab[aria-selected="true"] svg {
  padding: 4px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ag-grad);
  color: #fff;
}
.qa-tab:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.45);
  outline-offset: 2px;
}
.qa-panel {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--ag-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--ag-shadow);
  animation: qaPanel 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.qa-panel[hidden] {
  display: none;
}
.qa-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.qa-panel-head small {
  color: var(--ag-indigo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.qa-panel-head h3 {
  margin-top: 4px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.qa-panel-intro {
  margin-top: 18px !important;
  color: #334155;
  font-size: 16.5px;
  line-height: 1.7;
}
.qa-panel-label {
  margin-top: 22px !important;
  color: var(--ag-ink);
  font-size: 14px;
  font-weight: 700;
}
.qa-panel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px !important;
}
.qa-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--ag-line);
  border-radius: 12px;
  background: var(--ag-soft);
  color: #1e293b;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  animation: qaRow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.qa-panel-list svg {
  flex: none;
  margin-top: 2px;
  color: var(--qa-pass);
}
.qa-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px !important;
  padding: 14px 16px;
  border: 1px solid #dfe3fb;
  border-radius: 14px;
  background: #f5f6ff;
  color: #3f4a66;
  font-size: 14px;
  line-height: 1.6;
}
.qa-note svg {
  flex: none;
  margin-top: 2px;
  color: var(--ag-indigo);
}
.qa-note--center {
  justify-content: center;
  max-width: 760px;
  margin: 28px auto 0 !important;
}

/* ── Dark card grids (software types, why choose) ────── */
.qa-software-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.qa-choose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.qa-soft-card {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ag-radius);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s,
    background 0.3s;
}
.qa-soft-card:hover {
  border-color: rgba(165, 180, 252, 0.5);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-6px);
}
.qa-soft-card h3 {
  margin-top: 18px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}
.qa-soft-card p {
  margin-top: 10px;
  color: #b4bfd6;
  font-size: 14.5px;
  line-height: 1.65;
}
.qa-soft-ico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(129, 140, 248, 0.16);
  color: #c7d2fe;
  transition:
    background 0.3s,
    color 0.3s;
}
.qa-soft-card:hover .qa-soft-ico {
  background: var(--ag-grad);
  color: #fff;
}
.qa-soft-card--lead {
  grid-column: span 2;
  border-color: rgba(165, 180, 252, 0.4);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(124, 58, 237, 0.12));
}

/* ── CI/CD pipeline ──────────────────────────────────── */
.qa-pipe {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 26px !important;
  padding: 28px 18px 22px !important;
  border: 1px solid var(--ag-line);
  border-radius: 24px;
  background: #fff;
}
.qa-pipe::before {
  content: "";
  position: absolute;
  left: calc(18px + (100% - 36px) / 14);
  right: calc(18px + (100% - 36px) / 14);
  top: 54px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #c7d2fe, #a78bfa, #7dd3fc);
}
.qa-pipe li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.qa-pipe-node {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--ag-line);
  color: var(--ag-indigo);
  transition:
    background 0.5s ease var(--d, 0ms),
    color 0.5s ease var(--d, 0ms),
    border-color 0.5s ease var(--d, 0ms),
    box-shadow 0.5s ease var(--d, 0ms);
}
.qa-pipe.is-in .qa-pipe-node,
.ag-main:not(.ec-motion) .qa-pipe-node {
  border-color: transparent;
  background: var(--ag-grad);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 0.6);
}
.qa-pipe li:nth-child(3) .qa-pipe-node,
.qa-pipe li:nth-child(5) .qa-pipe-node,
.qa-pipe li:nth-child(6) .qa-pipe-node {
  position: relative;
}
.qa-pipe li:nth-child(3) .qa-pipe-node::after,
.qa-pipe li:nth-child(5) .qa-pipe-node::after,
.qa-pipe li:nth-child(6) .qa-pipe-node::after {
  content: "✓";
  position: absolute;
  right: -7px;
  top: -7px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--qa-pass);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.qa-pipe small {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}
.qa-pipe-packet {
  position: absolute;
  top: 49px;
  left: calc(18px + (100% - 36px) / 14);
  z-index: 2;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(79, 70, 229, 0.35),
    0 0 18px #818cf8;
  opacity: 0;
}
.qa-pipe.is-in .qa-pipe-packet {
  animation: qaPacket 5s 1.4s linear infinite;
}
.qa-ci-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
}
.qa-mini-title {
  margin: 0 0 14px !important;
  color: var(--ag-ink);
  font: 700 17px/1.35 var(--font-primary, sans-serif);
}
.qa-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.qa-checks li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #334155;
  font-size: 14.5px;
  line-height: 1.45;
}
.qa-checks svg {
  flex: none;
  margin-top: 2px;
  color: var(--qa-pass);
}
.qa-ci-tools {
  display: grid;
  align-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #0b1026, #1e1b4b);
  border-color: transparent;
  color: #cbd5e1;
}
.ag-card.qa-ci-tools p {
  margin: 0;
  color: #cbd5e1;
  font-size: 15.5px;
  line-height: 1.7;
}
.qa-ci-tools svg {
  color: #a5b4fc;
}
.qa-ci-tools b {
  color: #fff;
}

/* ── Process steps (4 × 2 with connector) ────────────── */
.qa-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: none;
}
.qa-step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  background: #fff;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s,
    border-color 0.35s;
}
.qa-step::after {
  content: "";
  position: absolute;
  right: -19px;
  top: 46px;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, #c7d2fe, #a78bfa);
}
.qa-step:nth-child(4n)::after,
.qa-step:last-child::after {
  display: none;
}
.qa-step:hover {
  border-color: #d6dafc;
  box-shadow: var(--ag-shadow);
  transform: translateY(-6px);
}
.qa-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qa-step-top b {
  color: #c7cbe6;
  font: 800 13px/1 var(--font-secondary, sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.qa-step-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ag-grad);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.7);
}
.qa-step h3 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 700;
}
.qa-step p {
  margin-top: 8px;
  color: var(--ag-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ── Industries ──────────────────────────────────────── */
.qa-lead-line {
  margin: -20px 0 22px !important;
  color: var(--ag-muted);
  font-size: 15.5px;
}
.qa-industries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.qa-industries li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--ag-line);
  border-radius: 16px;
  background: #fff;
  color: #1e293b;
  font-size: 15px;
  font-weight: 600;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
.qa-industries svg {
  flex: none;
  padding: 7px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #eef0ff;
  color: var(--ag-indigo);
}
.qa-industries li:hover {
  border-color: #c7cdfb;
  box-shadow: var(--ag-shadow);
  transform: translateY(-3px);
}

/* ── Engagement models ───────────────────────────────── */
.qa-engage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.qa-engage-grid .ag-card {
  padding: 24px;
}
.qa-engage-grid h3 {
  font-size: 17.5px;
}

/* ── Cost factors ────────────────────────────────────── */
.qa-cost {
  align-items: start;
}
.qa-callout {
  display: flex;
  gap: 14px;
  margin: 26px 0 28px;
  padding: 18px;
  border: 1px solid #fde68a;
  border-radius: 18px;
  background: #fffbeb;
}
.qa-callout svg {
  flex: none;
  color: #d97706;
}
.qa-callout p {
  color: #78350f;
  font-size: 15px;
  line-height: 1.65;
}
.qa-factors ol {
  display: grid;
  gap: 8px;
}
.qa-factors li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ag-soft);
  color: #1e293b;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}
.qa-factors li:hover {
  background: #eef0ff;
}
.qa-factors li span {
  flex: none;
  color: var(--ag-indigo);
  font: 800 13px/1 var(--font-secondary, sans-serif);
}

/* ── Final CTA ───────────────────────────────────────── */
.qa-final-box {
  max-width: 900px;
  text-align: center;
}
.qa-final-box h2 {
  margin: 18px auto 0;
}
.qa-final-box .ag-p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.qa-final-box .ag-actions {
  justify-content: center;
}
.qa-final-ico {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--ag-grad);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(129, 140, 248, 0.12);
  animation: agBob 5s ease-in-out infinite;
}
.qa-ghost-dark {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  font: 700 15px/1 var(--font-secondary, Inter, sans-serif);
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
}
.qa-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}
.qa-contact-line {
  max-width: 640px;
  margin: 26px auto 0 !important;
  color: #94a3b8;
  font-size: 14.5px;
  line-height: 1.6;
}
.qa-related {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.qa-related span {
  align-self: center;
  margin-right: 4px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}
.qa-related a {
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.qa-related a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ── Motion ──────────────────────────────────────────── */
@keyframes qaPulse {
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.2);
  }
}
@keyframes qaRow {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
}
@keyframes qaPanel {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes qaPacket {
  0% {
    left: calc(18px + (100% - 36px) / 14);
    opacity: 0;
  }
  6%,
  90% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 18px - (100% - 36px) / 14);
    opacity: 0;
  }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .qa-why-grid,
  .qa-choose-grid,
  .qa-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qa-why:last-child,
  .qa-soft-card--lead {
    grid-column: span 2;
  }
  .qa-step:nth-child(2n)::after {
    display: none;
  }
  .qa-engage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .qa-industries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .qa-software-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .qa-overview-grid,
  .qa-tabs,
  .qa-ci-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .qa-tablist {
    position: sticky;
    top: 58px;
    z-index: 5;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .qa-tablist::-webkit-scrollbar {
    display: none;
  }
  .qa-tab {
    flex: none;
    width: auto;
    white-space: nowrap;
  }
  .qa-pipe {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 22px;
  }
  .qa-pipe::before,
  .qa-pipe-packet {
    display: none;
  }
  .qa-dash-wrap {
    padding-bottom: 70px;
  }
  .qa-float--bug {
    left: 0;
  }
  .qa-float--api {
    right: 0;
  }
  .qa-float--devices {
    right: 0;
  }
}

@media (max-width: 640px) {
  .qa-hero h1 {
    font-size: 2.2rem;
  }
  .qa-why-grid,
  .qa-choose-grid,
  .qa-steps,
  .qa-software-grid,
  .qa-engage-grid,
  .qa-industries,
  .qa-panel-list,
  .qa-highlights,
  .qa-checks {
    grid-template-columns: minmax(0, 1fr);
  }
  .qa-why:last-child,
  .qa-soft-card--lead {
    grid-column: auto;
  }
  .qa-step::after {
    display: none;
  }
  .qa-pipe {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 22px 12px !important;
  }
  .qa-pipe small {
    font-size: 12px;
  }
  .qa-dash-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .qa-counts {
    display: flex;
    flex-wrap: wrap;
  }
  .qa-run {
    font-size: 12px;
  }
  .qa-float--devices {
    display: none;
  }
  .qa-float--bug {
    bottom: 10px;
  }
  .qa-final-box .ag-actions a {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qa-panel,
  .qa-panel-list li,
  .qa-run,
  .qa-pipe-packet {
    animation: none !important;
  }
  .qa-ring-val {
    stroke-dashoffset: 47 !important;
  }
}
