/* H6 "Hear it": the owner's settings (business, languages, follow-the-caller, voice) drive the live call beside them.
   Every class is hl- prefixed because the hero's .win/.app/.rail/.chip rules are global. Logic in js/hear.js. */

.hl-sec { position: relative; overflow: hidden; color: var(--ink);
  background: var(--grain), radial-gradient(60% 70% at 85% 30%, var(--canvas-lilac), transparent 70%), radial-gradient(60% 70% at 70% 100%, var(--canvas-aqua), transparent 70%), var(--canvas-sky);
  background-blend-mode: multiply, normal, normal, normal; }
.hl-sec button { font: inherit; color: inherit; }
.hl-copy { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); left: max(48px, calc((100vw - 1280px) / 2)); width: min(420px, 30vw); }
.hl-eb { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 600 13px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.hl-eb::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.hl-copy h2 { margin: 0; font: 800 54px/1.03 var(--font-sans); letter-spacing: -2.1px; color: var(--ink); }
.hl-copy p { margin: 18px 0 0; font: 400 17px/1.6 var(--font-sans); color: var(--slate); }
.hl-try { margin-top: 28px; font: 600 13px/1 var(--font-sans); color: var(--slate); }
.hl-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hl-pick button { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(15,27,61,.08); background: rgba(255,255,255,.75); cursor: pointer; font-weight: 600; font-size: 14px; transition: background-color 200ms, color 200ms, box-shadow 200ms; }
.hl-pick button.on { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: var(--shadow-glow); }
/* Real-voice button (hear.js): off -> loading -> on. The equaliser moves only while a line is actually being spoken. */
.hl-sound { display: inline-flex; align-items: center; gap: 10px; height: 50px; margin-top: 18px; padding: 0 20px 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(31,91,232,.35); background: rgba(255,255,255,.9); color: var(--ink); font: 700 15px/1 var(--font-sans);
  box-shadow: 0 10px 26px rgba(31,91,232,.14); transition: background-color 200ms, color 200ms, border-color 200ms, box-shadow 200ms, transform 120ms; }
.hl-sound:hover { border-color: var(--blue); box-shadow: 0 14px 30px rgba(31,91,232,.22); } .hl-sound:active { transform: scale(.97); }
.hl-sound:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hl-sound-ic { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hl-sound-ic path:first-child { fill: var(--blue); }
.hl-sound:not([aria-pressed="true"]) .hl-sound-ic .w1 { animation: hl-sw 1.6s ease-in-out infinite; } .hl-sound:not([aria-pressed="true"]) .hl-sound-ic .w2 { animation: hl-sw 1.6s ease-in-out .25s infinite; }
@keyframes hl-sw { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.hl-eq { display: none; align-items: flex-end; gap: 3px; height: 16px; }
.hl-eq i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; }
.hl-sound[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-glow); }
.hl-sound[aria-pressed="true"] .hl-sound-ic { stroke: #fff; } .hl-sound[aria-pressed="true"] .hl-sound-ic path:first-child { fill: #fff; }
.hl-sound[aria-pressed="true"] .hl-eq { display: inline-flex; }
.hl-sound.speaking .hl-eq i { animation: hl-eq 700ms ease-in-out infinite; }
.hl-sound.speaking .hl-eq i:nth-child(2) { animation-delay: -.45s; } .hl-sound.speaking .hl-eq i:nth-child(3) { animation-delay: -.2s; } .hl-sound.speaking .hl-eq i:nth-child(4) { animation-delay: -.6s; }
@keyframes hl-eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.hl-sound.loading { cursor: progress; } .hl-sound.loading .hl-sound-tx { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .hl-sound-ic path, .hl-sound.speaking .hl-eq i { animation: none !important; } .hl-sound.speaking .hl-eq i { height: 10px; } }
@keyframes hl-br { 50% { opacity: .35; } }

/* Window: fixed 960×700, scaled by js/hear.js to fit the right column */
.hl-bleed { position: absolute; z-index: 2; transform-origin: top left; }
.hl-win { width: 960px; height: 700px; border-radius: 26px; overflow: hidden; background: #F4F7FF; border: 1px solid rgba(15,27,61,.08);
  box-shadow: 0 60px 140px rgba(20,40,120,.28), 0 10px 30px rgba(15,27,61,.08); display: grid; grid-template-rows: 44px 1fr; }
.hl-chrome { display: flex; align-items: center; gap: 8px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--font-sans); color: var(--slate); }
.hl-chrome i { width: 11px; height: 11px; border-radius: 999px; background: #D8DFEE; } .hl-chrome span { margin-left: 14px; }
.hl-app { display: grid; grid-template-columns: 64px 340px 1fr; min-height: 0; }
.hl-rail { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 0; background: #fff; border-right: 1px solid var(--line); }
.hl-rail img { width: 42px; border-radius: 12px; margin-bottom: 10px; }
.hl-t { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--slate); }
.hl-t.on { background: var(--blue); color: #fff; box-shadow: var(--shadow-glow); }

/* Settings column */
.hl-set { padding: 18px 16px; background: #FAFBFF; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.hl-titlerow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hl-set h3 { margin: 0; font: 800 22px/1 var(--font-sans); letter-spacing: -.6px; color: var(--ink); }
.hl-crumb { margin-bottom: 4px; font: 500 13px/1 var(--font-sans); color: var(--slate); }
.hl-card { padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid rgba(15,27,61,.06); transition: box-shadow 300ms, border-color 300ms; }
.hl-card.flash { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,91,232,.12); }
.hl-card > b { display: block; margin-bottom: 7px; font: 600 13px/1 var(--font-sans); color: var(--slate); }
.hl-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--mist); }
.hl-seg button { height: 30px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 600 13px/1 var(--font-sans); color: var(--slate); transition: background-color 260ms var(--ease-spring), color 160ms; }
.hl-seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-lift); }
.hl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; font: 500 14px/1.2 var(--font-sans); }
.hl-row + .hl-row { border-top: 1px solid var(--line); }
.hl-row small { display: block; margin-top: 2px; font: 400 12px/1.2 var(--font-sans); color: var(--slate); }
.hl-sw { position: relative; flex: none; width: 40px; height: 24px; border: 0; border-radius: 999px; background: #D3DAE8; cursor: pointer; transition: background-color 260ms; }
.hl-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(15,27,61,.25); transition: transform 260ms var(--ease-spring); }
.hl-sw.on { background: var(--blue); } .hl-sw.on::after { transform: translateX(16px); }
.hl-voices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hl-voices button { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1.5px solid rgba(15,27,61,.08); background: #fff; cursor: pointer; text-align: left; transition: border-color 200ms, background-color 200ms; }
.hl-voices button.on { border-color: var(--blue); background: var(--blue-soft); }
.hl-vi { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; color: #fff; font: 700 12px/1 var(--font-sans); flex: none; }
.hl-voices b { display: block; font: 600 13px/1.2 var(--font-sans); } .hl-voices div > span { font: 400 11px/1.2 var(--font-sans); color: var(--slate); white-space: nowrap; }
.hl-greet { padding: 8px 10px; border-radius: 12px; background: var(--mist); font: 400 13px/1.45 var(--font-sans); }
.hl-greet.ta { font-family: "Mukta Malar", var(--font-sans); } .hl-greet.hi { font-family: Mukta, var(--font-sans); }
.hl-saved { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--done-soft); color: var(--done-ink); font: 600 12px/1 var(--font-sans); opacity: 0; transition: opacity 260ms; }
.hl-saved.on { opacity: 1; }

/* Live call column */
.hl-call { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 14px; padding: 20px 28px 24px; min-height: 0; }
.hl-ch { display: flex; align-items: center; gap: 14px; }
.hl-av { position: relative; width: 50px; height: 50px; flex: none; border-radius: 999px; display: grid; place-items: center; color: #fff; font: 700 16px/1 var(--font-sans); background: var(--avatar-3); }
.hl-av::after { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid var(--online); animation: hl-ring 1.6s var(--ease-out-soft) infinite; }
@keyframes hl-ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.hl-ch b { display: block; font: 700 19px/1.2 var(--font-sans); } .hl-ch div > span { font: 400 13px/1.4 var(--font-sans); color: var(--slate); }
.hl-live { margin-left: auto; flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--missed-soft); color: var(--missed); font: 700 12px/1 var(--font-sans); }
.hl-live i { width: 8px; height: 8px; border-radius: 999px; background: var(--missed); animation: hl-br 1.2s infinite; }
.hl-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hl-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font: 600 12px/1 var(--font-sans); }
.hl-chip.v { background: var(--violet-soft); color: var(--violet-ink); } .hl-chip.b { background: var(--blue-soft); color: var(--blue-ink); } .hl-chip.g { background: var(--mist); color: var(--slate); }
.hl-chip.pop { animation: hl-pop 420ms var(--ease-spring); } @keyframes hl-pop { 40% { transform: scale(1.14); } }
.hl-tr { display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; overflow: hidden; min-height: 0; }
.hl-ln { max-width: 80%; padding: 11px 15px; border-radius: 18px; font: 400 15px/1.45 var(--font-sans); animation: hl-rise 300ms var(--ease-out-soft) both; }
.hl-ln small { display: block; margin-bottom: 3px; font: 600 11px/1 var(--font-sans); color: var(--slate); }
.hl-ln em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--slate); }
.hl-ln.c { align-self: flex-start; background: #fff; border: 1px solid rgba(15,27,61,.06); border-bottom-left-radius: 6px; }
.hl-ln.a { align-self: flex-end; background: var(--blue-soft); border-bottom-right-radius: 6px; }
.hl-ln.ta { font-family: "Mukta Malar", var(--font-sans); } .hl-ln.hi { font-family: Mukta, var(--font-sans); }
.hl-ln.sys { align-self: center; padding: 6px 12px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); font: 600 12px/1 var(--font-sans); }
@keyframes hl-rise { from { opacity: 0; transform: translateY(8px); } }
.hl-wave { display: flex; align-items: center; gap: 4px; height: 64px; padding: 0 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(15,27,61,.06); }
.hl-wave b { flex: 1; border-radius: 999px; background: #D5DFF5; transition: background-color 140ms; }
.hl-wave b.p { background: var(--blue); }
.hl-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.hl-ok { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--done-soft); color: var(--done-ink); font: 600 14px/1 var(--font-sans); opacity: 0; transform: translateY(6px); transition: opacity 300ms, transform 400ms var(--ease-spring); }
.hl-ok.on { opacity: 1; transform: none; }
.hl-tm { margin-left: auto; font: 600 13px/1 var(--font-sans); color: var(--slate); font-variant-numeric: tabular-nums; }

