/* Numbered callouts. AI Q&A: pins beside the After phone with leader lines. App homepage (.ba--app): pins inside the
   scrolling After phone, so they move with the content. */
.ba--interactive .ba__phones {
  grid-template-columns: repeat(2, minmax(0, 294px));
  gap: 56px;
}
.ba--interactive [data-ba-col="after"] { grid-column: 2; }
.ba--interactive .ann-stage { position: relative; padding-right: 44px; } /* pins sit ~16px clear of the phone */
.ba--interactive .ann-leaders {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
}
.ba--interactive .ann-leaders path {
  fill: none; stroke: var(--color-content-muted); stroke-width: 1; stroke-dasharray: 3 3;
}
.ba--interactive .ann-pin {
  position: absolute; right: 0; width: 32px; height: 32px;
  border: 0; background: transparent; color: var(--color-content-muted);
  display: grid; place-items: center; cursor: pointer; transform: translateY(-50%);
}
.ba--interactive .ann-pin span {
  display: grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid var(--color-content); border-radius: 50%;
  font: 500 11px/1 Inter, sans-serif;
}
.ba--interactive .ann-pin span,
.ba--interactive .ann-note .ba__num {
  background: var(--color-content); color: var(--color-surface); border-color: var(--color-content);
}
.ba--interactive .ann-pin:focus-visible,
.ba--interactive .ann-note:focus-visible {
  outline: 2px solid var(--color-content); outline-offset: 3px; border-radius: 8px;
}
.ba--interactive .ba__notes ol { list-style: none; padding: 0; }
.ba--interactive .ba__notes li { display: block; }
.ba--interactive .ann-note {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  border: 0; border-radius: 8px; padding: 12px;
  background: transparent; color: var(--color-content-muted);
  font: inherit; line-height: 1.7; text-align: left; cursor: pointer;
}
/* Selecting a change fades the other pins, leaders and notes, so they stay visible and can be picked next.
   Same as the App comparison. */
.ba--interactive[data-selected-change] .ann-pin[aria-pressed="false"] { opacity: .18; }
.ba--interactive[data-selected-change] .ann-note[aria-pressed="false"] { opacity: .25; }
.ba--interactive[data-selected-change] .ann-leaders path:not(.is-selected) { opacity: .18; }
.ba--interactive .ann-pin,
.ba--interactive .ann-note,
.ba--interactive .ann-leaders path { transition: opacity .2s, color .2s; }
@media (max-width: 639px) {
  .ba--interactive .ba__phones { gap: 12px; }
  .ba--interactive .ann-stage { padding-right: 36px; }
  .ba--interactive .ann-pin { width: 28px; }
  .ba--interactive .ba__notes { margin-top: 32px; }
  .ba--interactive .ann-note { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ba--interactive .ann-pin,
  .ba--interactive .ann-note,
  .ba--interactive .ann-leaders path { transition: none; }
}

/* App homepage: same pins and dashed leaders as AI Q&A, beside the After phone. The leaders follow the scrolling screen. */
.ba--app .ba__phones { grid-template-columns: repeat(2, minmax(0, 294px)); gap: 56px; }
.ba--app [data-ba-col="after"] { grid-column: 2; }
.ba--app .app-stage { position: relative; padding-right: 44px; } /* pins sit ~16px clear of the phone */
.ba--app .app-leaders { position: absolute; inset: 0; z-index: 3; /* above the pinned header and nav (z-index 2) */ width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ba--app .app-leaders path { fill: none; stroke: var(--color-content-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.ba--app .app-leaders circle { fill: #18181b; stroke: #fff; stroke-width: 1.5; }
.ba--app .app-pin {
  position: absolute; right: 0; width: 32px; height: 32px; padding: 0;
  border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; transform: translateY(-50%);
}
.ba--app .app-pin span,
.ba--app .ba__notes .ba__num {
  display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--color-content); border-radius: 50%;
  background: var(--color-content); color: var(--color-surface); font: 500 11px/1 Inter, sans-serif;
}
.ba--app .ba__notes ol { list-style: none; padding: 0; }
.ba--app .ba__notes li { display: block; }
.ba--app .app-note {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  border: 0; border-radius: 8px; padding: 12px;
  background: transparent; color: var(--color-content-muted);
  font: inherit; line-height: 1.7; text-align: left; cursor: pointer;
}
.ba--app .app-note:focus-visible, .ba--app .app-pin:focus-visible { outline: 2px solid var(--color-content); outline-offset: 3px; border-radius: 8px; }
.ba--app[data-selected-change] .app-note[aria-pressed="false"] { opacity: .25; }
.ba--app[data-selected-change] .app-pin[aria-pressed="false"] { opacity: .18; }
.ba--app[data-selected-change] .app-leaders g:not(.is-selected) { opacity: .18; }
.ba--app .app-note, .ba--app .app-pin, .ba--app .app-leaders g { transition: opacity .2s; }
@media (max-width: 639px) {
  .ba--app .ba__phones { gap: 12px; }
  .ba--app .app-stage { padding-right: 36px; }
  .ba--app .app-pin { width: 28px; }
  .ba--app .ba__notes { margin-top: 32px; }
  .ba--app .app-note { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { .ba--app .app-note, .ba--app .app-pin, .ba--app .app-leaders g { transition: none; } }
.ba--app .app-scroll__hint { padding-right: 44px; }
@media (max-width: 639px) { .ba--app .app-scroll__hint { padding-right: 36px; } }

/* Numbered circles: the digit is SVG text (queen-annotations.js) so it stays centred on the circle at any subpixel
   position. The circle keeps its size; the SVG fills its content box. Cap-height centring: y sits on the baseline
   offset that puts Inter's figures (0.727em tall) in the middle. */
:is(.ba .ba__num, .ann-pin span, .app-pin span):has(> .num-svg) { position: relative; }
.num-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.num-svg text { fill: currentColor; font: 500 11px Inter, sans-serif; font-variant-numeric: tabular-nums; text-anchor: middle; dominant-baseline: alphabetic; transform: translateY(4px); }
.num-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Before / After labels centre over the phone, not over the phone plus the pin gutter. */
:is(.ba--interactive, .ba--app) .qa-funnel__label { padding-right: 44px; }
@media (max-width: 639px) { :is(.ba--interactive, .ba--app) .qa-funnel__label { padding-right: 36px; } }
/* App homepage: both phones share the live app's header and bottom bar (cropped from the app, 375pt wide), so they
   get the same spacing: 12pt status-bar gap above the header, and the bar image already includes the home-indicator
   space below. */
.ba--app .app-scroll__header { padding-top: calc(12 * var(--u)); }
.ba--app .app-scroll__nav { padding-bottom: 0; }
