/* ═══════════════════════════════════════════════════════════════════
   ADVANCED QUANT — section-scoped styles
   Loaded after style.css on the five /advanced-quant*.html pages only.
   Uses the site design tokens; defines new values only where the
   tokens don't already cover a need.
   ═══════════════════════════════════════════════════════════════════ */

/* Accent usage note:
   --orange (#F97316) is 2.8:1 on white — below AA even for large text.
   On light backgrounds accent TEXT uses --orange-dark (3.56:1, AA large);
   --orange is reserved for fills, graphics, and text on the navy bands
   (6:1, AA normal). */

.aq {
  --aq-accent-on-light: var(--orange-dark);
  --aq-accent-on-dark:  var(--orange);
  --aq-tint:            var(--orange-light);
  --aq-rule:            var(--gray-light);
  --aq-rule-dark:       rgba(255,255,255,.14);
  --aq-body-on-dark:    rgba(255,255,255,.75);
  --aq-measure:         68ch;
}

/* ─── Inline content links ───────────────────────────────
   style.css sets `a { color: inherit; text-decoration: none }` site-wide, so
   links inside body copy would otherwise be invisible. No underline by
   request: they are distinguished by weight AND colour (two signals, so this
   still satisfies WCAG 1.4.1), and change colour on hover and focus. */
.aq-lead a,
.aq-panel a,
.aq-callout a,
.aq-fignote a,
.aq-hero-promise a,
.aq-qlist a,
.aq-dl a,
.aq-case a,
.aq-faq p a,
.aq-typing-result a,
.aq-stat figcaption a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease;
}
.aq-lead a:hover,
.aq-panel a:hover,
.aq-callout a:hover,
.aq-fignote a:hover,
.aq-hero-promise a:hover,
.aq-qlist a:hover,
.aq-dl a:hover,
.aq-case a:hover,
.aq-faq p a:hover,
.aq-typing-result a:hover,
.aq-stat figcaption a:hover { color: var(--orange-dark); }

.aq-section.is-dark .aq-lead a { color: var(--orange); }
.aq-section.is-dark .aq-lead a:hover { color: var(--white); }

/* ─── Anchor targets clear the fixed 80px nav ────────────── */
.aq [id] { scroll-margin-top: 100px; }

/* ─── Layout primitives ──────────────────────────────────── */
.aq-section { padding: 88px 24px; }
.aq-section.is-tight { padding: 64px 24px; }
.aq-section.is-alt   { background: var(--off-white); }
.aq-section.is-white { background: var(--white); }
.aq-section.is-dark  { background: var(--navy-deep); color: var(--white); }
.aq-section.is-dark h2,
.aq-section.is-dark h3,
.aq-section.is-dark strong { color: var(--white); }

.aq-wrap { max-width: 1200px; margin: 0 auto; }

.aq-h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  color: var(--navy-deep);
  letter-spacing: -.01em;
}
.aq-section.is-dark .aq-h2 { color: var(--white); }

.aq-h3 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--navy-deep);
}
.aq-section.is-dark .aq-h3 { color: var(--white); }

.aq-lead {
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--gray-dark);
  max-width: var(--aq-measure);
}
.aq-section.is-dark .aq-lead { color: var(--aq-body-on-dark); }

.aq-intro { display: flex; flex-direction: column; gap: 14px; max-width: 800px; }

/* Split: sidebar + content */
.aq-split {
  display: grid;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.aq-split.is-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aq-split.is-centered { align-items: center; }
.aq-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ─── Breadcrumb ─────────────────────────────────────────── */
.aq-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: .85rem;
  color: var(--gray-dark);
}
.aq-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.aq-breadcrumb a {
  display: inline-block;
  padding: 10px 0;
  color: var(--gray-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease;
}
.aq-breadcrumb a:hover { color: var(--orange-dark); }
.aq-breadcrumb [aria-current="page"] { color: var(--orange-dark); font-weight: 700; }
.aq-breadcrumb .aq-crumb-sep { color: var(--gray); }

/* ─── Hero ───────────────────────────────────────────────── */
.aq-hero { padding: 40px 24px 72px; }
.aq-hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 56px;
  align-items: center;
}
.aq-hero-copy { display: flex; flex-direction: column; gap: 20px; }
.aq-hero h1 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--navy-deep);
}
.aq-hero .aq-hero-sub {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}
.aq-hero-promise {
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--gray-dark);
  max-width: var(--aq-measure);
}
.aq-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

/* Secondary button on light backgrounds (site .btn-outline is for dark) */
.btn-outline-dark {
  background: transparent;
  color: var(--navy-deep);
  border: 2px solid var(--navy-deep);
}
.btn-outline-dark:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}
.aq .btn { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }

