/* Yantra24x7 AI chat widget (chat.js). Launcher bottom-right; the back-to-top button sits above it. */
.yc-launch { position: fixed; z-index: 70; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 8px; border: 0; border-radius: 99px; background: #f7861e; color: #fff; font: 700 15px Inter, system-ui, sans-serif; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(247,134,30,.75), 0 0 0 1px rgba(255,255,255,.25) inset; transform: translateY(20px); opacity: 0; transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s, box-shadow .25s; }
.yc-launch.in { transform: none; opacity: 1; }
.yc-launch:hover { box-shadow: 0 18px 36px -10px rgba(247,134,30,.9), 0 0 0 1px rgba(255,255,255,.3) inset; transform: translateY(-2px); }
.yc-launch:focus-visible { outline: 3px solid #12212f; outline-offset: 3px; }
.yc-launch .yc-mk { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); }
.yc-launch .yc-mk .ym { width: 28px; height: 28px; }
.yc-launch small { display: block; font-weight: 500; font-size: 11.5px; opacity: .9; line-height: 1.1; }
.yc-launch b { display: block; line-height: 1.15; }
.yc-open .yc-launch { transform: translateY(20px) scale(.9); opacity: 0; pointer-events: none; }
/* back-to-top moves up so the two never overlap */
body.has-yc .stt { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 88px); }

