/* Conn Web Works — talking with Nova (chat.js). An immersive full-screen space: deep black with slow drifting light,
   a living orb of light behind Nova (robot.js), a calm centered conversation column, and one blue accent.
   Everything is scoped to .chat-panel.cx so it wins over the older chat styles in styles.css / site.css. */
.chat-panel.cx {
  --cx-ink: #f3f4f7; --cx-ink2: rgba(243, 244, 247, .74); --cx-ink3: rgba(243, 244, 247, .48);
  --cx-hair: rgba(255, 255, 255, .09); --cx-blue: #3e7bfa; --cx-b: 62 123 250; --cx-ok: #6fe3a1;
  --cx-font: var(--font-body, "Geist", "Inter", system-ui, sans-serif); --cx-head: var(--font-head, "Geist", "Inter", system-ui, sans-serif);
  --cx-ease: cubic-bezier(.16, 1, .3, 1);
  --cx-pad: 18px;
  position: fixed; inset: auto 0 0 0; top: 10%; z-index: 190; display: flex; flex-direction: column; overflow: hidden; width: auto; height: auto; max-width: none; max-height: none; margin: 0;
  color: var(--cx-ink); font-family: var(--cx-font); background: #06070b; border: 0; border-radius: 26px 26px 0 0;
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 255, 255, .1);
  opacity: 0; transform: translateY(40px); transform-origin: 100% 100%; transition: opacity .35s var(--cx-ease), transform .55s var(--cx-ease);
}
/* the grab handle on the phone sheet */
.chat-panel.cx::after { content: ""; position: absolute; top: 7px; left: 50%; z-index: 3; width: 38px; height: 5px; margin-left: -19px; border-radius: 9px; background: rgb(var(--fg-rgb) / .22); }
.chat-panel.cx.show { opacity: 1; transform: none; }
.chat-panel.cx[hidden] { display: none; }
.chat-panel.cx > :not(.cx-bg) { position: relative; z-index: 1; }