/* ─── Method finder (the hub's memorable piece) ──────────── */
.aq-finder {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}
.aq-finder-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.aq-finder-head h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--white);
}
.aq-finder-hint { font-size: .8rem; color: rgba(255,255,255,.6); white-space: nowrap; }

.aq-goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aq-goal {
  min-height: 62px;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .88rem;
  line-height: 1.35;
  cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,.88);
  border: 1.5px solid rgba(255,255,255,.22);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.aq-goal:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--orange);
  color: var(--white);
}
.aq-goal[aria-checked="true"]:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}
.aq-goal[aria-checked="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy-deep);
  font-weight: 600;
}

.aq-rec {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}
.aq-rec-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-dark);
}
.aq-rec-method {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-deep);
}
.aq-rec-why { font-size: .96rem; line-height: 1.55; color: var(--gray-dark); }
.aq-rec-link {
  font-weight: 700;
  font-size: .94rem;
  color: var(--navy-deep);
  text-decoration: none;
  align-self: flex-start;
  margin-top: 2px;
}
.aq-rec-link { transition: color .18s ease; }
.aq-rec-link:hover { color: var(--orange-dark); }

/* The one orchestrated motion moment */
.aq-rec.is-updating { animation: aq-rec-in .28s ease; }
@keyframes aq-rec-in {
  from { opacity: .35; transform: translateY(6px); }
  to   { opacity: 1;   transform: translateY(0); }
}

.aq-noscript-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.aq-noscript-list li { font-size: .9rem; line-height: 1.5; color: var(--white); }
.aq-noscript-list strong { color: var(--orange); }

/* ─── Hub: numbered method list ──────────────────────────── */
.aq-methods { margin: 0; padding: 0; list-style: none; }
.aq-methods > li { border-top: 1px solid var(--aq-rule); }
.aq-methods > li:last-child { border-bottom: 1px solid var(--aq-rule); }
.aq-method-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 250px) minmax(0, 1fr) minmax(0, 270px);
  gap: 28px;
  padding: 28px 8px;
  align-items: start;
  color: var(--text);
  transition: background .18s ease;
}
.aq-method-num {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--orange-dark);
  transition: color .18s ease;
}
.aq-method-name {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy-deep);
  text-decoration: none;
  transition: color .18s ease;
}
.aq-method-desc { font-size: 1rem; line-height: 1.55; color: var(--gray-dark); }

.aq-method-row:hover,
.aq-method-row:focus-visible { background: var(--aq-tint); }
.aq-method-row:hover .aq-method-name,
.aq-method-row:focus-visible .aq-method-name { color: var(--orange-dark); }
.aq-method-row:hover .aq-method-desc,
.aq-method-row:focus-visible .aq-method-desc { color: var(--text); }
.aq-method-row:hover .aq-method-num,
.aq-method-row:focus-visible .aq-method-num { color: var(--navy-deep); }
.aq-method-qs { margin: 0; padding-left: 18px; list-style: disc; font-size: .88rem; line-height: 1.7; color: var(--gray-dark); }

/* ─── Hub: 5-step sequence ───────────────────────────────── */
.aq-sequence {
  margin: 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.aq-sequence li { border-top: 4px solid var(--navy-deep); }

/* Steps 1–4 link to their method page; step 5 has no page, so it is the
   same shape without the link. */
.aq-seq-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 12px 14px 0;
  color: var(--text);
  transition: background .18s ease;
}
a.aq-seq-body { padding-left: 12px; margin-left: -12px; border-radius: 0 0 var(--radius) var(--radius); }

.aq-seq-num {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  color: var(--orange-dark);
  transition: color .18s ease;
}
.aq-seq-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-deep);
  transition: color .18s ease, gap .18s ease;
}
.aq-seq-desc { font-size: .9rem; line-height: 1.5; color: var(--gray-dark); transition: color .18s ease; }

a.aq-seq-body:hover,
a.aq-seq-body:focus-visible { background: var(--aq-tint); }
a.aq-seq-body:hover .aq-seq-title,
a.aq-seq-body:focus-visible .aq-seq-title { color: var(--orange-dark); }
a.aq-seq-body:hover .aq-seq-num,
a.aq-seq-body:focus-visible .aq-seq-num { color: var(--navy-deep); }
a.aq-seq-body:hover .aq-seq-desc,
a.aq-seq-body:focus-visible .aq-seq-desc { color: var(--text); }
a.aq-seq-body:hover .aq-seq-title { gap: 9px; }

