/* Hero Live Assistant Console for Rob
   Designed to sit directly inside Pat's dark navy hero beside the 3D robot, never a generic corner chat bubble. */

.rt__console [hidden],
.rt__cliche[hidden] {
  display: none !important;
}

.robo--trial {
  align-items: start;
  padding-top: clamp(92px, 11vh, 128px);
  padding-bottom: clamp(40px, 5vh, 64px);
}

.robo--trial h1 {
  font-size: clamp(2.1rem, min(3.8vw, 5.8vh), 3.45rem);
  line-height: 1.06;
}

.robo--trial .robo__text > * + * {
  margin-top: clamp(10px, 1.5vh, 16px);
}

.robo--trial .robo__text {
  width: min(33.5rem, 100%);
}

@media (min-width: 1101px) {
  .robo--trial .robo__stage {
    top: 0;
    bottom: auto;
    height: min(100svh, 920px);
    width: min(55%, 850px);
    --robot-shift: 8%;
  }
}

.rt__console {
  margin-top: 16px;
  padding: 15px 18px;
  border-radius: 14px;
  background: rgba(9, 16, 40, 0.76);
  border: 1px solid rgba(140, 172, 240, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(2, 5, 16, 0.45);
}

.rt__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  min-height: 30px;
}

.rt__status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  color: #cdd6ea;
  min-width: 0;
  flex: 1;
}

#trial-status {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rt__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6ea8ff;
  box-shadow: 0 0 10px rgba(110, 168, 255, 0.7);
  flex: none;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.rt__dot[data-state="listening"] {
  background: #4de3a1;
  box-shadow: 0 0 12px rgba(77, 227, 161, 0.85);
}

.rt__dot[data-state="thinking"] {
  background: #f6b664;
  box-shadow: 0 0 12px rgba(246, 182, 100, 0.85);
}

.rt__dot[data-state="speaking"] {
  background: #3898ff;
  box-shadow: 0 0 16px rgba(56, 152, 255, 1);
  transform: scale(1.22);
}

.rt__pickers {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.rt__voice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #aeb9d2;
}

.rt__voice select {
  max-width: 122px;
  background: rgba(255, 255, 255, 0.06);
  color: #f6f3ec;
  border: 1px solid rgba(160, 186, 240, 0.26);
  border-radius: 6px;
  padding: 4px 8px;
  font: inherit;
  cursor: pointer;
}

.rt__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.rt__actions .btn--line {
  background: transparent;
  color: #f6f3ec;
  border: 1px solid rgba(246, 243, 236, 0.34);
}

.rt__actions .btn--line:hover {
  border-color: rgba(246, 243, 236, 0.72);
  background: rgba(255, 255, 255, 0.06);
}

.rt__actions .btn--ghost {
  background: transparent;
  border: none;
  color: #9cb4e6;
  padding: 8px 6px;
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.rt__actions .btn--ghost:hover {
  color: #f6f3ec;
}

/* Humour dial */
.rt__dial-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(140, 172, 240, 0.16);
}

.rt__dial-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
}

.rt__dial-title {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #9bb2df;
}

.rt__dial-readout {
  font-variant-numeric: tabular-nums;
  color: #f6f3ec;
}

.rt__dial-readout strong {
  color: #f6b664;
  font-weight: 500;
  margin-right: 6px;
}

.rt__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3c69c9 0%, #6ea8ff 52%, #f6b664 100%);
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.25s;
}

.rt__slider.is-flash {
  box-shadow: 0 0 18px rgba(246, 182, 100, 0.9);
}

.rt__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f6f3ec;
  border: 2px solid #091028;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.rt__slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f6f3ec;
  border: 2px solid #091028;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.rt__dial-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #8f9fc0;
  margin-top: 6px;
}

/* Starter chips */
.rt__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.rt__chips button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(155, 180, 232, 0.24);
  color: #dce4f5;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.rt__chips button:hover {
  border-color: rgba(110, 168, 255, 0.75);
  background: rgba(110, 168, 255, 0.14);
}

/* Live transcript & typed input */
.rt__panel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(140, 172, 240, 0.16);
}

.rt__log {
  height: 152px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.rt__msg {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.48;
  padding: 8px 12px;
  border-radius: 10px;
}

.rt__msg--you {
  align-self: flex-end;
  background: rgba(56, 132, 255, 0.24);
  border: 1px solid rgba(110, 168, 255, 0.35);
  color: #f6f3ec;
  max-width: 88%;
}

.rt__msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eef2fb;
  max-width: 92%;
}

.rt__msg--note {
  font-size: 0.78rem;
  color: #9cb2df;
  background: transparent;
  padding: 2px 0;
}

.rt__form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.rt__form input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(155, 180, 232, 0.28);
  border-radius: 8px;
  color: #f6f3ec;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.88rem;
}

.rt__form input::placeholder {
  color: #8f9fc0;
}

.rt__enquiry {
  margin: 12px 0 0;
}

.rt__note {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: #8f9fc0;
}

.rt__note a {
  color: #b7c8eb;
}

/* Dual-tone blue/amber live voice oscilloscope */
.rt__wave {
  display: block;
  width: 100%;
  height: 30px;
  margin-top: 12px;
  border-radius: 8px;
  background: rgba(4, 8, 22, 0.55);
  border: 1px solid rgba(130, 164, 232, 0.14);
}

/* Deliberately cliché corner chat bubble used solely for the "Compare vs corner bubble" contrast demo */
.rt__cliche {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.95);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rt__cliche.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rt__cliche.is-dismissed {
  opacity: 0;
  transform: translateY(24px) scale(0.84);
}

.rt__cliche-card {
  position: relative;
  background: #ffffff;
  color: #1c2434;
  border-radius: 14px;
  padding: 12px 16px;
  width: 248px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  font-family: system-ui, -apple-system, sans-serif;
}

.rt__cliche-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.65);
}

.rt__cliche-hi {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.rt__cliche-sub {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: #5b667a;
}

.rt__view-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #cdd6ea;
  border: 1px solid rgba(160, 186, 240, 0.24);
  border-radius: 999px;
  padding: 4px 11px;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.rt__view-btn:hover {
  color: #f6f3ec;
  border-color: rgba(110, 168, 255, 0.65);
  background: rgba(110, 168, 255, 0.12);
}

@media (max-width: 1100px) {
  .robo--trial {
    padding-top: 86px;
    padding-bottom: 36px;
  }
  .robo--trial .robo__stage {
    height: min(86vw, 430px);
    margin-top: 10px;
    margin-bottom: 8px;
  }
  .rt__console {
    padding: 14px 14px;
  }
  .rt__top {
    flex-wrap: wrap;
  }
  .rt__view-btn {
    display: none;
  }
}

.rt__cliche-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.55);
}