/* ── Premium call motion (hear.js) ─────────────────────────────────────────────────────────────── */
.hl-call { position: relative; }
/* Chat: newest at the bottom, older lines fade out at the top like a real messenger */
.hl-tr { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 64px); mask-image: linear-gradient(to bottom, transparent 0, #000 64px); }
.hl-ln { animation: hl-in 520ms var(--ease-spring) both; transform-origin: bottom left; transition: box-shadow 320ms var(--ease-out-soft), border-color 320ms; }
.hl-ln.a { transform-origin: bottom right; }
@keyframes hl-in { from { opacity: 0; transform: translateY(14px) scale(.94); filter: blur(6px); } 60% { filter: blur(0); } to { opacity: 1; transform: none; filter: none; } }
.hl-ln.a.live { box-shadow: 0 0 0 2px rgba(31,91,232,.28), 0 12px 28px rgba(31,91,232,.20); }
.hl-ln.c.live { border-color: rgba(124,58,237,.35); box-shadow: 0 0 0 2px rgba(124,58,237,.14), 0 12px 28px rgba(15,27,61,.10); }
.hl-ln.sys { animation: hl-in 420ms var(--ease-out-soft) both; transform-origin: center; }
/* typing… */
.hl-ln.typing { display: inline-flex; align-items: center; gap: 5px; padding: 14px 16px; animation-duration: 320ms; }
.hl-ln.typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; animation: hl-dot 1s ease-in-out infinite; }
.hl-ln.typing.a { color: var(--blue); } .hl-ln.typing.c { color: var(--slate); }
.hl-ln.typing i:nth-child(2) { animation-delay: .15s; } .hl-ln.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hl-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }
/* who is talking: caller ring pulses only while the caller speaks; the voice chip glows while Anssay speaks */
.hl-av::after { animation: none; opacity: 0; }
.hl-call.c-talk .hl-av::after { animation: hl-ring 1.4s var(--ease-out-soft) infinite; }
.hl-chip.b { transition: box-shadow 300ms; } .hl-call.a-talk #hlChVoice { box-shadow: 0 0 0 3px rgba(31,91,232,.18), 0 6px 16px rgba(31,91,232,.25); }
/* wave: breathes on silent lines, follows the real voice on spoken ones (heights set by the analyser) */
.hl-wave b { transform-origin: center; transition: height 110ms linear, background-color 160ms; }
.hl-wave.talk b { animation: hl-bar 900ms ease-in-out infinite; animation-delay: calc(var(--i) * -41ms); }
@keyframes hl-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.42); } }
.hl-wave.live b { transition: height 70ms linear, background-color 160ms; }
.hl-wave.live b.p { background: linear-gradient(180deg, #5B8CFF, var(--blue)); }
/* outcome: pops in, the tick draws itself, a light sweeps across */
.hl-ok { position: relative; overflow: hidden; gap: 8px; }
.hl-ok svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.hl-ok.on { animation: hl-okpop 620ms var(--ease-spring) both; } .hl-ok.on svg { animation: hl-tick 520ms 220ms var(--ease-out-soft) forwards; }
.hl-ok.on::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-100%); animation: hl-sweep 900ms 420ms ease-out forwards; }
@keyframes hl-okpop { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes hl-tick { to { stroke-dashoffset: 0; } } @keyframes hl-sweep { to { transform: translateX(100%); } }
/* Connecting call… (first play only) */
.hl-conn { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  background: rgba(244,247,255,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transition: opacity 280ms var(--ease-out-soft), visibility 0s 280ms; }
.hl-conn.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.hl-conn b { margin-top: 10px; font: 800 20px/1.2 var(--font-sans); color: var(--ink); } .hl-conn span#hlConnTx { font: 500 14px/1.3 var(--font-sans); color: var(--slate); font-variant-numeric: tabular-nums; }
.hl-conn-ring { position: relative; width: 120px; height: 120px; }
.hl-conn-ring > svg { position: absolute; inset: 0; transform: rotate(-90deg); fill: none; stroke-width: 5; }
.hl-conn-ring circle { stroke: rgba(31,91,232,.14); } .hl-conn-ring circle.p { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: calc(339.3 * (1 - var(--p, 0))); transition: stroke-dashoffset 300ms var(--ease-out-soft); }
.hl-conn-ph { position: absolute; inset: 26px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #5B8CFF, var(--blue)); box-shadow: var(--shadow-glow); animation: hl-shake 1.2s ease-in-out infinite; }
.hl-conn-ph::before, .hl-conn-ph::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(31,91,232,.5); animation: hl-ripple 1.6s var(--ease-out-soft) infinite; }
.hl-conn-ph::after { animation-delay: .8s; }
.hl-conn-ph svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hl-ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes hl-shake { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } }
/* sound button: spinner while connecting */
.hl-spin { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: hl-rot 800ms linear infinite; }
.hl-sound.loading .hl-spin { display: inline-block; } .hl-sound.loading .hl-sound-ic, .hl-sound.loading .hl-eq { display: none; }
@keyframes hl-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hl-ln, .hl-ln.typing i, .hl-wave.talk b, .hl-call.c-talk .hl-av::after, .hl-conn-ph, .hl-conn-ph::before, .hl-conn-ph::after, .hl-ok.on, .hl-ok.on::after, .hl-spin { animation: none !important; }
  .hl-ok svg { stroke-dashoffset: 0; }
}