/* ─── One vendor, one team (hub callout + method-page note) ── */
.aq-oneteam {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--aq-tint);
  border: 1px solid #FBD7B4;
  border-left: 4px solid var(--orange-dark);
  border-radius: var(--radius);
}
.aq-oneteam > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
}
.aq-oneteam > div + div { border-left: 1px solid #FBD7B4; }
.aq-oneteam p { font-size: .98rem; line-height: 1.6; color: var(--text); max-width: var(--aq-measure); }

.aq-oneteam-note {
  font-size: .98rem;
  line-height: 1.6;
  color: var(--aq-body-on-dark);
  max-width: var(--aq-measure);
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}
.aq-oneteam-note strong { color: var(--white); }

/* ─── Prose differentiators (dark band) ──────────────────── */
.aq-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.aq-why > div { display: flex; flex-direction: column; gap: 8px; }
.aq-why p { font-size: .98rem; line-height: 1.6; color: var(--aq-body-on-dark); }

/* ─── Stats ──────────────────────────────────────────────── */
.aq-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.aq-stat { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.aq-stat-val {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--orange-dark);
}
.aq-stat figcaption { font-size: 1rem; line-height: 1.55; color: var(--gray-dark); }

/* ─── Questions list / use-it-when panels ────────────────── */
.aq-qlist {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--gray-dark);
}
.aq-qlist li::marker { color: var(--orange-dark); }

.aq-panels { display: flex; flex-direction: column; gap: 22px; }
.aq-panel {
  padding: 24px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aq-panel.is-tint { background: var(--aq-tint); border: 1px solid #FBD7B4; }
.aq-panel.is-plain { border: 1.5px solid var(--aq-rule); }
.aq-panel p { font-size: .98rem; line-height: 1.55; color: var(--text); }

/* ─── Technique definition lists ─────────────────────────── */
.aq-dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.aq-dl > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--aq-rule);
  padding-top: 13px;
}
.aq-dl dt { font-weight: 600; font-size: 1rem; color: var(--navy-deep); }
.aq-dl dd { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--gray-dark); }

/* Horizontal variant (hub "what we prioritize with it") */
.aq-dl-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px;
}
.aq-dl-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 3px solid var(--navy-deep);
  padding-top: 16px;
}
.aq-dl-grid dt { font-weight: 700; font-size: 1.05rem; color: var(--navy-deep); }
.aq-dl-grid dd { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--gray-dark); }

/* ─── How we run it: vertical numbered sequence ──────────── */
.aq-steps { margin: 0; padding: 0; list-style: none; }
.aq-steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--aq-rule-dark);
}
.aq-steps li:last-child { border-bottom: 1px solid var(--aq-rule-dark); }
.aq-step-num {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--orange);
}
.aq-steps strong { display: block; font-size: 1.08rem; margin-bottom: 3px; }
.aq-steps span:last-child { font-size: .96rem; line-height: 1.5; color: var(--aq-body-on-dark); }

/* Horizontal variant (Qualt's six steps) */
.aq-steps-row {
  margin: 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}
.aq-steps-row li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 3px solid var(--orange);
  padding-top: 16px;
}
.aq-steps-row .aq-step-num { font-size: 1.5rem; }
.aq-steps-row strong { font-size: .98rem; }
.aq-steps-row span:last-child { font-size: .86rem; line-height: 1.5; color: var(--aq-body-on-dark); }

/* ─── Figures ────────────────────────────────────────────── */
.aq-figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--aq-rule);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.aq-figure svg { width: 100%; height: auto; display: block; }
/* Each chart ships a desktop and a phone drawing; show one. The phone
   version is drawn on a 320-unit canvas so its text stays legible. */
.aq-figure svg.aq-chart-narrow { display: none; overflow: visible; }

/* The simulator's desktop drawing is 760 units wide, so it needs the phone
   layout sooner than the other charts (e.g. phones held in landscape). */
@media (max-width: 760px) {
  .aq-figure svg.aq-chart-wide[aria-labelledby="simT simD"] { display: none; }
  .aq-figure svg.aq-chart-narrow[aria-labelledby="simTm simDm"] {
    display: block;
    max-width: 440px;
    margin: 0 auto;
  }
}
.aq-figure > * { min-width: 0; }
.aq-figcap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: .85rem;
  color: var(--gray-dark);
}
.aq-figcap strong { font-size: 1rem; color: var(--navy-deep); }
.aq-illustrative {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-dark);
  white-space: nowrap;
}
.aq-fignote { font-size: .88rem; line-height: 1.5; color: var(--gray-dark); }

/* Screen-reader-only text summary for each figure */
.aq-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;
}

