/**
 * "TRY TSS-Circles Prototype" tab in the header. A black tab with the
 * lettering and ring logo in the TSS Circles app's own gradient
 * (circles/styles.css: --grad), so it reads as a door into the app.
 * The header is tight, so the label shortens on narrower screens rather
 * than push "Start a conversation" or the menu button off the edge.
 */
.circles-cta {
  --circles-grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 55%, #a855f7 100%);
  align-items: center;
  background: #000;
  border: 1px solid #000;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  flex-shrink: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 750;
  gap: 0.55rem;
  letter-spacing: -0.005em;
  line-height: 1;
  padding: 0.85rem 1.05rem;
  position: relative;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
  white-space: nowrap;
  z-index: 1;
}
.circles-cta__label {
  background: var(--circles-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-block: 0.1em;
}
.circles-cta__ring {
  background: conic-gradient(from 200deg, #22d3ee, #6366f1, #a855f7, #22d3ee);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.55);
  flex-shrink: 0;
  height: 1.05rem;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  width: 1.05rem;
}
.circles-cta:hover,
.circles-cta:focus-visible {
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.45), 0 0 22px -4px rgba(34, 211, 238, 0.6);
  transform: translateY(-1px);
}
.circles-cta:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; }

/* Narrower desktops: "TRY TSS-Circles", no ring. */
@media (min-width: 821px) and (max-width: 1499px) {
  .circles-cta { font-size: 0.78rem; padding-inline: 0.75rem; }
  .circles-cta__proto, .circles-cta__ring { display: none; }
}
@media (min-width: 821px) and (max-width: 1140px) {
  .circles-cta { font-size: clamp(0.66rem, 0.88vw, 0.78rem); padding-inline: clamp(0.55rem, 1vw, 0.75rem); }
}

/* Phones: a compact tab beside the menu toggle. */
@media (max-width: 820px) {
  .circles-cta { gap: 0.4rem; margin-left: auto; padding: 0.6rem 0.7rem; font-size: 0.78rem; }
  .circles-cta__proto { display: none; }
  .circles-cta__ring { height: 0.85rem; width: 0.85rem; }
}
@media (max-width: 560px) {
  .circles-cta { padding: 0.55rem 0.55rem; font-size: 0.7rem; }
  .circles-cta__ring { display: none; }
}
/* Small phones: "TRY" stacked over "TSS-Circles". */
@media (max-width: 430px) {
  .circles-cta { padding: 0.4rem 0.4rem; font-size: 0.58rem; line-height: 1.15; text-align: center; }
  .circles-cta__try { display: block; }
}
@media (max-width: 380px) {
  .circles-cta__tss { display: none; }
}

@media (prefers-reduced-motion: reduce) { .circles-cta { transition: none; } }