/* TL v4: benefit + scene above the call, returning-patient tag, after-call card, section copy */
.hl-scene { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hl-scene b { font: 800 13px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.hl-scene span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; background: #fff; border: 1px solid rgba(15,27,61,.08); font: 600 12px/1 var(--font-sans); color: var(--slate); }
.hl-scene span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--needs-you); }
.hl-chip.r { background: var(--done-soft); color: var(--done-ink); }
.hl-chip.r::before { content: "↺"; margin-right: 6px; font-weight: 800; }
.hl-ln.sys { font-size: 13px; letter-spacing: .02em; }
.hl-ln.after { align-self: stretch; max-width: none; padding: 14px 16px; background: #fff; border: 1px solid rgba(14,138,102,.25); box-shadow: 0 12px 28px rgba(14,138,102,.10); }
.hl-ln.after small { color: var(--done-ink); letter-spacing: .08em; text-transform: uppercase; }
.hl-ln.after ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.hl-ln.after li { display: flex; align-items: center; gap: 10px; font: 500 14px/1.35 var(--font-sans); color: var(--ink); animation: hl-in 460ms var(--ease-out-soft) both; animation-delay: calc(250ms + var(--d) * 330ms); }
.hl-ln.after li i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--done) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
  animation: hl-okpop 520ms var(--ease-spring) both; animation-delay: calc(330ms + var(--d) * 330ms); }
