/* ============================================================
   REBA LAUNCHER — the floating "chat with REBA" corner button.
   ONE reusable component block, five looks (Anton, Oct 18, 2026:
   the old long pill is retired — it covered the page bottom).
   Live on the agent pages today: Option 5 (--rim) — Anton's pick,
   Oct 18, 2026 (Option 1 --gloss was live until then). To change
   the pick, swap the variant class on the .reba-launcher anchor
   — nothing else moves. Showcase of all five: /reba-buttons.
   Every variant is a compact corner launcher (<= ~64px tall).
   ============================================================ */

.reba-launcher {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease;
}
.reba-launcher:hover { transform: translateY(-2px); }
.reba-launcher:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 5px #DC1C2E; border-radius: 999px; }
/* Static placement for demos/showcases (sits in the corner of its swatch) */
.reba-launcher--static { position: absolute; right: 14px; bottom: 14px; }

/* Shared label chip — dark glass + silver text, reads on any page */
.rl-chip {
  padding: 9px 14px;
  border: 1px solid rgba(238, 241, 246, .38);
  border-radius: 999px;
  background: rgba(8, 11, 16, .86);
  color: #EEF1F6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .30);
  backdrop-filter: blur(6px);
}
/* Shared under-orb label (Options 2 + 5) */
.rl-under {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #EEF1F6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .65);
  white-space: nowrap;
}

/* ---------- Option 1 · Gloss Orb (LIVE) ----------
   Shining red orb, specular highlight, soft pulse glow,
   "Chat with REBA" chip to its left. */
.reba-launcher--gloss .rl-orb {
  position: relative;
  width: 54px; height: 54px; flex: 0 0 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 27%, #FFB3BA 0%, #F0445A 32%, #DC1C2E 60%, #8F0F1E 100%);
  color: #fff;
  font: 700 21px/1 "Trebuchet MS", Arial, sans-serif;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, .55),
    inset 0 -7px 12px rgba(0, 0, 0, .35),
    0 12px 26px rgba(0, 0, 0, .38);
}
.reba-launcher--gloss .rl-orb::before { /* specular highlight */
  content: ""; position: absolute; left: 15%; top: 8%;
  width: 44%; height: 30%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%);
  transform: rotate(-18deg);
}
.reba-launcher--gloss .rl-orb::after { /* pulse glow ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(220, 28, 46, .45);
  animation: rl-pulse 2.6s ease-out infinite;
}
@keyframes rl-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 28, 46, .45); }
  70% { box-shadow: 0 0 0 15px rgba(220, 28, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 28, 46, 0); }
}

/* ---------- Option 2 · Avatar Ring ----------
   REBA's avatar inside a silver ring, label underneath. */
.reba-launcher--avatar { flex-direction: column; gap: 4px; }
.reba-launcher--avatar .rl-orb {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center;
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 28%, #8A1A28 0%, #5C0F1B 62%, #38060F 100%);
  box-shadow:
    0 0 0 2px #C3CAD4,
    0 0 0 4px rgba(195, 202, 212, .35),
    inset 0 -6px 10px rgba(0, 0, 0, .45),
    0 10px 22px rgba(0, 0, 0, .38);
}
.reba-launcher--avatar .rl-orb svg { width: 78%; height: 78%; margin-top: 16%; }

/* ---------- Option 3 · Shine Sweep ----------
   Orb only — metallic red with a rotating shine sweep;
   the label rides in a small bubble to the left. */
.reba-launcher--shine .rl-orb {
  position: relative;
  width: 54px; height: 54px; flex: 0 0 54px;
  display: grid; place-items: center;
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 27%, #FFC2C8 0%, #E8445C 36%, #B3121F 72%, #7A0C16 100%);
  color: #fff;
  font: 700 21px/1 "Trebuchet MS", Arial, sans-serif;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, .5),
    inset 0 -7px 12px rgba(0, 0, 0, .4),
    0 12px 26px rgba(0, 0, 0, .38);
}
.reba-launcher--shine .rl-orb::after { /* the sweep */
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0;
  width: 55%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-220%) skewX(-18deg);
  animation: rl-sweep 3.8s ease-in-out infinite;
}
@keyframes rl-sweep {
  0%, 55% { transform: translateX(-220%) skewX(-18deg); }
  85%, 100% { transform: translateX(320%) skewX(-18deg); }
}
.reba-launcher--shine .rl-bubble {
  position: relative;
  padding: 8px 12px;
  border: 1px solid rgba(238, 241, 246, .38);
  border-radius: 12px;
  background: rgba(8, 11, 16, .86);
  color: #EEF1F6;
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .30);
  backdrop-filter: blur(6px);
}
.reba-launcher--shine .rl-bubble::after { /* tail toward the orb */
  content: ""; position: absolute; right: -6px; top: 50%;
  width: 10px; height: 10px;
  background: inherit;
  border-top: 1px solid rgba(238, 241, 246, .38);
  border-right: 1px solid rgba(238, 241, 246, .38);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- Option 4 · Mini Pill ----------
   The old pill, shrunk: small orb icon + one line of text
   in a short dark-glass pill (44px tall). */
.reba-launcher--mini {
  height: 44px;
  padding: 6px 16px 6px 7px;
  gap: 9px;
  border: 1px solid rgba(238, 241, 246, .30);
  border-radius: 999px;
  background: rgba(8, 11, 16, .88);
  color: #EEF1F6;
  font-size: 13px; font-weight: 700; letter-spacing: .03em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
}
.reba-launcher--mini .rl-orb {
  position: relative;
  width: 30px; height: 30px; flex: 0 0 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 27%, #FFB3BA 0%, #F0445A 34%, #DC1C2E 62%, #8F0F1E 100%);
  color: #fff;
  font: 700 13px/1 "Trebuchet MS", Arial, sans-serif;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .55), inset 0 -4px 7px rgba(0, 0, 0, .35);
}
.reba-launcher--mini .rl-orb::before {
  content: ""; position: absolute; left: 16%; top: 9%;
  width: 44%; height: 30%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%);
  transform: rotate(-18deg);
}

/* ---------- Option 5 · Rim Light ----------
   Dark glass orb, red rim-light, silver R, label underneath. */
.reba-launcher--rim { flex-direction: column; gap: 4px; }
.reba-launcher--rim .rl-orb {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center;
  border: 1px solid rgba(195, 202, 212, .45);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #26313F 0%, #10151D 68%, #05070A 100%);
  color: #F5F7FA;
  font: 700 19px/1 "Trebuchet MS", Arial, sans-serif;
  box-shadow:
    inset 0 -9px 14px rgba(220, 28, 46, .50),
    inset 0 6px 10px rgba(255, 255, 255, .14),
    inset 0 0 0 1px rgba(220, 28, 46, .35),
    0 12px 24px rgba(0, 0, 0, .45);
}

@media (max-width: 640px) {
  .reba-launcher { right: 16px; bottom: 16px; }
  .reba-launcher--static { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .reba-launcher { transition: none; }
  .reba-launcher:hover { transform: none; }
  .reba-launcher--gloss .rl-orb::after,
  .reba-launcher--shine .rl-orb::after { animation: none; }
}