/* ─── Qualt: mock AI interview ───────────────────────────── */
.aq-chat { display: flex; flex-direction: column; gap: 12px; }
.aq-bubble {
  max-width: 82%;
  border-radius: 14px;
  padding: 12px 15px;
  font-size: .94rem;
  line-height: 1.5;
}
.aq-bubble.is-ai { align-self: flex-start; background: var(--gray-light); color: var(--text); }
.aq-bubble.is-respondent { align-self: flex-end; background: var(--navy-deep); color: var(--white); }
.aq-embedded-q {
  align-self: flex-start;
  width: 86%;
  border: 1.5px solid var(--orange-dark);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aq-embedded-q > span:first-child { font-size: .9rem; font-weight: 600; color: var(--navy-deep); }
.aq-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  font-size: .8rem;
  text-align: center;
}
.aq-scale span {
  border: 1px solid var(--aq-rule);
  border-radius: 6px;
  padding: 6px 2px;
  color: var(--gray-dark);
}
.aq-scale span.is-picked {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  font-weight: 600;
}

/* ─── Quotes beside a chart ──────────────────────────────── */
.aq-figure-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 230px);
  gap: 28px;
}
.aq-quotes {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 24px;
  border-left: 1px solid var(--aq-rule);
}
.aq-quote {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}
.aq-quote .aq-quote-src {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  font-size: .8rem;
  color: var(--gray-dark);
  margin-top: 6px;
}

/* ─── Segmentation: three-part flow (Segmentation → Profiling → Personas) ──
   Each step is a link. The card, the underlined title and the "Jump to
   section" cue make that clear before the pointer arrives; hover and focus
   then change colour as well. */
.aq-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.aq-flow-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 18px;
  background: var(--white);
  border: 1px solid var(--aq-rule);
  border-top: 4px solid var(--navy-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: background .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}
.aq-flow-step:nth-of-type(2) { border-top-color: var(--orange-dark); }
.aq-flow-step:nth-of-type(3) { border-top-color: var(--orange); }

.aq-flow-step-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--navy-deep);
  text-decoration: none;
  transition: color .18s ease;
}
.aq-flow-step-desc { font-size: .95rem; line-height: 1.5; color: var(--gray-dark); }

.aq-flow-step-cue {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--orange-dark);
  transition: color .18s ease, gap .18s ease;
}
.aq-cue-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aq-flow-step:hover,
.aq-flow-step:focus-visible {
  background: var(--aq-tint);
  border-color: var(--orange-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.aq-flow-step:hover .aq-flow-step-title,
.aq-flow-step:focus-visible .aq-flow-step-title { color: var(--orange-dark); }
.aq-flow-step:hover .aq-flow-step-desc,
.aq-flow-step:focus-visible .aq-flow-step-desc { color: var(--text); }
.aq-flow-step:hover .aq-flow-step-cue { gap: 10px; }

/* Connector between steps */
.aq-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  color: var(--orange-dark);
}
.aq-flow-arrow svg {
  width: 40px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Tables (solution comparison, heat grid, MaxDiff task) ── */
.aq-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.aq-table caption {
  text-align: left;
  font-size: .85rem;
  color: var(--gray-dark);
  padding-bottom: 10px;
}
.aq-table thead th {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 2px solid var(--navy-deep);
  color: var(--navy-deep);
  font-weight: 600;
}
.aq-table tbody td,
.aq-table tbody th {
  padding: 11px 8px;
  border-bottom: 1px solid var(--aq-rule);
  text-align: left;
  font-weight: 400;
  color: var(--text);
}
.aq-table tr.is-selected { background: var(--aq-tint); font-weight: 600; }

/* Heat grid */
.aq-heat { width: 100%; border-collapse: collapse; }
.aq-heat th[scope="col"] {
  padding: 8px 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy-deep);
  vertical-align: bottom;
}
.aq-heat th[scope="row"] {
  text-align: left;
  padding: 6px 10px 6px 0;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.aq-heat td { padding: 0; border: 2px solid var(--white); }
.aq-heat-cell {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  padding: 0 4px;
}
.aq-heat-much-higher { background: var(--orange-dark); color: var(--white); }
.aq-heat-higher      { background: #FDBA74; color: var(--navy-deep); }
.aq-heat-average     { background: var(--white); color: var(--text); box-shadow: inset 0 0 0 1px var(--aq-rule); }
.aq-heat-lower       { background: var(--gray-light); color: var(--text); }
.aq-heat-much-lower  { background: #b9c2d0; color: var(--navy-deep); }

.aq-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; max-width: 100%; }
.aq-scroll-hint { display: none; font-size: .8rem; color: var(--gray-dark); }
.aq-heat th[scope="row"],
.aq-heat thead td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--white);
}

/* ─── Persona card ───────────────────────────────────────── */
.aq-persona {
  background: var(--white);
  border: 1px solid var(--aq-rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  box-shadow: var(--shadow-sm);
}
.aq-persona-side {
  background: var(--navy-deep);
  color: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aq-persona-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-deep);
}
.aq-persona-name {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}
.aq-persona-meta { font-size: .9rem; line-height: 1.5; color: var(--aq-body-on-dark); }
.aq-persona-side .aq-quote { color: var(--white); margin-top: 6px; }
.aq-persona-body {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}
.aq-persona-body > div { display: flex; flex-direction: column; gap: 7px; }
.aq-persona-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy-deep); }
.aq-persona-body ul { margin: 0; padding-left: 17px; list-style: disc; font-size: .88rem; line-height: 1.6; color: var(--gray-dark); }
.aq-persona-body p { font-size: .88rem; line-height: 1.6; color: var(--gray-dark); }
.aq-persona-wide {
  grid-column: 1 / -1;
  border-top: 1px solid var(--aq-rule);
  padding-top: 15px;
}