.hl-tagline { margin: 20px 0 0 !important; font: 700 16px/1.45 var(--font-sans) !important; color: var(--ink) !important; }
.hl-cta { display: inline-flex; align-items: center; gap: 10px; height: 50px; margin-top: 14px; padding: 0 24px; border-radius: 999px; background: var(--blue); color: #fff;
  font: 700 15px/1 var(--font-sans); box-shadow: var(--shadow-glow); transition: background-color 160ms, transform 120ms; }
.hl-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms var(--ease-out-soft); }
.hl-cta:hover { background: var(--blue-deep); } .hl-cta:hover svg { transform: translateX(3px); } .hl-cta:active { transform: scale(.97); }
.hl-note { display: block; margin-top: 12px; font: 400 12px/1.45 var(--font-sans); color: var(--slate); }
@media (prefers-reduced-motion: reduce) { .hl-ln.after li, .hl-ln.after li i { animation: none !important; } }

/* New caller: number + person icon until they say their name, then the name animates in (hear.js setCaller) */
.hl-chip[hidden] { display: none; } /* display:inline-flex would otherwise beat the hidden attribute (empty tag bug) */
.hl-av svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.hl-av { transition: background-color 400ms var(--ease-out-soft); }
.hl-ln small { width: fit-content; padding: 1px 6px; margin-left: -6px; border-radius: 6px; } /* stays display:block from above */