.yc-hint { position: fixed; z-index: 70; right: max(18px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 88px); max-width: 260px; padding: 12px 34px 12px 14px; border-radius: 16px 16px 4px 16px; background: #fff; color: #12212f; font: 500 14px/1.45 Inter, system-ui, sans-serif; box-shadow: 0 18px 40px -16px rgba(18,33,47,.45), 0 0 0 1px rgba(18,33,47,.06); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s cubic-bezier(.16,1,.3,1); cursor: pointer; }
.yc-hint.in { opacity: 1; transform: none; }
.yc-hint button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: #5d6b7a; font-size: 16px; cursor: pointer; }
.yc-open .yc-hint, body.has-yc .stt[data-show="true"] ~ .yc-hint { opacity: 0; pointer-events: none; }

.yc-panel { position: fixed; z-index: 75; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 390px; height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column; border-radius: 22px; background: #fff; color: #12212f; font: 400 15px/1.5 Inter, system-ui, sans-serif; box-shadow: 0 30px 70px -20px rgba(18,33,47,.55), 0 0 0 1px rgba(18,33,47,.07); overflow: hidden; transform-origin: 100% 100%; transform: translateY(16px) scale(.96); opacity: 0; visibility: hidden; transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .25s, visibility 0s linear .35s; }
.yc-open .yc-panel { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.yc-panel, .yc-panel * { box-sizing: border-box; }
.yc-panel { margin: 0; padding: 0; }

.yc-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: #12212f; color: #fff; }
.yc-head .yc-mk { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #ffb45c, #f7861e); }
.yc-head .yc-mk .ym { width: 28px; height: 28px; }
.yc-head b { display: block; font-size: 16px; }
.yc-head small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #b9c7d6; }
.yc-head small i { width: 7px; height: 7px; border-radius: 50%; background: #22b26b; box-shadow: 0 0 0 3px rgba(34,178,107,.25); }
.yc-head .yc-x { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.yc-head .yc-x:hover, .yc-head .yc-x:focus-visible { background: rgba(255,255,255,.12); outline: none; }

.yc-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: #f7f8fa; overscroll-behavior: contain; scroll-behavior: smooth; }
.yc-m { display: flex; margin: 0 0 10px; }
.yc-m > div { max-width: 86%; padding: 10px 13px; border-radius: 16px; word-wrap: break-word; overflow-wrap: anywhere; }
.yc-bot > div { background: #fff; border: 1px solid #e6eaef; border-top-left-radius: 4px; }
.yc-me { justify-content: flex-end; }
.yc-me > div { background: #12212f; color: #fff; border-top-right-radius: 4px; white-space: pre-wrap; }
.yc-bot p { margin: 0 0 6px; } .yc-bot p:last-child { margin-bottom: 0; }
.yc-bot ul { margin: 4px 0 6px; padding-left: 18px; } .yc-bot li { margin: 2px 0; }
.yc-bot a { color: #c25e00; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.yc-bot b { font-weight: 700; }
.yc-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.yc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #f7861e; animation: ycDot 1s infinite ease-in-out; }
.yc-typing i:nth-child(2) { animation-delay: .15s; } .yc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ycDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.yc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.yc-chips button { padding: 7px 12px; border-radius: 99px; border: 1.5px solid rgba(247,134,30,.5); background: #fff; color: #12212f; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; transition: background .15s, border-color .15s; }
.yc-chips button:hover, .yc-chips button:focus-visible { background: #fff4e8; border-color: #f7861e; outline: none; }

.yc-card { margin: 0 0 12px; padding: 14px; border-radius: 16px; background: #fff; border: 1.5px solid rgba(247,134,30,.45); }
.yc-card p { margin: 0 0 10px; font-weight: 700; font-size: 14.5px; }
.yc-card label { display: block; margin-bottom: 8px; }
.yc-card span { display: block; font-size: 12px; font-weight: 600; color: #5d6b7a; margin-bottom: 3px; }
.yc-card input { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1.5px solid #e6eaef; font: 500 15px Inter, system-ui, sans-serif; color: #12212f; }
.yc-card input:focus { outline: none; border-color: #f7861e; box-shadow: 0 0 0 3px rgba(247,134,30,.15); }
.yc-card .yc-send-c { width: 100%; height: 42px; margin-top: 4px; border: 0; border-radius: 11px; background: #f7861e; color: #fff; font: 700 14.5px Inter, system-ui, sans-serif; cursor: pointer; }
.yc-card .yc-err { min-height: 18px; margin: 6px 0 0; font-size: 12.5px; color: #c0262c; font-weight: 500; }
.yc-card.done { border-color: rgba(34,178,107,.5); }
.yc-card.done p { color: #138a50; margin: 0; }

.yc-foot { padding: 10px 12px 10px; background: #fff; border-top: 1px solid #e6eaef; }
.yc-row { display: flex; align-items: flex-end; gap: 8px; }
.yc-row textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 13px; border-radius: 14px; border: 1.5px solid #e6eaef; resize: none; font: 500 15px/1.4 Inter, system-ui, sans-serif; color: #12212f; background: #f7f8fa; }
.yc-row textarea:focus { outline: none; border-color: #f7861e; background: #fff; }
.yc-row .yc-go { flex: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: #f7861e; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s, opacity .15s; }
.yc-row .yc-go:disabled { opacity: .45; cursor: default; }
.yc-row .yc-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.yc-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 11.5px; color: #7a8794; }
.yc-meta button { border: 0; background: none; padding: 0; color: #c25e00; font: 600 12px Inter, system-ui, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.yc-meta a { color: inherit; }

@media (max-width: 560px) {
  .yc-launch { height: 50px; padding: 0 16px 0 6px; font-size: 14px; }
  .yc-launch small { display: none; }
  .yc-panel { inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  body.yc-open { overflow: hidden; }
  body.has-yc .stt { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 80px); }
}
@media (prefers-reduced-motion: reduce) {
  .yc-launch, .yc-panel, .yc-hint { transition: none; }
  .yc-typing i { animation: none; opacity: .7; }
  .yc-log { scroll-behavior: auto; }
}

/* ===== AI launcher v2: a bot, not a button ===== */
.yc-launch { isolation: isolate; height: 62px; padding: 0 20px 0 7px; gap: 12px; border-radius: 99px; background: #2A353B; color: #fff; box-shadow: 0 18px 40px -12px rgba(18, 33, 47, .7); overflow: visible; }
.yc-launch::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: conic-gradient(from var(--ycA, 0deg), #f7861e, #ffd29c, #2A353B 40%, #2A353B 60%, #ffb45c, #f7861e); animation: ycSpin 4s linear infinite; }
.yc-launch::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #2A353B; }
@property --ycA { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ycSpin { to { --ycA: 360deg; } }
.yc-launch:hover { box-shadow: 0 22px 46px -12px rgba(247, 134, 30, .55); transform: translateY(-3px); }
.yc-launch .yc-bot { position: relative; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffc27a, #f7861e 60%, #d8670a); box-shadow: 0 0 0 3px rgba(247, 134, 30, .25), 0 8px 18px -6px rgba(247, 134, 30, .9); animation: ybBob 3s ease-in-out infinite; }
.yb-ant { position: absolute; left: 50%; top: -7px; width: 2px; height: 8px; margin-left: -1px; background: #ffd29c; border-radius: 2px; }
.yb-ant::after { content: ""; position: absolute; left: 50%; top: -5px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 210, 156, .9); animation: ybPing 1.6s ease-in-out infinite; }
.yb-face { position: absolute; left: 7px; right: 7px; top: 12px; bottom: 11px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; place-items: center; border-radius: 12px; background: #12212f; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4); }
.yb-eye { width: 8px; height: 9px; margin-top: 3px; border-radius: 50%; background: #7ff0ff; box-shadow: 0 0 6px #7ff0ff; animation: ybBlink 4.5s infinite; }
.yb-mouth { grid-column: 1 / -1; width: 12px; height: 4px; margin-bottom: 3px; border-radius: 0 0 6px 6px; background: #7ff0ff; opacity: .85; animation: ybTalk 4.5s infinite; }
.yb-on { position: absolute; right: -1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2.5px #2A353B; }
.yb-on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: ybOn 2s ease-out infinite; }
.yc-lt b { display: flex; align-items: center; gap: 6px; font-size: 15px; letter-spacing: -.01em; }
.yb-spark { fill: #ffb45c; animation: ybSpark 2.4s ease-in-out infinite; }
.yc-lt small { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .72); opacity: 1; }
.yc-lt small i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
@keyframes ybBob { 50% { transform: translateY(-2px) rotate(-4deg); } }
@keyframes ybPing { 50% { opacity: .4; } }
@keyframes ybBlink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@keyframes ybTalk { 0%, 60%, 100% { transform: scaleX(1); } 66% { transform: scaleX(.6) scaleY(1.6); } 72% { transform: scaleX(1.1); } 78% { transform: scaleX(.7) scaleY(1.4); } }
@keyframes ybOn { from { transform: scale(1); opacity: .7; } to { transform: scale(2.3); opacity: 0; } }
@keyframes ybSpark { 50% { transform: scale(1.25) rotate(20deg); opacity: .7; } }
.yc-head .yc-mk { background: radial-gradient(circle at 35% 30%, #ffc27a, #f7861e 60%, #d8670a); }
html.ea-calm .yc-launch { padding: 0 7px; }
html.ea-calm .yc-launch > .yc-lt { display: none; }
@media (max-width: 560px) { .yc-launch { height: 56px; padding: 0 16px 0 5px; } .yc-launch .yc-bot { width: 44px; height: 44px; } .yc-lt small { display: none; } }
@media (prefers-reduced-motion: reduce) { .yc-launch::before, .yc-bot, .yb-ant::after, .yb-eye, .yb-mouth, .yb-on::after, .yb-spark { animation: none !important; } }
.yc-hint { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 84px); }

/* ===== AI launcher v3: living orb + typed questions ===== */
.yc-launch { height: 66px; padding: 0 22px 0 8px; gap: 14px; background: #2A353B; }
.yc-launch::after { background: radial-gradient(ellipse at 15% 50%, rgba(247, 134, 30, .22), transparent 55%), #2A353B; }
.yc-orb { position: relative; width: 52px; height: 52px; flex: none; }
.yo-aura { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #f7861e, #ffd29c, #7ff0ff, #f7861e, #ff6a3d, #f7861e); filter: blur(1px); animation: yoSpin 5s linear infinite; box-shadow: 0 0 22px rgba(247, 134, 30, .7); }
.yo-aura::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 134, 30, .45), transparent 70%); animation: yoBreath 2.6s ease-in-out infinite; }
.yo-core { position: absolute; inset: 5px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; place-items: center; padding: 9px 7px 8px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #1d2d38, #0f1a22); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), inset 0 -6px 12px rgba(127, 240, 255, .12); }
.yo-core .yb-eye { width: 7px; height: 8px; margin-top: 2px; }
.yo-core .yb-mouth { width: 11px; height: 3.5px; margin-bottom: 1px; }
.yo-orbit { position: absolute; inset: -7px; border-radius: 50%; animation: yoSpin 7s linear infinite reverse; }
.yo-orbit i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffd29c; box-shadow: 0 0 8px #ffb45c; }
.yo-orbit i:nth-child(1) { left: 50%; top: -1px; }
.yo-orbit i:nth-child(2) { right: 2px; bottom: 9px; width: 4px; height: 4px; background: #7ff0ff; box-shadow: 0 0 8px #7ff0ff; }
.yo-orbit i:nth-child(3) { left: 3px; bottom: 7px; width: 3px; height: 3px; }
.yc-orb .yb-on { right: 0; bottom: 0; z-index: 2; }
@keyframes yoSpin { to { transform: rotate(360deg); } }
@keyframes yoBreath { 50% { transform: scale(1.18); opacity: .5; } }
.yc-launch .yc-lt { display: grid; gap: 3px; min-width: 228px; text-align: left; }
.yc-lt b { display: flex; align-items: center; gap: 7px; font-size: 16px; }
.yo-name { background: linear-gradient(90deg, #fff 0%, #fff 40%, #ffd29c 50%, #fff 60%, #fff 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: yoShine 3.5s linear infinite; }
@keyframes yoShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.yo-ai { padding: 2px 7px; border-radius: 6px; background: linear-gradient(135deg, #ffa24a, #f7861e); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; box-shadow: 0 0 12px rgba(247, 134, 30, .6); }
.yc-launch .yc-lt small { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.yc-lt small i:not(.yo-caret) { display: none; }
.yo-ask { color: #ffb45c; font-weight: 700; }
.yo-caret { display: inline-block; width: 2px; height: 13px; margin-left: 1px; background: #ffb45c; animation: yoCaret 1s steps(2) infinite; }
@keyframes yoCaret { 50% { opacity: 0; } }
.yc-launch:hover .yo-aura { animation-duration: 1.6s; }
.yc-hint { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 88px); }
html.ea-calm .yc-launch { padding: 0 8px; }
@media (max-width: 560px) { .yc-launch { height: 58px; padding: 0 16px 0 6px; } .yc-orb { width: 46px; height: 46px; } .yc-launch .yc-lt { min-width: 0; } .yc-launch .yc-lt small { display: none; } }
@media (prefers-reduced-motion: reduce) { .yo-aura, .yo-aura::after, .yo-orbit, .yo-name, .yo-caret { animation: none !important; } .yo-name { color: #fff; } }
.yc-launch .yc-lt small i.yo-caret { display: inline-block; width: 2px; height: 14px; border-radius: 1px; background: #ffb45c; }
.yc-orb .yb-on { width: 11px; height: 11px; right: -1px; bottom: -1px; }
.yo-core .yb-eye { width: 8px; height: 9px; }

/* AI launcher: the Yantra24x7 logo is the face (signal arcs + gear, eyes on the gear) */
.yo-core.yo-mark { inset: 4px; display: block; padding: 0; background: radial-gradient(circle at 50% 40%, #fff 0, #fff3e3 75%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6), 0 0 10px rgba(247, 134, 30, .4); overflow: hidden; }
.yo-logo { display: block; width: 100%; height: 100%; padding: 4px 3px 2px; }
.yo-arcs path { animation: yoSig 2.4s ease-in-out infinite; }
.yo-arcs .a2 { animation-delay: .3s; } .yo-arcs .a3 { animation-delay: .6s; }
@keyframes yoSig { 0%, 100% { opacity: .45; } 35%, 60% { opacity: 1; } }
.yo-eyes .e { transform-box: fill-box; transform-origin: center; animation: yoBlink 4.5s infinite; filter: drop-shadow(0 0 4px #7ff0ff); }
@keyframes yoBlink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
.yo-smile { animation: yoTalk 4.5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes yoTalk { 0%, 60%, 100% { transform: scaleX(1); } 66% { transform: scaleX(.6) scaleY(1.5); } 74% { transform: scaleX(1.1); } }
.yc-launch:hover .yo-eyes .e { animation: none; transform: scaleY(.55) translateY(1px); }
@media (prefers-reduced-motion: reduce) { .yo-arcs path, .yo-eyes .e, .yo-smile { animation: none !important; opacity: 1; } }
.yc-orb { width: 58px; height: 58px; }
.yo-core.yo-mark { inset: 3px; }
.yo-logo { padding: 5px 4px 3px; }
.yc-orb .yb-on { width: 12px; height: 12px; right: -2px; bottom: 2px; }
.yc-launch { height: 70px; }
@media (max-width: 560px) { .yc-orb { width: 50px; height: 50px; } .yc-launch { height: 62px; } }
.yc-launch .yc-mk.yc-orb { width: 58px; height: 58px; background: none; border-radius: 50%; }
.yo-arcs path { opacity: .55; }
@media (max-width: 560px) { .yc-launch .yc-mk.yc-orb { width: 50px; height: 50px; } }

/* phones: when the "Book a demo" dock is showing, the chat launcher and back-to-top stack above it */
@media (max-width: 760px) {
  body.has-dock .yc-launch { bottom: 84px; }
  body.has-dock .yc-hint { bottom: 160px; }
  body.has-dock.has-yc .stt { bottom: 160px !important; }
}