/* slow drifting light behind everything */
.cx-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cx-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, rgb(var(--cx-b) / .16), transparent 70%), radial-gradient(40% 40% at 50% 100%, rgb(var(--cx-b) / .08), transparent 70%); }
.cx-bg i { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(70px); opacity: .3; will-change: transform; }
.cx-bg i:first-child { left: -260px; top: -260px; background: radial-gradient(circle, #2a5bd8, transparent 65%); animation: cx-drift1 22s ease-in-out infinite alternate; }
.cx-bg i:last-child { right: -280px; bottom: -300px; background: radial-gradient(circle, #5b3fd6, transparent 65%); opacity: .2; animation: cx-drift2 26s ease-in-out infinite alternate; }
@keyframes cx-drift1 { to { transform: translate(140px, 120px) scale(1.15); } }
@keyframes cx-drift2 { to { transform: translate(-120px, -90px) scale(1.1); } }

/* ---------- Nova with a soft halo of light behind it (no orb) ---------- */
.cx-halo { position: relative; flex: none; display: inline-grid; place-items: center; }
.cx-halo::before { content: ""; position: absolute; inset: -10%; border-radius: 50%; background: radial-gradient(circle, rgb(var(--cx-b) / .38), rgb(var(--cx-b) / .08) 50%, transparent 70%); animation: cx-breathe 4s ease-in-out infinite; }
@keyframes cx-breathe { 50% { transform: scale(1.1); opacity: .75; } }
.cx.talking .cx-halo::before, .cx.v-speak .cx-halo::before { animation: cx-pulse .5s ease-in-out infinite alternate; }
@keyframes cx-pulse { to { transform: scale(1.2); opacity: 1; } }
.cx-orb-sm { width: 42px; height: 42px; }
.cx-orb-lg { width: 100px; height: 108px; }
.cx-orb-xl { width: 200px; height: 210px; }
/* listening and talking rings in voice chat */
.cx-orb-xl::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 2px solid rgb(var(--cx-b) / .55); opacity: 0; }
.cx.v-listen .cx-orb-xl::after { animation: cx-ring 1.6s ease-out infinite; }
.cx.v-speak .cx-orb-xl::after { border-color: rgba(111, 227, 161, .6); animation: cx-ring .9s ease-out infinite; }
@keyframes cx-ring { 0% { transform: scale(.75); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
/* Nova (the photo from robot.js) in the chat */
.cx-bot { position: relative; z-index: 2; display: block; }
.cx-bot .nv-img { filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.22)); }
.cx-bot-sm { width: 30px; height: 39px; }
.cx-bot-lg { width: 82px; height: 106px; animation: cx-float 4.5s ease-in-out infinite; }
.cx-bot-xl { width: 120px; height: 156px; animation: cx-float 4.5s ease-in-out infinite; }
.cx-bot-av { width: 24px; height: 31px; }
@keyframes cx-float { 50% { transform: translateY(-8px) rotate(-2deg); } }
.cx.talking .cx-head .nv-glow, .cx.talking .cx-row:last-child .nv-glow, .cx.v-speak .cx-voicebar .nv-glow { animation: cx-eyes .26s ease-in-out infinite alternate; }
@keyframes cx-eyes { from { opacity: .3; } to { opacity: .95; } }
.cx.v-listen .cx-voicebar .nv-glow { opacity: .8; }

/* ---------- top bar ---------- */
.cx .cx-head { display: flex; align-items: center; gap: 12px; padding: 18px var(--cx-pad) 12px; border: 0; border-bottom: 1px solid var(--cx-hair); border-radius: 0; background: rgb(var(--glass-rgb) / .5); }
.cx-who { flex: 1; min-width: 0; }
.cx .chat-title { margin: 0; font: 650 1.1rem/1.15 var(--cx-head); letter-spacing: -0.02em; color: var(--ink); }
.cx .chat-sub { margin: 3px 0 0; display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--cx-ink3); text-transform: none !important; letter-spacing: 0 !important; font-family: var(--cx-font) !important; }
.cx-status { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cx .chat-online { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--cx-ok); box-shadow: 0 0 8px var(--cx-ok); }
.cx-hbtn { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--cx-hair); border-radius: 50%; cursor: pointer; color: var(--cx-ink2); background: rgb(var(--fg-rgb) / .05); transition: background-color .2s, color .2s, border-color .2s; }
.cx-hbtn:hover { color: var(--ink); background: rgb(var(--fg-rgb) / .12); }
.cx-voice[aria-pressed="true"] { color: #fff; background: var(--cx-blue); border-color: transparent; }
.cx-hbtn:focus-visible, .cx-card:focus-visible, .cx .chat-chip:focus-visible, .cx .chat-send:focus-visible, .cx .chat-mic:focus-visible, .cx-vend:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- the conversation ---------- */
.cx .chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 20px var(--cx-pad) 12px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(var(--fg-rgb) / .14) transparent; }
.cx-row { display: flex; align-items: flex-start; gap: 14px; animation: cx-in .5s var(--cx-ease) both; }
@keyframes cx-in { from { opacity: 0; transform: translateY(12px); } }
.cx-me { justify-content: flex-end; }
.cx-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -2px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--cx-b) / .35), rgb(var(--cx-b) / .05) 70%); box-shadow: inset 0 0 0 1px rgb(var(--cx-b) / .35); }
.cx-bot-av { width: 26px; height: 32px; }
.cx .chat-msg { max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; font-size: 1rem; line-height: 1.6; letter-spacing: -0.006em; word-wrap: break-word; background: none; box-shadow: none; }
.cx .chat-msg p { margin: 0 0 .7em; } .cx .chat-msg p:last-child { margin: 0; }
.cx .chat-msg ul { list-style: none; margin: .4em 0 .8em; padding: 0; display: grid; gap: 8px; }
.cx .chat-msg li { position: relative; padding-left: 20px; }
.cx .chat-msg li::before { content: ""; position: absolute; left: 3px; top: .66em; width: 7px; height: 7px; border-radius: 50%; background: var(--cx-blue); box-shadow: 0 0 10px rgb(var(--cx-b) / .9); }
.cx .chat-msg strong { color: var(--ink); font-weight: 650; }
.cx .chat-msg a { color: #9cc2ff; text-decoration: underline; text-underline-offset: 3px; }
.cx .chat-assistant { color: var(--cx-ink); padding-top: 4px; }
.cx .chat-user { max-width: min(78%, 560px); padding: 12px 18px; border-radius: 22px 22px 6px 22px; color: var(--ink); background: rgb(var(--fg-rgb) / .09); border: 1px solid rgb(var(--fg-rgb) / .1); }
.cx .chat-error { color: #ffb4ab; }
.cx-money { padding: .05em .35em; border-radius: 7px; font-weight: 600; color: #d6e5ff; background: rgb(var(--cx-b) / .22); box-shadow: inset 0 0 0 1px rgb(var(--cx-b) / .35); white-space: nowrap; }
.cx-w { display: inline-block; opacity: 0; animation: cx-w .42s var(--cx-ease) forwards; }
@keyframes cx-w { from { opacity: 0; transform: translateY(5px); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
.cx .chat-typing { display: inline-flex; gap: 6px; align-items: center; padding: 14px 2px; }
.cx .chat-typing span:not(.sr-only) { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #8fc0ff, #7a6cff); opacity: .35; animation: cx-dot 1.1s infinite; }
.cx .chat-typing span:nth-child(2) { animation-delay: .15s; } .cx .chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cx-dot { 40% { opacity: 1; transform: translateY(-4px); } }

/* ---------- the welcome ---------- */
.cx-hello { display: grid; justify-items: center; text-align: center; margin: auto 0; padding: 4px 0 4px; animation: cx-in .7s var(--cx-ease) both; }
.cx-hello .cx-orb-lg { margin-bottom: 10px; }
.cx-hi { margin: 0; font: 700 1.8rem/1.05 var(--cx-head); letter-spacing: -0.045em; color: var(--ink); }
.cx-kicker { margin: 6px 0 0; font-size: .95rem; font-weight: 500; color: #8fb6ff; }
.cx-hi-sub { max-width: 32ch; margin: 8px 0 16px; font-size: .94rem; line-height: 1.55; color: var(--cx-ink2); text-wrap: balance; }
.cx-cards { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-card { position: relative; display: grid; justify-items: start; gap: 2px; padding: 12px 13px; border: 1px solid var(--cx-hair); border-radius: 20px; cursor: pointer; text-align: left; overflow: hidden;
  color: var(--cx-ink); background: linear-gradient(180deg, rgb(var(--fg-rgb) / .06), rgb(var(--fg-rgb) / .02)); transition: transform .35s var(--cx-ease), border-color .25s, background-color .25s; animation: cx-in .7s var(--cx-ease) both; }
.cx-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 80% at 0% 0%, rgb(var(--cx-b) / .22), transparent 60%); opacity: 0; transition: opacity .3s; }
.cx-card:hover { transform: translateY(-3px); border-color: rgb(var(--cx-b) / .55); }
.cx-card:hover::after { opacity: 1; }
.cx-card:nth-child(2) { animation-delay: .07s; } .cx-card:nth-child(3) { animation-delay: .14s; } .cx-card:nth-child(4) { animation-delay: .21s; }
.cx-card i { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 8px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #5b90fb, #3e5cfa); box-shadow: 0 8px 20px -6px rgb(var(--cx-b) / .9); }
.cx-card b { font: 600 .98rem/1.25 var(--cx-head); letter-spacing: -0.01em; color: var(--ink); }
.cx-card small { font-size: .82rem; color: var(--cx-ink3); }

/* ---------- booking card ---------- */
.cx-card-row { padding-left: 50px; }
.cx-book { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; width: min(100%, 380px); padding: 16px; border-radius: 22px;
  background: linear-gradient(160deg, rgb(var(--cx-b) / .24), rgb(var(--fg-rgb) / .03)); border: 1px solid rgb(var(--cx-b) / .45); box-shadow: 0 20px 50px -24px rgb(var(--cx-b) / .8); }
.cx-book > i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--cx-blue); }
.cx-book b { display: block; font: 600 1rem var(--cx-head); color: var(--ink); }
.cx-book small { display: block; font-size: .84rem; color: var(--cx-ink2); line-height: 1.4; }
.cx-book-btn { grid-column: 1 / -1; width: 100%; margin-top: 10px; min-height: 46px; }

/* ---------- suggestions ---------- */
.cx .chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--cx-pad) 10px calc(var(--cx-pad) + 50px); }
.cx .chat-chips[hidden] { display: none; }
.cx .chat-chip { min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; font: 500 .9rem var(--cx-font); color: #dbe7ff; background: rgb(var(--fg-rgb) / .05); border: 1px solid rgb(var(--cx-b) / .4); animation: cx-in .5s var(--cx-ease) both; transition: background-color .2s, border-color .2s; }
.cx .chat-chip:hover { background: rgb(var(--cx-b) / .18); border-color: rgb(var(--cx-b) / .7); }

/* ---------- the message bar ---------- */
.cx .chat-form { display: flex; align-items: flex-end; gap: 8px; width: auto; margin: 6px var(--cx-pad) 10px; padding: 8px 8px 8px 10px; border: 1px solid rgb(var(--fg-rgb) / .14); border-radius: 30px; background: rgb(var(--fg-rgb) / .06);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.36); transition: border-color .25s, box-shadow .25s; }
.cx .chat-form:focus-within { border-color: rgb(var(--cx-b) / .85); box-shadow: 0 0 0 5px rgb(var(--cx-b) / .16), 0 20px 50px -20px rgb(var(--cx-b) / .6); }
.cx .chat-form textarea { flex: 1; min-height: 44px; max-height: 140px; padding: 11px 8px 10px 8px; border: 0; border-radius: 0; resize: none; font: 400 1.05rem/1.45 var(--cx-font); color: var(--ink); background: none; box-shadow: none; outline: none; }
.cx .chat-form textarea::placeholder { color: var(--cx-ink3); }
.cx .chat-mic, .cx .chat-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s, transform .2s, box-shadow .2s; }
.cx .chat-mic { color: var(--cx-ink2); background: rgb(var(--fg-rgb) / .07); }
.cx .chat-mic:hover { color: var(--ink); background: rgb(var(--fg-rgb) / .14); }
.cx .chat-mic[hidden] { display: none; }
.cx .chat-send { color: var(--ink); background: rgb(var(--fg-rgb) / .12); }
.cx.has-text .chat-send { background: linear-gradient(135deg, #5b90fb, #3e5cfa); box-shadow: 0 8px 22px -6px rgb(var(--cx-b) / .95); }
.cx .chat-send:active { transform: scale(.9); }
.cx .chat-send:disabled { opacity: .55; cursor: wait; }
.cx.listening .chat-mic { color: #fff; background: #e5484d; animation: cx-rec 1.1s ease-out infinite; }
@keyframes cx-rec { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .55); } 100% { box-shadow: 0 0 0 14px rgba(229, 72, 77, 0); } }
.cx .chat-foot { margin: 0; padding: 0 var(--cx-pad) calc(12px + env(safe-area-inset-bottom)); font-size: .74rem; color: var(--cx-ink3); text-align: center; }
.cx .chat-foot a { color: var(--cx-ink2); }

/* ---------- voice chat: the orb fills the screen ---------- */
.cx.voice .chat-log, .cx.voice .chat-form, .cx.voice .chat-chips { display: none; }
.cx-voicebar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px var(--cx-pad) 30px; text-align: center; }
.cx-voicebar[hidden] { display: none; }
.cx-vstatus { margin: 6px 0 0; font: 650 1.3rem var(--cx-head); letter-spacing: -0.02em; color: var(--ink); }
.cx-vtext { min-height: 1.5em; max-width: 30ch; margin: 0; font-size: 1.1rem; line-height: 1.45; color: var(--cx-ink2); }
.cx-vend { min-height: 50px; margin-top: 10px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer; font: 600 .98rem var(--cx-font); color: #fff; background: #e5484d; box-shadow: 0 12px 30px -10px rgba(229, 72, 77, .8); }

/* computers: a sleek panel in the corner, with the site's light beam running round its edge */
@property --cx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@media (min-width: 640px) {
  .chat-panel.cx { inset: auto 24px 24px auto; top: auto; width: 420px; height: min(680px, calc(100vh - 48px)); border-radius: 28px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.36), 0 0 70px -10px rgb(var(--cx-b) / .35), inset 0 0 0 1px rgb(var(--fg-rgb) / .1); transform: translateY(24px) scale(.96); }
  .chat-panel.cx::after { display: none; }
  .chat-panel.cx::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--cx-a), transparent 0deg 290deg, rgb(var(--cx-b) / .9) 330deg, #fff 350deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: cx-beam 6s linear infinite; }
  .cx .cx-head { padding-top: 14px; }
}
@keyframes cx-beam { to { --cx-a: 360deg; } }
/* phones: lighter background light (cheaper to draw), tighter spacing */
@media (max-width: 639px) {
  .cx-bg i { filter: blur(50px); opacity: .25; }
  .cx .chat-log { gap: 18px; padding-top: 20px; }
  .cx-orb-lg { width: 92px; height: 100px; }
  .cx-bot-lg { width: 70px; height: 91px; }
  .cx-hi-sub { margin-bottom: 20px; font-size: 1rem; }
  .cx-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cx-card { padding: 14px; }
  .cx .chat-msg { font-size: 1rem; }
  .cx-row { gap: 10px; }
  .cx .chat-chips { padding-left: calc(var(--cx-pad) + 46px); }
  .cx-card-row { padding-left: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-row, .cx-hello, .cx-card, .cx .chat-chip, .cx-bot-lg, .cx-bot-xl, .cx-bg i, .cx-halo::before, .cx-orb-xl::after, .chat-panel.cx::before { animation: none !important; }
  .cx-w { opacity: 1; animation: none; }
}
/* shorter screens: the welcome cards drop their small subtitles so everything fits without scrolling */
@media (max-height: 900px) { .cx-card small { display: none; } .cx-card i { margin-bottom: 6px; } }