/* Name reveal (hear.js setCaller / playCall). The caller says their name: it is highlighted in their bubble, then the
   header turns from the number into the name, and a "+91 … → Rahul" line confirms it. All motion is off for reduced motion. */
.hl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Header: avatar pops into colour, a gradient ring sweeps round it, sparks burst out, a soft glow pulses */
.hl-ch.reveal .hl-av { animation: hl-avpop 700ms var(--ease-spring) both, hl-avglow 1.4s var(--ease-out-soft) 200ms both; }
@keyframes hl-avpop { 0% { transform: scale(.55) rotate(-12deg); } 60% { transform: scale(1.12) rotate(3deg); } 100% { transform: none; } }
@keyframes hl-avglow { 0% { box-shadow: 0 0 0 0 rgba(31,91,232,.5), 0 0 0 0 rgba(124,58,237,.35); } 100% { box-shadow: 0 0 0 14px rgba(31,91,232,0), 0 0 0 26px rgba(124,58,237,0); } }
.hl-av::before { content: ""; position: absolute; inset: -5px; border-radius: 999px; opacity: 0; pointer-events: none;
  background: conic-gradient(from 0deg, var(--blue), var(--violet), #22C55E, var(--blue));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.hl-ch.reveal .hl-av::before { animation: hl-ringsweep 1.3s var(--ease-out-soft) 120ms both; }
@keyframes hl-ringsweep { 0% { opacity: 0; transform: rotate(-300deg) scale(.8); } 35% { opacity: 1; } 100% { opacity: 1; transform: none; } } /* ends as the ring that stays */
.hl-spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 999px; pointer-events: none; opacity: 0;
  background: linear-gradient(135deg, #8FB0FF, var(--violet)); }
.hl-spark:nth-child(even) { width: 4px; height: 4px; margin: -2px; background: #22C55E; }
.hl-ch.reveal .hl-spark { animation: hl-spark 900ms var(--ease-out-soft) 260ms both; }
@keyframes hl-spark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-18px) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-44px) scale(1); } }
/* Header: the number lifts away and the name rises letter by letter with a blue-violet colour wave */
#hlName { position: relative; }
.hl-nm-old { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; animation: hl-nmout 520ms var(--ease-out-soft) both; }
@keyframes hl-nmout { to { opacity: 0; transform: translateY(-14px); filter: blur(6px); } }
.hl-nm-new { display: inline-block; white-space: nowrap; perspective: 400px; }
.hl-nm-new > span { display: inline-block; transform-origin: 50% 100%; animation: hl-chin 760ms var(--ease-spring) both; animation-delay: calc(220ms + var(--k) * 48ms); }
@keyframes hl-chin { 0% { opacity: 0; transform: translateY(.7em) rotateX(-80deg); filter: blur(4px); }
  50% { opacity: 1; filter: none; text-shadow: 0 0 14px rgba(255,255,255,.95); } 100% { opacity: 1; transform: none; text-shadow: none; } }
