/* LeadsMakers — online assistant widget (assets/js/chat.js) */
.lmc { --lmc-o: #ea580c; --lmc-ink: #14110f; --lmc-muted: #57524d; --lmc-line: #ece6de; --lmc-bg: #ffffff; --lmc-soft: #f6f2ec;
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 1000;
  font-family: "Funnel Sans", system-ui, sans-serif; color: var(--lmc-ink); }
.lmc[hidden] { display: none; }
.lmc svg { display: block; width: 100%; height: 100%; }
.lmc__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* launcher */
.lmc__launch { position: relative; display: grid; place-items: center; width: 62px; height: 62px; margin-left: auto; border: 0; border-radius: 50%;
  background: var(--lmc-o); color: var(--lmc-ink); cursor: pointer; box-shadow: 0 14px 30px -10px rgb(234 88 12 / .7), 0 2px 6px rgb(0 0 0 / .15);
  transition: transform .2s ease, box-shadow .2s ease; }
.lmc__launch:hover { transform: translateY(-2px) scale(1.04); }
.lmc__launch:focus-visible, .lmc button:focus-visible, .lmc input:focus-visible { outline: 3px solid #fdba74; outline-offset: 2px; }
.lmc__launch-i, .lmc__launch-x { grid-area: 1 / 1; width: 28px; height: 28px; transition: transform .25s ease, opacity .2s ease; }
.lmc__launch-x { opacity: 0; transform: rotate(-90deg) scale(.6); width: 24px; height: 24px; }
.lmc.is-open .lmc__launch-i { opacity: 0; transform: rotate(90deg) scale(.6); }
.lmc.is-open .lmc__launch-x { opacity: 1; transform: none; }
.lmc__dot { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2.5px solid #fff; }
.lmc__launch::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lmc-o); animation: lmc-ring 2.4s ease-out infinite; pointer-events: none; }
.lmc.is-open .lmc__launch::after { display: none; }
@keyframes lmc-ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.45); opacity: 0; } }

/* greeting bubble */
.lmc__teaser { position: absolute; right: 0; bottom: 76px; width: min(300px, calc(100vw - 40px)); animation: lmc-in .35s ease both; }
.lmc__teaser[hidden] { display: none; }
.lmc__teaser-body { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 16px 18px; border: 1px solid var(--lmc-line); border-radius: 20px 20px 6px 20px;
  background: var(--lmc-bg); color: var(--lmc-ink); text-align: left; font: 400 15px/1.45 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 24px 50px -24px rgb(0 0 0 / .4); }
.lmc__teaser-body b { display: block; margin-bottom: 2px; font-weight: 600; }
.lmc__teaser-x { position: absolute; top: -12px; left: -12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 8px; border: 1px solid var(--lmc-line);
  border-radius: 50%; background: #fff; color: var(--lmc-muted); cursor: pointer; box-shadow: 0 4px 10px rgb(0 0 0 / .12); }

.lmc__ava { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: #1c1917; color: #f97316; }

/* panel */
.lmc__panel { position: absolute; right: 0; bottom: 78px; display: flex; flex-direction: column; width: 380px; height: min(600px, calc(100vh - 130px));
  border-radius: 24px; background: var(--lmc-bg); overflow: hidden; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .45), 0 0 0 1px rgb(0 0 0 / .06);
  animation: lmc-in .25s ease both; transform-origin: bottom right; }
.lmc__panel[hidden] { display: none; }
@keyframes lmc-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.lmc__head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 18px; background: #1c1917; color: #fff; }
.lmc__head .lmc__ava { background: #2b2622; }
.lmc__who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lmc__who b { font: 600 17px/1.2 "Funnel Display", system-ui, sans-serif; }
.lmc__who small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #d6d3d1; }
.lmc__who small i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / .25); }
.lmc__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.lmc__close:hover { background: rgb(255 255 255 / .1); }