/* ─── Typing tool sample ─────────────────────────────────── */
.aq-typing {
  background: var(--aq-tint);
  border: 1px solid #FBD7B4;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aq-typing-step { font-size: .85rem; color: var(--gray-dark); }
.aq-typing-q { font-size: 1.05rem; line-height: 1.4; color: var(--navy-deep); }
.aq-typing .aq-scale span { background: var(--white); border-color: transparent; font-size: .78rem; }
.aq-typing .aq-scale span.is-picked { background: var(--orange-dark); color: var(--white); }
.aq-typing-result {
  border-top: 1px solid #FBD7B4;
  padding-top: 11px;
  font-size: .9rem;
  color: var(--text);
}

/* ─── MaxDiff mock question ──────────────────────────────── */
.aq-mock-q { font-size: 1.05rem; font-weight: 600; color: var(--navy-deep); }
.aq-radio-dot {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray);
  box-sizing: border-box;
}
.aq-radio-dot.is-most { border: 6px solid var(--orange-dark); }
.aq-radio-dot.is-least { border: 6px solid var(--navy-deep); }
.aq-table td.is-dot { text-align: center; }
.aq-table tr.is-most { background: var(--aq-tint); }
.aq-table tr.is-most td:nth-child(2) { font-weight: 600; }

/* ─── Conjoint mock choice task ──────────────────────────── */
.aq-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aq-card {
  border: 1.5px solid var(--aq-rule);
  border-radius: var(--radius);
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .85rem;
  color: var(--gray-dark);
}
.aq-card strong { font-size: 1.2rem; color: var(--navy-deep); }
.aq-card.is-chosen { border: 2px solid var(--orange-dark); background: var(--aq-tint); }

/* ─── Case example ───────────────────────────────────────── */
.aq-case {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 260px);
  gap: 36px;
  align-items: start;
}
.aq-case > div { display: flex; flex-direction: column; gap: 8px; }
.aq-case h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-deep); }
.aq-case p { font-size: .96rem; line-height: 1.6; color: var(--gray-dark); }
.aq-case-metric {
  padding-left: 26px;
  border-left: 3px solid var(--orange-dark);
  gap: 6px !important;
}
.aq-case-metric span:first-child {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--orange-dark);
}
.aq-case-metric span:last-child { font-size: .92rem; line-height: 1.45; color: var(--gray-dark); }
.aq-client { font-size: .85rem; color: var(--gray-dark); }

/* ─── FAQ + related methods ──────────────────────────────── */
.aq-faq { display: flex; flex-direction: column; }
.aq-faq details { border-top: 1px solid var(--aq-rule); padding: 18px 0; }
.aq-faq details:last-of-type { border-bottom: 1px solid var(--aq-rule); }
.aq-faq summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.aq-faq summary::-webkit-details-marker { display: none; }
.aq-faq summary { transition: color .18s ease; }
.aq-faq summary:hover { color: var(--orange-dark); }
.aq-faq summary::after { transition: transform .2s ease, border-color .18s ease; }
.aq-faq summary:hover::after { border-color: var(--navy-deep); }
.aq-faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--orange-dark);
  border-bottom: 2px solid var(--orange-dark);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.aq-faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.aq-faq details p {
  margin-top: 11px;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--gray-dark);
  max-width: var(--aq-measure);
}

.aq-related { display: flex; flex-direction: column; gap: 12px; }
.aq-related h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-deep); }
.aq-related-item { display: flex; flex-direction: column; gap: 3px; }
.aq-related-item a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-deep);
  text-decoration: none;
  align-self: flex-start;
  transition: color .18s ease, gap .18s ease;
}
.aq-related-item a:hover { color: var(--orange-dark); gap: 9px; }
.aq-related-item span { font-size: .88rem; line-height: 1.45; color: var(--gray-dark); }