.hl-ch.reveal #hlMeta { display: inline-block; animation: hl-metain 600ms var(--ease-out-soft) 420ms both; }
@keyframes hl-metain { from { opacity: 0; transform: translateY(6px); } }
/* Header name, ALWAYS highlighted (Gokul, 4 Nov). Known caller: the name sits in a blue-violet gradient pill with a soft
   glow, a gradient ring round the avatar, and a slow shine every few seconds. New caller: the number sits in a dashed
   "waiting for the name" pill with a moving shimmer, a grey avatar with a slowly turning dashed ring, and a "New caller" tag. */
.hl-ch #hlName { display: block; width: fit-content; max-width: 100%; /* block: keeps the meta line under it */ padding: 4px 13px 5px; margin: 0 0 4px -2px; border-radius: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hl-ch.known #hlName { color: #fff; letter-spacing: -.2px; background: linear-gradient(100deg, var(--blue) 0%, #5B4BF0 55%, var(--violet) 100%) no-repeat left / 100% 100%;
  box-shadow: 0 10px 24px rgba(91,75,240,.34), 0 0 0 4px rgba(124,58,237,.10), inset 0 1px 0 rgba(255,255,255,.28); }
.hl-ch.known #hlName::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%) no-repeat 100% 0 / 250% 100%; animation: hl-nameshine 5.5s var(--ease-in-out) 1.6s infinite; }
@keyframes hl-nameshine { 0% { background-position: 100% 0; } 22%, 100% { background-position: 0% 0; } }
.hl-ch.reveal #hlName { animation: hl-pillin 760ms var(--ease-spring) 80ms both; }
@keyframes hl-pillin { 0% { background-size: 0% 100%; box-shadow: 0 0 0 0 rgba(91,75,240,0); } 55% { transform: scale(1.06); } 100% { background-size: 100% 100%; transform: none; } }
.hl-nm-old { color: var(--ink); padding: 4px 13px 5px; }
.hl-ch:not(.known) #hlName { color: var(--ink); border: 1.5px dashed rgba(109,40,217,.32); padding: 3px 12px 4px;
  background: #fff linear-gradient(100deg, transparent 35%, rgba(124,58,237,.10) 50%, transparent 65%) no-repeat 100% 0 / 250% 100%; animation: hl-waitname 2.6s var(--ease-in-out) infinite; }