.lmc__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 8px; background: var(--lmc-soft); }
.lmc__msg { max-width: 85%; padding: 11px 15px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; animation: lmc-in .2s ease both; }
.lmc__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--lmc-line); border-bottom-left-radius: 6px; }
.lmc__msg--me { align-self: flex-end; background: var(--lmc-o); color: var(--lmc-ink); border-bottom-right-radius: 6px; font-weight: 500; }
.lmc__typing { display: flex; gap: 4px; padding: 15px 16px; }
.lmc__typing span { width: 7px; height: 7px; border-radius: 50%; background: #a8a29e; animation: lmc-dot 1s infinite ease-in-out; }
.lmc__typing span:nth-child(2) { animation-delay: .15s; }
.lmc__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes lmc-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

.lmc__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px 12px; background: var(--lmc-soft); }
.lmc__chips:empty { display: none; }
.lmc__chip { min-height: 40px; padding: 0 14px; border: 1.5px solid #f3c9a6; border-radius: 999px; background: #fff; color: #9a3412; font: 600 14.5px/1 inherit; font-family: inherit; cursor: pointer; }
.lmc__chip:hover { border-color: var(--lmc-o); background: #fff7ef; }
.lmc__chip--main { border-color: var(--lmc-o); background: var(--lmc-o); color: var(--lmc-ink); }
.lmc__chip--main:hover { background: #f97316; }

.lmc__form { display: flex; gap: 8px; padding: 12px 12px 6px; border-top: 1px solid var(--lmc-line); background: #fff; }
.lmc__form input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1.5px solid var(--lmc-line); border-radius: 999px; background: #fff; color: var(--lmc-ink); font: 400 16px/1 inherit; font-family: inherit; }
.lmc__form input:focus { outline: none; border-color: var(--lmc-o); box-shadow: 0 0 0 3px rgb(234 88 12 / .2); }
.lmc__form button { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 12px; border: 0; border-radius: 50%; background: var(--lmc-o); color: var(--lmc-ink); cursor: pointer; }
.lmc__note { margin: 0; padding: 2px 12px 10px; background: #fff; text-align: center; font-size: 12.5px; color: var(--lmc-muted); }

/* phones: the chat takes the whole screen; the launcher sits above the main page's bottom bar */
@media (max-width: 639px) {
  .lmc { right: 16px; bottom: calc(16px + var(--bar, 0px)); }
  .lmc__launch { width: 58px; height: 58px; }
  .lmc__teaser { bottom: 70px; }
  .lmc__panel { position: fixed; inset: 0; width: auto; height: 100%; height: 100dvh; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); }
  .lmc.is-open .lmc__launch { display: none; }
  html.lmc-open, html.lmc-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .lmc *, .lmc *::after { animation: none !important; transition: none !important; }
}
@media print { .lmc { display: none; } }

/* ---------- voice widget (assets/js/voice.js): visual only for now ---------- */
.lmc__teaser { right: 76px; bottom: 0; }   /* the greeting sits beside the chat button, clear of the voice button above it */
.lmv { position: fixed; right: 20px; bottom: calc(108px + env(safe-area-inset-bottom)); z-index: 999; font-family: "Funnel Sans", system-ui, sans-serif; }
.lmv[hidden] { display: none; }
.lmv svg { display: block; width: 100%; height: 100%; }
html.lmc-open .lmv__launch { display: none; }
.lmv__launch { display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; }
.lmv__ava { position: relative; display: grid; place-items: center; width: 62px; height: 62px; padding: 15px; border-radius: 50%; color: #f97316;
  background: radial-gradient(circle at 30% 25%, #3a332e, #14110f 70%); box-shadow: 0 14px 30px -12px rgb(0 0 0 / .6), inset 0 0 0 2px rgb(249 115 22 / .55);
  transition: transform .2s ease; }
.lmv__launch:hover .lmv__ava { transform: scale(1.05); }
.lmv__ring { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgb(249 115 22 / .7); animation: lmc-ring 2.4s ease-out .8s infinite; pointer-events: none; }
.lmv__pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; background: #1c1917; color: #fff;
  font: 600 14.5px/1 inherit; font-family: inherit; white-space: nowrap; box-shadow: 0 10px 24px -10px rgb(0 0 0 / .55); }
.lmv__mic { width: 18px; height: 18px; color: #f97316; }
.lmv__launch:focus-visible { outline: none; }
.lmv__launch:focus-visible .lmv__pill, .lmv button:focus-visible, .lmv a:focus-visible { outline: 3px solid #fdba74; outline-offset: 2px; }

/* the call screen */
.lmv__call { position: fixed; inset: 0; z-index: 1100; display: flex; overflow-y: auto; padding: 20px; background: rgb(20 17 15 / .55); backdrop-filter: blur(6px); animation: lmv-fade .2s ease both; }
.lmv__call[hidden] { display: none; }
@keyframes lmv-fade { from { opacity: 0; } }
html.lmv-open, html.lmv-open body { overflow: hidden; }
html.lmv-open .lmc { display: none; }
.lmv__card { margin: auto; width: min(380px, 100%); padding: 22px 24px 24px; border-radius: 28px; text-align: center; color: #fff;
  background: radial-gradient(420px 300px at 50% 0%, rgb(249 115 22 / .28), transparent 70%), #1c1917; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7); animation: lmc-in .3s ease both; }
.lmv__top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 18px; font-size: 14px; color: #d6d3d1; }
.lmv__live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .08); }
.lmv__live i { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; animation: lmv-blink 1s infinite; }
.lmv[data-phase="live"] .lmv__live i, .lmv[data-phase="listen"] .lmv__live i { background: #22c55e; animation: none; box-shadow: 0 0 0 3px rgb(34 197 94 / .3); }
@keyframes lmv-blink { 50% { opacity: .3; } }
.lmv__time { font-variant-numeric: tabular-nums; }
.lmv__orb { position: relative; width: 132px; height: 132px; margin: 6px auto 16px; display: grid; place-items: center; }
.lmv__face { position: relative; z-index: 1; display: grid; place-items: center; width: 104px; height: 104px; padding: 26px; border-radius: 50%; color: #f97316;
  background: radial-gradient(circle at 30% 25%, #3a332e, #14110f 70%); box-shadow: inset 0 0 0 2px rgb(249 115 22 / .6); }
.lmv__halo { position: absolute; inset: 0; border-radius: 50%; background: rgb(249 115 22 / .25); animation: lmv-halo 1.6s ease-out infinite; }
.lmv__halo--2 { animation-delay: .8s; }
.lmv[data-phase="listen"] .lmv__halo { animation-duration: 2.8s; background: rgb(34 197 94 / .18); }
@keyframes lmv-halo { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.lmv__name { margin: 0 0 14px; font: 600 21px/1.2 "Funnel Display", system-ui, sans-serif; letter-spacing: -0.01em; }
.lmv__wave { display: flex; justify-content: center; align-items: center; gap: 4px; height: 40px; margin-bottom: 12px; }
.lmv__wave i { width: 4px; height: 6px; border-radius: 4px; background: #f97316; opacity: .35; }
.lmv[data-phase="live"] .lmv__wave i { opacity: 1; animation: lmv-bar .9s ease-in-out infinite; }
.lmv[data-phase="listen"] .lmv__wave i { background: #22c55e; opacity: .8; animation: lmv-bar 2.2s ease-in-out infinite; }
.lmv__wave i:nth-child(3n) { animation-delay: -.3s; } .lmv__wave i:nth-child(3n+1) { animation-delay: -.6s; } .lmv__wave i:nth-child(4n) { animation-delay: -.45s; } .lmv__wave i:nth-child(5n) { animation-delay: -.15s; }
@keyframes lmv-bar { 0%, 100% { height: 6px; } 50% { height: 34px; } }
.lmv[data-phase="listen"] .lmv__wave i { animation-name: lmv-bar-s; }
@keyframes lmv-bar-s { 0%, 100% { height: 4px; } 50% { height: 12px; } }
.lmv__caption { min-height: 48px; margin: 0 0 20px; font-size: 16px; line-height: 1.45; color: #e7e5e4; }
.lmv__ctrls { display: flex; justify-content: center; gap: 36px; margin-bottom: 20px; }
.lmv__btn { display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #d6d3d1; font: 500 13px/1 inherit; font-family: inherit; cursor: pointer; }
.lmv__btn .lmv__ic { display: grid; place-items: center; width: 60px; height: 60px; padding: 17px; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; transition: background .2s ease; }
.lmv__btn--mute:hover .lmv__ic { background: rgb(255 255 255 / .2); }
.lmv__btn--mute[aria-pressed="true"] .lmv__ic { background: #fff; color: #1c1917; }
.lmv__btn--end .lmv__ic { background: #dc2626; padding: 15px; }
.lmv__btn--end:hover .lmv__ic { background: #b91c1c; }
.lmv__alt { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .12); }
.lmv__altlink { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: #fdba74; font-weight: 600; text-underline-offset: 3px; }
.lmv__altlink[hidden] { display: none; }
.lmv__altlink .lmv__ic { width: 18px; height: 18px; }

@media (max-height: 720px) {
  .lmv__orb { width: 96px; height: 96px; margin: 0 auto 10px; }
  .lmv__face { width: 78px; height: 78px; padding: 20px; }
  .lmv__top { margin-bottom: 10px; }
  .lmv__caption { margin-bottom: 14px; }
  .lmv__ctrls { margin-bottom: 14px; }
  .lmv__btn .lmv__ic { width: 54px; height: 54px; padding: 15px; }
  .lmv__alt { padding-top: 12px; gap: 4px; }
}
@media (max-width: 639px) {
  .lmv { right: auto; left: 16px; bottom: calc(16px + var(--bar, 0px)); }   /* phones: bottom-left, the chat keeps bottom-right */
  .lmv__ava { width: 56px; height: 56px; padding: 14px; }
  .lmv__launch { flex-direction: row; gap: 8px; }
  .lmv__pill { padding: 8px 12px 8px 9px; font-size: 13px; }
  .lmv__pill { font-size: 0; gap: 0; }                     /* on phones the pill just says "Talk to AI" */
  .lmv__pill::after { content: "Talk to AI"; font-size: 13px; margin-left: 6px; }
  .lmv__mic { width: 16px; height: 16px; }
  .lmv__call { padding: 0; }
  .lmv__card { width: 100%; min-height: 100%; min-height: 100dvh; border-radius: 0; display: flex; flex-direction: column; justify-content: center; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .lmc__teaser { right: 0; bottom: 72px; width: min(290px, calc(100vw - 32px)); }
  .lmc.is-open ~ .lmv { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lmv *, .lmv *::after { animation: none !important; transition: none !important; } }
@media print { .lmv { display: none; } }
