/* ── Two ways in: live product cards (replaces the hover videos) ── */
.hl-way.is-live {
  min-height: 0; padding: 36px 36px 34px; gap: 26px; justify-content: flex-start;
  color: #000; border: 1px solid rgba(13, 148, 136, .14);
  background: linear-gradient(140deg, #F2FDFB 0%, #DDF7F1 48%, #BDEDE3 100%);
  transition: transform .5s var(--hl-ease), box-shadow .5s ease;
}
.hl-way.is-live.alt { background: linear-gradient(220deg, #F2FDFB 0%, #DDF7F1 48%, #BDEDE3 100%); }
.hl-way.is-live:hover { color: #000; border-color: rgba(13, 148, 136, .3); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(13, 148, 136, .35); }
.hl-way.is-live:hover p { color: var(--hl-body); }
.hl-way.is-live:hover .hl-way-tag { color: var(--hl-teal); }
.hl-way.is-live:hover .hl-btn-dark { background: #000; color: #fff !important; }
.hl-way.is-live:hover .hl-btn-dark:hover { background: var(--hl-teal); color: #fff !important; }
.hl-way.is-live .hl-btn-dark { margin-top: 0; }
.hl-way.is-live > div:not(.hl-silk):not(.hl-live) { position: relative; z-index: 1; }

/* moving silk behind everything */
.hl-silk { position: absolute; inset: -20%; z-index: -1; pointer-events: none; }
.hl-silk svg { width: 100%; height: 100%; display: block; }
.hl-silk path { fill: none; stroke: #fff; stroke-linecap: round; }
.hl-silk .s1 { stroke-width: 90; opacity: .42; animation: hlSilkA 16s ease-in-out infinite alternate; }
.hl-silk .s2 { stroke-width: 46; opacity: .5; animation: hlSilkB 13s ease-in-out infinite alternate; }
.hl-silk .s3 { stroke-width: 140; opacity: .22; animation: hlSilkA 20s ease-in-out infinite alternate-reverse; }
.hl-silk .s4 { stroke: #5EEAD4; stroke-width: 70; opacity: .18; animation: hlSilkB 18s ease-in-out infinite alternate-reverse; }
.hl-silk svg { filter: blur(14px); }
@keyframes hlSilkA { from { transform: translate(-4%, 2%) rotate(-3deg); } to { transform: translate(5%, -4%) rotate(4deg); } }
@keyframes hlSilkB { from { transform: translate(4%, -2%) rotate(3deg); } to { transform: translate(-5%, 5%) rotate(-4deg); } }

/* the glass product panel */
.hl-live {
  position: relative; z-index: 1; border-radius: 18px; padding: 14px;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 24px 50px -28px rgba(2, 60, 55, .45), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; color: #0b1514; height: 292px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.hl-live-bar { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; }
.hl-chip {
  font-size: 11.5px; line-height: 1; padding: 7px 10px; border-radius: 999px; white-space: nowrap;
  background: #fff; border: 1px solid #e3efed; color: #3a4b49; transition: background .4s, color .4s, border-color .4s;
}
.hl-chip.on { background: #CCFBF1; border-color: #99F6E4; color: #0F766E; }
.hl-live-dot { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #0F766E; white-space: nowrap; }
.hl-live-dot i { width: 7px; height: 7px; border-radius: 50%; background: #14B8A6; box-shadow: 0 0 0 0 rgba(20, 184, 166, .5); animation: hlPulse 1.8s infinite; }
@keyframes hlPulse { 70% { box-shadow: 0 0 0 7px rgba(20, 184, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); } }

/* labs: streaming JSON record */
.hl-code {
  flex: 1; border-radius: 12px; background: #F6FBFA; border: 1px solid #e6f1ef; padding: 12px 14px; overflow: hidden;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, ui-monospace, monospace; font-size: 11.5px; line-height: 1.62; white-space: pre;
}
.hl-code .k { color: #0F766E; }
.hl-code .s { color: #1f2a29; }
.hl-code .bad { color: #B45309; background: #FEF3C7; border-radius: 4px; padding: 0 3px; }
.hl-code .ok { color: #047857; background: #D1FAE5; border-radius: 4px; padding: 0 3px; }
.hl-code .caret { display: inline-block; width: 6px; height: 13px; background: #14B8A6; vertical-align: -2px; animation: hlBlink 1s steps(1) infinite; }
@keyframes hlBlink { 50% { opacity: 0; } }
.hl-live-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: #4b5d5b; }
.hl-live-foot b { font-weight: 600; color: #0b1514; font-variant-numeric: tabular-nums; }
.hl-meter { flex: 1; height: 4px; border-radius: 4px; background: #e2efec; margin: 0 12px; overflow: hidden; }
.hl-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #14B8A6, #5EEAD4); border-radius: 4px; transition: width .5s linear; }

/* experts: task workspace */
.hl-ws-top { display: flex; align-items: center; gap: 9px; }
.hl-ws-av { width: 28px; height: 28px; border-radius: 9px; background: #0b1514; color: #5EEAD4; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.hl-ws-meta { font-size: 12px; color: #3a4b49; line-height: 1.25; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-ws-meta b { color: #0b1514; font-weight: 600; }
.hl-ws-badge { margin-left: auto; font-size: 11px; padding: 6px 9px; border-radius: 999px; background: #0b1514; color: #fff; white-space: nowrap; }
.hl-ws-badge::before { content: "✓ "; color: #5EEAD4; }
.hl-ws-q { font-size: 13px; font-weight: 500; color: #0b1514; line-height: 1.35; min-height: 18px; }
.hl-ws-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hl-ans {
  position: relative; border-radius: 11px; background: #fff; border: 1.5px solid #e3efed; padding: 9px 10px; font-size: 11.5px; color: #3a4b49; line-height: 1.4;
  transition: border-color .35s, opacity .45s, transform .35s, box-shadow .35s; min-height: 64px;
}
.hl-ans b { display: block; font-size: 11px; font-weight: 600; color: #0b1514; margin-bottom: 3px; letter-spacing: .02em; }
.hl-ans.pick { border-color: #14B8A6; box-shadow: 0 0 0 4px rgba(20, 184, 166, .14); transform: translateY(-2px); }
.hl-ans.pick::after { content: "✓ Preferred"; position: absolute; top: -9px; right: 8px; font-size: 10px; font-weight: 600; padding: 3px 7px; border-radius: 999px; background: #14B8A6; color: #fff; }
.hl-ans.drop { opacity: .45; }
.hl-ws-why { border-radius: 10px; background: #F6FBFA; border: 1px dashed #b9e4dc; padding: 8px 10px; font-size: 12px; color: #1f2a29; min-height: 34px; }
.hl-ws-why em { font-style: normal; color: #6b7d7b; }
.hl-ws-row { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.hl-ws-submit { font-size: 12px; padding: 8px 14px; border-radius: 999px; background: #0b1514; color: #fff; transition: transform .15s, background .3s; }
.hl-ws-submit.press { transform: scale(.94); background: #0F766E; }
.hl-ws-count { margin-left: auto; font-size: 11.5px; color: #4b5d5b; }
.hl-ws-count b { color: #0b1514; font-variant-numeric: tabular-nums; }
.hl-toast {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 16px); opacity: 0; white-space: nowrap;
  font-size: 12px; padding: 9px 14px; border-radius: 999px; background: #0b1514; color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4);
  transition: opacity .4s, transform .4s var(--hl-ease);
}
.hl-toast.show { opacity: 1; transform: translate(-50%, 0); }
.hl-toast::before { content: "● "; color: #5EEAD4; }
.hl-cursor { position: absolute; width: 18px; height: 18px; left: 0; top: 0; z-index: 3; pointer-events: none; transition: transform .9s var(--hl-ease), opacity .3s; opacity: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }

@media (min-width: 761px) {
  .hl-way.is-live > div:nth-child(2) { min-height: 150px; }
}
@media (max-width: 760px) {
  .hl-ws-badge { font-size: 10px; padding: 5px 8px; }
  .hl-way.is-live { padding: 26px 22px 26px; gap: 22px; }
  .hl-live { height: 318px; padding: 12px; }
  .hl-code { font-size: 10.5px; padding: 10px 11px; }
  .hl-chip { font-size: 10.5px; padding: 6px 8px; }
  .hl-ans { font-size: 10.5px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-silk path, .hl-live-dot i, .hl-code .caret { animation: none !important; }
}