@keyframes hl-waitname { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.hl-av.anon { background: linear-gradient(140deg, #A9B3CF, #6E7A9A); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.hl-av.anon::before { opacity: 1; inset: -6px; background: none; border: 2px dashed rgba(109,40,217,.38); -webkit-mask: none; mask: none; animation: hl-rot 9s linear infinite; }
.hl-av:not(.anon)::before { opacity: 1; } /* the gradient ring stays round a known caller */
.hl-av:not(.anon) { box-shadow: 0 8px 20px rgba(15,27,61,.18); }
.hl-newtag { display: inline-flex; align-items: center; gap: 6px; height: 20px; margin-right: 7px; padding: 0 9px; border-radius: 999px; vertical-align: 1px;
  background: var(--violet-soft); color: var(--violet-ink); font: 700 11px/1 var(--font-sans); letter-spacing: .02em; }
.hl-newtag i { width: 6px; height: 6px; border-radius: 999px; background: var(--violet); animation: hl-br 1.4s infinite; }
@media (prefers-reduced-motion: reduce) { .hl-ch.known #hlName::after, .hl-ch:not(.known) #hlName, .hl-ch.reveal #hlName, .hl-av.anon::before, .hl-newtag i { animation: none !important; } }
/* "New customer" tag (a returning caller keeps the ↺ one) */
.hl-chip.r.new::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--done); box-shadow: 0 0 0 3px rgba(14,138,102,.18); }

/* Chat: every "Caller" label turns into the name with a short flip and a blue wash */
.hl-ln small.named { animation: hl-named 1.4s var(--ease-out-soft) both; }
@keyframes hl-named { 0% { opacity: 0; transform: translateY(5px); color: var(--blue); background: var(--blue-soft); } 18% { opacity: 1; transform: none; }
  70% { color: var(--blue); background: var(--blue-soft); } 100% { background: transparent; } }
/* Chat: the name where it is said. It appears plain, then (550 ms) a blue-violet pill fills in behind it, the text turns
   white, it pops, and a shine runs across. It stays highlighted; hear.js then flies a copy of it up to the header. */
.hl-nm { color: inherit; padding: 0 3px; margin: 0 -1px; border-radius: 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(90deg, rgba(31,91,232,.20), rgba(124,58,237,.20)) no-repeat left / 100% 100%; }
.hl-nm.said { display: inline-block; position: relative; white-space: nowrap; /* no overflow:hidden: it would lift the word off the text baseline */ padding: 1px 9px; margin: 0 1px; border-radius: 8px;
  font-weight: 700; color: #fff; background: linear-gradient(100deg, var(--blue) 0%, #5B4BF0 55%, var(--violet) 100%) no-repeat left / 100% 100%;
  box-shadow: 0 6px 16px rgba(91,75,240,.38), inset 0 1px 0 rgba(255,255,255,.28); animation: hl-markin 700ms var(--ease-spring) 550ms both; }
@keyframes hl-markin { 0% { color: var(--ink); background-size: 0% 100%; box-shadow: 0 0 0 0 rgba(91,75,240,0); transform: none; }
  40% { color: #fff; } 60% { transform: scale(1.14); box-shadow: 0 0 0 6px rgba(91,75,240,.18), 0 10px 22px rgba(91,75,240,.40); } 100% { background-size: 100% 100%; } }
.hl-nm.said::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; /* the shine moves inside the pill's own box */
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.7) 50%, transparent 62%) no-repeat 100% 0 / 250% 100%; animation: hl-shine 900ms var(--ease-out-soft) 1150ms both; }
@keyframes hl-shine { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes hl-mark { from { background-size: 0% 100%; } }
/* the small English meaning under it: same idea, quieter */
em .hl-nm.said { display: inline; padding: 0 4px; margin: 0; border-radius: 5px; font-weight: 700; color: var(--blue-ink); box-shadow: none;
  background: linear-gradient(90deg, rgba(31,91,232,.14), rgba(124,58,237,.14)) no-repeat left / 100% 100%; animation: hl-mark 600ms var(--ease-out-soft) 750ms both; }
em .hl-nm.said::after { content: none; }
.hl-fly { animation: none !important; } .hl-fly::after { content: none; } /* the copy that flies to the header */

.hl-nm.soft { font-weight: 600; color: var(--blue-ink); background: none; padding: 0; margin: 0; box-shadow: inset 0 -2px 0 rgba(31,91,232,.22); }
/* Chat: the bubble itself gets one light sheen and a soft blue-violet edge */
.hl-ln.c.id { position: relative; overflow: hidden; flex: none; /* overflow would otherwise let the flex column squash it */ border-color: rgba(124,58,237,.28); box-shadow: 0 0 0 3px rgba(124,58,237,.08), 0 10px 26px rgba(31,91,232,.10); }
.hl-ln.c.id::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.85) 48%, rgba(170,190,255,.35) 54%, transparent 70%); animation: hl-sheen 1.1s var(--ease-out-soft) 600ms both; }
@keyframes hl-sheen { to { transform: translateX(110%); } }
/* Chat: "+91 91760 44556 → (R) Rahul" — the number became a person */
.hl-ln.sys.who { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; background: #fff; color: var(--slate);
  border: 1px solid rgba(14,138,102,.22); box-shadow: 0 8px 22px rgba(14,138,102,.12); font: 600 12px/1 var(--font-sans); letter-spacing: 0; }
