/*
 * Homepage section 03: pick a customer question, watch both bots answer.
 *
 * Radio tabs switched with :has(), so no script. The first question shows by
 * default; a browser without :has() keeps it and the tabs do nothing. Motion
 * (the answers arriving one after another) only when it is allowed.
 */
.ac-tabs { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.ac-cap {
  display: block; width: 100%; padding: 0; margin: 0 0 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted);
}
.ac-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-tabs input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.ac-tabs label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--border-strong); border-radius: 99px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--text-muted); background: rgba(255, 255, 255, .02);
}
.ac-tabs label:hover { color: var(--text); border-color: rgba(255, 255, 255, .32); }
.ac-tabs input:checked + label { background: var(--teal); border-color: var(--teal); color: #04201e; font-weight: 700; }
.ac-tabs input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 3px; }

.ac-case { display: none; }
.ac-case-1 { display: block; }
.ac-demo:has(input:checked:not(#ac-t1)) .ac-case-1 { display: none; }
.ac-demo:has(#ac-t1:checked) .ac-case-1,
.ac-demo:has(#ac-t2:checked) .ac-case-2,
.ac-demo:has(#ac-t3:checked) .ac-case-3 { display: block; }

.ac-q {
  display: inline-flex; align-items: baseline; gap: 12px; margin-bottom: 18px; padding: 12px 18px;
  border-radius: 16px 16px 16px 4px; background: var(--panel-raised); border: 1px solid var(--border);
  font-size: 1.05rem;
}
.ac-q span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.ac-reply { font-size: 1.1rem; margin: 16px 0 18px; min-height: 3.2em; }
.ac-verdict { font-family: var(--mono); font-size: 11px; }

@media (prefers-reduced-motion: no-preference) {
  .ac-case .ac-q { animation: ac-in .45s ease-out both; }
  .ac-case .ac-generic { animation: ac-in .5s ease-out .5s both; }
  .ac-case .ac-inboxxit { animation: ac-in .5s ease-out 1.25s both; }
  @keyframes ac-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