.aq-callout {
  padding: 20px;
  background: var(--aq-tint);
  border: 1px solid #FBD7B4;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aq-callout h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-deep); }
.aq-callout p { font-size: .94rem; line-height: 1.55; color: var(--text); }

/* ─── Conjoint Lab band (shown only when the Lab is live) ── */
.aq-lab-band {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 40px;
  background: var(--aq-tint);
  border: 1px solid #FBD7B4;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ─── Contact / CTA band with embedded Mailchimp form ────── */
.aq-contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}
.aq-contact.is-dark { background: var(--navy-deep); color: var(--white); }
.aq-contact.is-light { background: var(--white); border: 1px solid var(--aq-rule); }
.aq-contact h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.12;
}
.aq-contact.is-dark h2 { color: var(--white); }
.aq-contact.is-light h2 { color: var(--navy-deep); }
.aq-contact-copy { display: flex; flex-direction: column; gap: 14px; }
.aq-contact.is-dark .aq-contact-copy p { color: var(--aq-body-on-dark); }
.aq-contact.is-light .aq-contact-copy p { color: var(--gray-dark); }

.aq-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.aq-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 500; }
.aq-form .aq-field-wide { grid-column: 1 / -1; }
.aq-form input,
.aq-form textarea {
  font-family: inherit;
  font-size: 1rem;           /* 16px: below this iOS Safari zooms on focus */
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--gray);
  background: var(--white);
  color: var(--text);
  width: 100%;
}
.aq-form input { height: 46px; }
.aq-form input:hover,
.aq-form textarea:hover { border-color: var(--orange-dark); }
.aq-form input:focus,
.aq-form textarea:focus { border-color: var(--orange-dark); outline-offset: 1px; }
.aq-form input,
.aq-form textarea { transition: border-color .18s ease; }
.aq-contact.is-dark .aq-form input,
.aq-contact.is-dark .aq-form textarea { border-color: transparent; }
.aq-form textarea { resize: vertical; min-height: 84px; }
.aq-form-submit { grid-column: 1 / -1; justify-content: center; }
.aq-form-msg {
  grid-column: 1 / -1;
  font-size: .9rem;
  line-height: 1.5;
  min-height: 1.2em;
}
.aq-contact.is-dark .aq-form-msg { color: var(--white); }
.aq-form-msg.is-error { color: #FFB4A2; }
.aq-contact.is-light .aq-form-msg.is-error { color: #B91C1C; }
.aq-form-msg.is-ok { color: var(--orange); font-weight: 600; }
.aq-contact.is-light .aq-form-msg.is-ok { color: var(--orange-dark); }
.aq-form-consent {
  grid-column: 1 / -1;
  font-size: .78rem;
  line-height: 1.5;
  /* --gray is only 2.9:1 on white; use --gray-dark so small print passes AA. */
  color: var(--gray-dark);
}
.aq-contact.is-dark .aq-form-consent { color: rgba(255,255,255,.7); }
.aq-hp { position: absolute; left: -5000px; }

/* ═══ Qualitative research page ═══════════════════════════════════════ */

/* Content-left, evidence-right split */
.aq-split.is-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }

/* Method jump grid (not a sequence, so no arrows or numbers).
   Navy tiles at rest, orange on hover/focus. Text colours are chosen for
   contrast: white/orange on navy, navy on orange (6:1 either way). */
.aq-jumpgrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.aq-jumpgrid .aq-flow-step,
.aq-jumpgrid .aq-flow-step:nth-of-type(n) {
  background: var(--navy-deep);
  border: 1px solid var(--navy-deep);
  border-top: 4px solid var(--navy-deep);
  box-shadow: var(--shadow-sm);
}
.aq-jumpgrid .aq-flow-step-title { color: var(--white); }
.aq-jumpgrid .aq-flow-step-desc  { color: rgba(255,255,255,.78); }
.aq-jumpgrid .aq-flow-step-cue   { color: var(--orange); }
.aq-jumpgrid .aq-flow-step:hover,
.aq-jumpgrid .aq-flow-step:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.aq-jumpgrid .aq-flow-step:hover .aq-flow-step-title,
.aq-jumpgrid .aq-flow-step:focus-visible .aq-flow-step-title,
.aq-jumpgrid .aq-flow-step:hover .aq-flow-step-desc,
.aq-jumpgrid .aq-flow-step:focus-visible .aq-flow-step-desc,
.aq-jumpgrid .aq-flow-step:hover .aq-flow-step-cue,
.aq-jumpgrid .aq-flow-step:focus-visible .aq-flow-step-cue { color: var(--navy-deep); }
.aq-jumpgrid .aq-flow-step:focus-visible { outline-color: var(--navy-deep); }

/* Customer verbatims inside an evidence card */
.aq-voices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--aq-rule);
}
.aq-voices > div { display: flex; flex-direction: column; gap: 10px; }
.aq-voices-head {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-dark);
}
.aq-voices .aq-quote { font-size: .92rem; }