.hl-ln.sys.who .ph { text-decoration: line-through; text-decoration-color: rgba(15,27,61,.25); }
.hl-ln.sys.who svg { width: 14px; height: 14px; fill: none; stroke: var(--done); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hl-ln.sys.who .nm { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 3px; border-radius: 999px; background: var(--done-soft); color: var(--done-ink); font-weight: 700; }
.hl-ln.sys.who .nm i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; color: #fff; font: 700 10px/1 var(--font-sans); font-style: normal; }
.hl-ln.sys.who .nm { animation: hl-avpop 600ms var(--ease-spring) 180ms both; }

@media (prefers-reduced-motion: reduce) {
  .hl-ch.reveal .hl-av, .hl-ch.reveal .hl-av::before, .hl-ch.reveal .hl-spark, .hl-nm-old, .hl-nm-new > span, .hl-ch.reveal #hlMeta,
  .hl-ln small.named, .hl-nm.said, .hl-nm.said::after, .hl-nm-new, .hl-ln.c.id::after, .hl-ln.sys.who .nm { animation: none !important; }
  .hl-nm-old, .hl-spark { display: none; }
}

@media (max-width: 900px) {
  .hl-sec { padding: 64px 20px 32px; }
  .hl-copy { position: relative; top: auto; left: auto; transform: none; width: auto; }
  .hl-copy h2 { font-size: 36px; letter-spacing: -1.3px; }
  .hl-bleed { position: relative; margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { .hl-av::after, .hl-live i { animation: none; } }
