:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #132219;
  background: #f3f6f1;
  --green: #185c3c;
  --lime: #b9ef64;
  --paper: #fff;
  --line: #dce6dd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0, #dff2e6 0, transparent 35%), #f3f6f1;
}
.demo-page {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  padding: 9vh 0;
}
.eyebrow {
  color: #28734a;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 850;
}
.demo-page h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin: 0.25em 0;
}
.lede {
  max-width: 670px;
  color: #607168;
  font-size: 1.15rem;
  line-height: 1.6;
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 9vh;
}
.demo-grid article {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: #ffffff99;
}
.demo-grid span {
  font-size: 0.75rem;
  color: #5d7668;
}
.demo-grid h2 {
  font-size: 1.05rem;
}
.demo-grid p {
  color: #64746b;
  font-size: 0.9rem;
  line-height: 1.5;
}
.concierge {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  width: min(390px, calc(100vw - 32px));
  filter: drop-shadow(0 24px 50px #0e2a1b33);
}
.launcher {
  width: 100%;
  display: grid;
  grid-template-columns: 54px 1fr 34px;
  align-items: center;
  gap: 12px;
  border: 1px solid #2d6e4e;
  border-radius: 23px;
  padding: 10px 13px 10px 10px;
  background: linear-gradient(130deg, #143d29, #1b6944);
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 1px #ffffff20;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px #123c2860;
}
.launcher:focus-visible,
.icon-button:focus-visible,
.composer button:focus-visible,
.composer textarea:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.launcher-orb {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: linear-gradient(145deg, var(--lime), #65d89b);
  box-shadow: inset 0 0 0 1px #fff6;
}
.launcher-orb i,
.agent-mark i {
  display: block;
  width: 3px;
  border-radius: 4px;
  background: #143d29;
  animation: wave 1.15s ease-in-out infinite;
}
.launcher-orb i:nth-child(1),
.launcher-orb i:nth-child(5) {
  height: 10px;
}
.launcher-orb i:nth-child(2),
.launcher-orb i:nth-child(4) {
  height: 20px;
  animation-delay: -0.25s;
}
.launcher-orb i:nth-child(3) {
  height: 29px;
  animation-delay: -0.5s;
}
.launcher-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.launcher-copy strong {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
}
.launcher-copy small {
  color: #d7eadf;
}
.launcher-arrow {
  font-size: 1.25rem;
  text-align: center;
}
.concierge-panel {
  display: none;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #d7e2d9;
  border-radius: 24px;
  margin-bottom: 12px;
  min-height: 520px;
  max-height: min(720px, calc(100vh - 120px));
  grid-template-rows: auto auto 1fr auto auto auto;
}
.concierge[data-state="open"] .concierge-panel {
  display: grid;
  animation: open 0.24s ease-out;
}
.concierge[data-state="open"] .launcher {
  display: none;
}
.concierge-header {
  display: grid;
  grid-template-columns: 48px 1fr 38px;
  gap: 12px;
  align-items: center;
  padding: 18px 18px 14px;
  background: #153e2a;
  color: #fff;
}
.agent-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.agent-mark i {
  height: 12px;
}
.agent-mark i:nth-child(2) {
  height: 25px;
}
.agent-mark i:nth-child(3) {
  height: 18px;
}
.agent-mark i:nth-child(4) {
  height: 8px;
}
.live-label {
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #cfe4d5;
  font-size: 0.62rem;
  font-weight: 800;
}
.live-label b,
#status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #70ed9e;
  box-shadow: 0 0 0 4px #70ed9e22;
}
.concierge-header h2 {
  margin: 3px 0 0;
  font-size: 1.15rem;
}
.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff2b;
  border-radius: 11px;
  background: #ffffff14;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.privacy-note {
  margin: 0;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: #f6faf6;
  color: #617067;
  font-size: 0.73rem;
  line-height: 1.4;
}
.chat-log {
  overflow: auto;
  padding: 14px 15px;
  background: linear-gradient(#fff, #fbfdfb);
  min-height: 180px;
}
.message {
  max-width: 86%;
  padding: 10px 13px;
  margin: 7px 0;
  border-radius: 15px 15px 15px 5px;
  background: #ecf3ed;
  color: #263b2f;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.message.user {
  margin-left: auto;
  border-radius: 15px 15px 5px 15px;
  background: #175d3c;
  color: #fff;
}
.message.action {
  font-size: 0.75rem;
  background: #f8fae9;
  color: #5c681f;
  border: 1px solid #e5eab1;
}
.consent-card {
  margin: 0 15px 10px;
  padding: 10px 12px;
  border: 1px solid #dfe8df;
  border-radius: 13px;
  background: #f8faf8;
  color: #55675c;
}
.consent-card label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.75rem;
  line-height: 1.35;
}
.consent-card input {
  margin-top: 2px;
  accent-color: var(--green);
}
.consent-card small {
  display: block;
  margin: 5px 0 0 22px;
  color: #7b8980;
  font-size: 0.67rem;
}
.composer {
  display: grid;
  grid-template-columns: 1fr 42px 42px;
  gap: 7px;
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.composer textarea {
  width: 100%;
  max-height: 100px;
  resize: none;
  border: 1px solid #cbd9ce;
  border-radius: 13px;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.35;
}
.composer button {
  border: 0;
  border-radius: 13px;
  cursor: pointer;
}
.mic-button {
  background: #e7f0e9;
  color: #1b5a3b;
}
.mic-button span {
  display: block;
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
  margin: auto;
}
.mic-button.listening {
  background: #fee8e4;
  color: #ba3d2b;
  animation: pulse 1s infinite;
}
.send-button {
  background: var(--green);
  color: #fff;
  font-size: 1.15rem;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 0 14px 12px;
  color: #78867e;
  font-size: 0.65rem;
}
#status {
  display: flex;
  align-items: center;
  gap: 7px;
}
.mic-device-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 0 15px 10px;
  color: #55675c;
  font-size: 0.72rem;
}
.mic-device-row select {
  min-width: 0;
  border: 1px solid #cbd9ce;
  border-radius: 9px;
  padding: 6px 8px;
  background: #fff;
  color: #263b2f;
  font: inherit;
}
.mic-device-row button {
  border: 1px solid #2d6e4e;
  border-radius: 9px;
  padding: 6px 8px;
  background: #f2f6f9;
  color: #153e2a;
  font: inherit;
  cursor: pointer;
}
.mic-device-row audio {
  grid-column: 1 / -1;
  width: 100%;
  height: 34px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.55);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px #df5c4530;
  }
}
@keyframes open {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .concierge {
    right: 16px;
    bottom: 16px;
  }
  .concierge-panel {
    max-height: calc(100vh - 32px);
    min-height: min(600px, calc(100vh - 32px));
  }
  .demo-page {
    padding-top: 7vh;
  }
}