.aq-stat-note { font-size: .82rem; color: var(--gray-dark); }

/* Topic chips */
.aq-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.aq-tags li {
  font-size: .85rem;
  padding: 6px 12px;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid var(--aq-rule);
  color: var(--text);
}
.aq-section.is-white .aq-tags li { background: var(--off-white); }

/* Evidence card (real case data) */
.aq-evidence-stack { display: flex; flex-direction: column; gap: 18px; }
.aq-evidence {
  background: var(--white);
  border: 1px solid var(--aq-rule);
  border-left: 4px solid var(--orange-dark);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.aq-evidence-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.aq-evidence-metric {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--navy-deep);
}
.aq-evidence-metric small {
  display: block;
  margin-top: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-dark);
}
.aq-evidence-client { font-weight: 700; color: var(--navy-deep); }
.aq-evidence p { font-size: .95rem; line-height: 1.6; color: var(--gray-dark); }
.aq-evidence-link {
  align-self: flex-start;
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
  transition: color .18s ease;
}
.aq-evidence-link:hover { color: var(--orange-dark); }

/* Evidence still to be supplied: impossible to miss in review */
.aq-evidence.is-todo {
  background: var(--aq-tint);
  border: 2px dashed var(--orange-dark);
  box-shadow: none;
}
.aq-evidence.is-todo p { color: var(--text); }

/* B2B / B2C pair */
.aq-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Method comparison table: rows become stacked cards on phones */
.aq-compare th[scope="row"] { font-weight: 700; color: var(--navy-deep); white-space: nowrap; }
.aq-compare td, .aq-compare th { vertical-align: top; line-height: 1.5; }

