/* =====================================================================
   Homepage live demo: photo with markers + streaming OpsLens analysis.
   ===================================================================== */
.ld-head .lede { margin-bottom: 0; }
.ld-head .h2 { margin: 16px 0 20px; }
.ld-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; margin-top: 36px; align-items: stretch; }

.ld-photo { margin: 0; }
.ld-frame { position: relative; border-radius: 24px; overflow: hidden; background: var(--obsidian); line-height: 0; }
.ld-frame img { width: 100%; height: auto; display: block; }
.ld-photo figcaption { font-size: 13px; color: var(--stone-text); margin-top: 10px; }

.ld-scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.ld-scan::before { content: ""; position: absolute; left: 0; right: 0; height: 26%; top: -26%;
  background: linear-gradient(180deg, transparent, rgba(252,80,0,.28) 85%, rgba(252,80,0,.9) 100%); }
.ld-scan.on { opacity: 1; animation: ld-fade 2.2s ease forwards; }
.ld-scan.on::before { animation: ld-sweep 2.1s cubic-bezier(.45,0,.55,1) forwards; }
@keyframes ld-sweep { to { top: 100%; } }
@keyframes ld-fade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }

.ld-dot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ember); color: #fff; font: 700 15px var(--ui); box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(0,0,0,.45);
  transform: scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.ld-dot.safety { background: #e5322d; }
.ld-dot.show { transform: scale(1); }
.ld-dot.active { transform: scale(1.25); }
.ld-dot.active::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--ember); animation: ld-ping 1s ease-out infinite; }
.ld-dot.safety.active::after { border-color: #e5322d; }
@keyframes ld-ping { from { opacity: .9; transform: scale(.7); } to { opacity: 0; transform: scale(1.4); } }

.ld-chat { position: relative; display: flex; flex-direction: column; background: var(--ink); color: var(--mist); border-radius: 24px; padding: 20px; min-height: 0; }
.ld-user { align-self: flex-end; max-width: 85%; background: var(--slate); color: var(--chalk); padding: 10px 14px; border-radius: 14px 14px 4px 14px; font: 400 14px/1.45 var(--ui); }
.ld-ai { flex: 1; margin-top: 14px; min-height: 380px; font: 400 14px/1.5 var(--ui); }
.ld-ai h4 { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); margin: 16px 0 8px; }
.ld-ai h4:first-child { margin-top: 0; }
.ld-ai p { margin: 0 0 6px; }
.ld-status { display: flex; align-items: center; gap: 10px; color: var(--ash); }
.ld-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--hairline); border-top-color: var(--ember); animation: ld-rot .8s linear infinite; }
@keyframes ld-rot { to { transform: rotate(360deg); } }
.ld-issue { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--graphite); }
.ld-issue .ld-n { width: 24px; height: 24px; border-radius: 50%; background: var(--ember); color: #fff; font: 700 12px/24px var(--ui); text-align: center; }
.ld-issue.safety .ld-n { background: #e5322d; }
.ld-issue .tag.sm { margin: 0 6px 0 0; vertical-align: 1px; }
.ld-issue.safety .tag.sm { background: #e5322d; color: #fff; }
.ld-issue b { color: var(--chalk); font-weight: 500; }
.ld-issue small { display: block; color: var(--ash); font-size: 13px; margin-top: 2px; }
.ld-issue em { font-style: normal; font: 600 13px var(--mono); color: var(--ember); white-space: nowrap; padding-top: 2px; }
.ld-list { margin: 0; padding-left: 18px; }
.ld-list li { margin: 3px 0; }
.ld-list li::marker { color: #59d499; }
.ld-note { font-size: 12px; color: var(--smoke); margin-top: 12px !important; }
.ld-replay { align-self: flex-end; margin-top: 12px; background: transparent; color: var(--ash); border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 12px; font: 500 12px var(--ui); cursor: pointer; }
.ld-replay:hover { color: var(--chalk); border-color: var(--ember); }
.ld-cta { margin-top: 28px; }

@media (max-width: 900px) {
  .ld-grid { grid-template-columns: 1fr; }
  .ld-ai { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-dot, .ld-dot.active::after, .ld-spin { animation: none; transition: none; }
  .ld-scan { display: none; }
}

/* Industry tabs */
.ld-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ld-tabs button { border: 1px solid var(--obsidian); background: transparent; color: var(--obsidian); border-radius: 999px; padding: 9px 16px; font: 500 14px var(--sans); cursor: pointer; }
.ld-tabs button:hover { background: rgba(7,6,7,.06); }
.ld-tabs button[aria-selected="true"] { background: var(--obsidian); color: var(--limestone); }
.ld-grid { margin-top: 20px; }
.ld-frame img { aspect-ratio: 1260 / 1000; object-fit: cover; }
@media (max-width: 600px) {
  .ld-tabs { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .ld-tabs button { flex: none; }
}
.ld-tabs[hidden] { display: none; }