/* Mobile diary mock-up (illustrative) */
.aq-diary { align-self: center; width: 100%; max-width: 360px; margin: 0 auto; }
.aq-phone {
  background: var(--navy-deep);
  border-radius: 34px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.aq-phone-screen {
  background: var(--white);
  border-radius: 24px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aq-phone-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.aq-phone-top strong { font-size: .92rem; color: var(--navy-deep); }
.aq-phone-top span { font-size: .78rem; color: var(--gray-dark); white-space: nowrap; }
.aq-diary-prompt {
  font-size: .9rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--gray-light);
  border-radius: 12px;
  padding: 10px 12px;
}
.aq-diary-video {
  position: relative;
  height: 128px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a3558 0%, #0a1628 100%);
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
}
.aq-diary-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.aq-diary-play::before {
  content: '';
  margin-left: 4px;
  border-left: 14px solid var(--white);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.aq-diary-video span { font-size: .78rem; font-weight: 600; color: var(--white); }
.aq-diary-entry {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--text);
}
.aq-diary-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.aq-diary-photos span {
  height: 54px;
  border-radius: 8px;
  background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  color: var(--gray-dark);
}
.aq-diary .aq-scale span { font-size: .8rem; }
.aq-diary-q { font-size: .85rem; font-weight: 600; color: var(--navy-deep); }

/* ─── Next method (bottom of every page) ─────────────────── */
.aq-next { padding: 0 24px; }
.aq-next-link {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--aq-rule);
  border-left: 4px solid var(--orange-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: background .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}
.aq-next-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aq-next-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.aq-next-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-deep);
  transition: color .18s ease;
}
.aq-next-desc {
  font-size: .98rem;
  line-height: 1.55;
  color: var(--gray-dark);
  max-width: var(--aq-measure);
  transition: color .18s ease;
}
.aq-next-arrow {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  color: var(--white);
  transition: background .18s ease, transform .18s ease;
}
.aq-next-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.aq-next-link:hover,
.aq-next-link:focus-visible {
  background: var(--aq-tint);
  border-color: var(--orange-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.aq-next-link:hover .aq-next-title,
.aq-next-link:focus-visible .aq-next-title { color: var(--orange-dark); }
.aq-next-link:hover .aq-next-desc,
.aq-next-link:focus-visible .aq-next-desc { color: var(--text); }
.aq-next-link:hover .aq-next-arrow,
.aq-next-link:focus-visible .aq-next-arrow {
  background: var(--orange-dark);
  transform: translateX(4px);
}

/* ─── Focus visibility (WCAG) ────────────────────────────── */
.aq a:focus-visible,
.aq button:focus-visible,
.aq input:focus-visible,
.aq textarea:focus-visible,
.aq summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
.aq-section.is-dark a:focus-visible,
.aq-finder button:focus-visible { outline-color: var(--white); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .aq-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .aq-split,
  .aq-split.is-even,
  .aq-split.is-rev { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .aq-jumpgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aq-sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .aq-steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aq-method-row { grid-template-columns: 48px minmax(0, 1fr); gap: 16px 20px; }
  .aq-method-desc,
  .aq-method-qs { grid-column: 2; }
  .aq-case { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .aq-case-metric { grid-column: 1 / -1; }
  .aq-figure-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .aq-quotes {
    flex-direction: row;
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid var(--aq-rule);
  }
  .aq-persona { grid-template-columns: minmax(0, 1fr); }
  .aq-flow { grid-template-columns: minmax(0, 1fr); }
  .aq-flow-arrow {
    width: auto;
    height: 40px;
    transform: rotate(90deg);
  }
  .aq-contact { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 36px; }
}

@media (max-width: 768px) {
  .aq-section { padding: 56px 20px; }
  .aq-section.is-tight { padding: 44px 20px; }
  .aq-hero { padding: 24px 20px 48px; }
  .aq-breadcrumb { padding: 16px 20px 0; font-size: .8rem; }
  .aq-finder { padding: 24px; }
  .aq-goals { grid-template-columns: 1fr; }
  .aq-goal { min-height: 0; }
  .aq-stats { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .aq-why { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .aq-oneteam { grid-template-columns: minmax(0, 1fr); }
  .aq-oneteam > div + div { border-left: 0; border-top: 1px solid #FBD7B4; }
  .aq-steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aq-case { grid-template-columns: minmax(0, 1fr); }
  .aq-cards { grid-template-columns: minmax(0, 1fr); }
  .aq-persona-body { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .aq-form { grid-template-columns: minmax(0, 1fr); }
  .aq-quotes { flex-direction: column; }
  .aq-figure { padding: 18px; }
  .aq-bubble, .aq-embedded-q { max-width: 100%; width: auto; }
  .aq-lab-band { padding: 28px 24px; }
}

@media (max-width: 640px) {
  .aq-jumpgrid, .aq-pair, .aq-voices { grid-template-columns: minmax(0, 1fr); }
  .aq-compare, .aq-compare tbody, .aq-compare tr, .aq-compare td, .aq-compare th[scope="row"] { display: block; width: 100%; }
  .aq-compare thead { display: none; }
  .aq-compare tr { padding: 14px 0; border-bottom: 1px solid var(--aq-rule); }
  .aq-compare td, .aq-compare th[scope="row"] { border: 0; padding: 3px 0; white-space: normal; }
  .aq-compare td::before {
    content: attr(data-label);
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--orange-dark);
  }
  .aq-figure svg.aq-chart-wide { display: none; }
  .aq-figure svg.aq-chart-narrow { display: block; max-width: 440px; margin: 0 auto; }
  .aq-scroll-hint { display: block; }
  /* Only the heat grid is wider than a phone: fade its right edge to
     signal more content. Other tables fit and must not be faded. */
  .aq-scroll-hint + .aq-scroll-x {
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
            mask-image: linear-gradient(to right, #000 88%, transparent);
  }
  .aq-scroll-hint + .aq-scroll-x:focus-visible { -webkit-mask-image: none; mask-image: none; }
  /* Heat grid on phones: wrap the pinned row labels so the data columns
     get most of the width, and edge the pinned column as cells slide under. */
  .aq-heat th[scope="row"] {
    white-space: normal;
    min-width: 104px;
    max-width: 112px;
    line-height: 1.3;
    box-shadow: 1px 0 0 var(--aq-rule);
  }
  .aq-table-compact { font-size: .82rem; }
  .aq-table-compact thead th,
  .aq-table-compact tbody td { padding: 9px 5px; }
  .aq-figcap { flex-wrap: wrap; row-gap: 4px; }
}

@media (max-width: 480px) {
  .aq-next { padding: 0 16px; }
  .aq-next-link { padding: 20px 18px; gap: 14px; }
  .aq-next-arrow { width: 44px; height: 44px; }
  .aq-next-icon { width: 20px; height: 20px; }
  .aq-section { padding: 48px 16px; }
  .aq-hero { padding: 20px 16px 40px; }
  .aq-breadcrumb { padding: 14px 16px 0; }
  .aq-sequence { grid-template-columns: minmax(0, 1fr); }
  .aq-steps-row { grid-template-columns: minmax(0, 1fr); }
  .aq-contact { padding: 26px 20px; }
  .aq-finder { padding: 20px; }
  .aq-figure { padding: 14px 12px; }
  .aq-actions .btn { width: 100%; justify-content: center; }
}

/* ─── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .aq-rec.is-updating { animation: none; }
  .aq *, .aq *::before, .aq *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  .aq-finder, .aq-contact, .aq-lab-band { display: none !important; }
  .aq-faq details { border-color: #ccc; }
}
