/* ZiSight page enhancements — scoped to this product page */

#zisight-glance,
#zisight-how,
#zisight-capabilities,
#zisight-impact,
#zisight-intelligence,
#zisight-comparison,
#zisight-audience,
#zisight-management,
#zisight-lifecycle,
#zisight-value {
  scroll-margin-top: calc(var(--headerH) + 16px);
}

.zisightSection a:focus-visible,
.zisightSection button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.zisightHeroInner {
  align-items: start;
}

.zisightLead,
.zisightSupport {
  max-width: 38em;
}

.zisightHeroVisual {
  min-height: 0;
  padding: 18px 14px 16px;
  overflow: hidden;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.zisightFlowDiagram {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.zisightDiagramCaption {
  margin: 0 0 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

.zisightFlowSvg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
}

.zisightFlowSvg .flowLine {
  fill: none;
  stroke: rgba(16, 197, 160, .55);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.zisightFlowSvg .flowLineDash {
  stroke-dasharray: 5 7;
  stroke: rgba(0, 121, 194, .55);
}

.zisightFlowSvg .feedbackLine {
  fill: none;
  stroke: rgba(16, 197, 160, .35);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
}

.zisightFlowSvg .nodeCard {
  fill: rgba(7, 17, 31, .88);
  stroke: rgba(255, 255, 255, .14);
  stroke-width: 1;
}

.zisightFlowSvg .nodeCardAccent {
  stroke: rgba(16, 197, 160, .42);
}

.zisightFlowSvg .nodeTitle {
  fill: #fff;
  font-size: 11px;
  font-weight: 800;
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

.zisightFlowSvg .nodeSub {
  fill: rgba(255, 255, 255, .72);
  font-size: 9px;
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

.zisightFlowSvg .envLabel {
  fill: rgba(255, 255, 255, .62);
  font-size: 8.5px;
  font-weight: 700;
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

.zisightFlowSvg .srcDot {
  fill: #0079C2;
  stroke: rgba(255, 255, 255, .35);
  stroke-width: .8;
}

.zisightFlowSvg .srcDotTeal { fill: #10C5A0; }
.zisightFlowSvg .srcDotBlue { fill: #0079C2; }

.zisightFlowSvg .pulseDot {
  fill: #10C5A0;
  opacity: .9;
}

.zisightFlowSvg .insightChip {
  fill: rgba(0, 121, 194, .18);
  stroke: rgba(0, 121, 194, .4);
}

.zisightFlowSvg .insightText {
  fill: rgba(255, 255, 255, .82);
  font-size: 8px;
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

.zisightFlowDiagram.is-visible .flowLine,
.zisightFlowDiagram.is-visible .feedbackLine {
  stroke-dashoffset: 0;
  animation: zisightFlowDraw 1.4s ease-out both;
}

.zisightFlowDiagram.is-visible .pulseDot {
  animation: zisightPulseDot 2.8s ease-in-out 1.1s infinite;
}

@keyframes zisightFlowDraw {
  from { stroke-dasharray: 8 120; stroke-dashoffset: 80; }
  to { stroke-dasharray: 8 0; stroke-dashoffset: 0; }
}

@keyframes zisightPulseDot {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .zisightFlowDiagram .flowLine,
  .zisightFlowDiagram .feedbackLine,
  .zisightFlowDiagram .pulseDot,
  .zisightLensRing,
  .zisightLensRing2 {
    animation: none !important;
  }
}

/* Infographic */
.zisightGlance {
  padding: 12px 0 40px;
}

.zisightInfographicFigure {
  margin: 22px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  overflow: hidden;
  background: #eef6ff;
  box-shadow: var(--shadow);
}

.zisightInfographicBtn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 0;
  background: #eef6ff;
  cursor: zoom-in;
  text-align: center;
}

.zisightInfographic {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1024 / 682;
  object-fit: contain;
  vertical-align: top;
}

.zisightInfographicCaption {
  margin: 0;
  padding: 12px 16px 14px;
  background: #07111d;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.aiAssistantLightbox {
  width: min(1400px, calc(100vw - 24px));
}
.aiAssistantLightboxTitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aiAssistantLightbox img {
  background: #eef6ff;
  max-height: calc(100vh - 96px);
}

/* How it works */
.zisightHowTrack {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 700px) {
  .zisightHowTrack { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .zisightHowTrack {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
}

.zisightHowTrack li {
  position: relative;
  margin: 0;
  padding: 16px 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
}

.zisightHowTrack li h4 {
  margin: 8px 0 6px;
  font-size: 16px;
}

.zisightHowTrack li p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.zisightHowTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zisightHowTrack .zisightStepNum { margin: 0; }

.zisightHowIcon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(16, 197, 160, .12);
  border: 1px solid rgba(16, 197, 160, .28);
}

.zisightHowIcon svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 1100px) {
  .zisightHowTrack li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    right: -8px;
    width: 8px;
    height: 2px;
    background: linear-gradient(90deg, rgba(16, 197, 160, .7), rgba(16, 197, 160, .15));
    z-index: 1;
  }
}

/* Capability hover remains from main_page.css; keep icon sizing consistent */
.zisightCapabilityCard .zisightIcon {
  width: 38px;
  height: 38px;
}

.zisightCapabilityCard .zisightIcon svg {
  width: 20px;
  height: 20px;
}

/* Business impact flow */
.zisightImpactTrail {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 20px;
}

.zisightImpactTrail span {
  flex: 1 1 140px;
  max-width: 180px;
  text-align: center;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 121, 194, .35);
  background: rgba(0, 121, 194, .12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.35;
}

.zisightImpactTrail i {
  flex: 0 0 auto;
  align-self: center;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, #0079C2, #10C5A0);
  position: relative;
}

.zisightImpactTrail i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  border: 4px solid transparent;
  border-left-color: #10C5A0;
}

@media (max-width: 699px) {
  .zisightImpactTrail {
    flex-direction: column;
    align-items: stretch;
  }
  .zisightImpactTrail span { max-width: none; }
  .zisightImpactTrail i {
    width: 2px;
    height: 16px;
    align-self: center;
    background: linear-gradient(180deg, #0079C2, #10C5A0);
  }
  .zisightImpactTrail i::after {
    right: -3px;
    top: auto;
    bottom: -1px;
    border-left-color: transparent;
    border-top-color: #10C5A0;
  }
}

.zisightCapabilityCard h3,
.zisightOutcomes h3,
.zisightIncidentHead h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 1000;
}
.zisightOutcomes article h3 { margin-top: 0; }

/* Incident intelligence card */
.zisightIntelLayout {
  display: grid;
  gap: 22px;
}

@media (min-width: 900px) {
  .zisightIntelLayout {
    grid-template-columns: .9fr 1.1fr;
    align-items: start;
  }
}

.zisightExampleNote {
  display: inline-block;
  margin: 12px 16px 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 197, 160, .35);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.zisightIncidentCard {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(0, 121, 194, .35);
  background:
    linear-gradient(180deg, rgba(8, 28, 48, .95), rgba(5, 16, 30, .95));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.zisightIncidentHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 121, 194, .16);
}

.zisightIncidentHead h4 {
  margin: 0;
  font-size: 16px;
}

.zisightIncidentHead em {
  font-style: normal;
  font-size: 11px;
  color: var(--accent);
  font-weight: 800;
}

.zisightIncidentCard dl {
  margin: 0;
  padding: 6px 0;
}

.zisightIncidentCard div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.zisightIncidentCard div:last-child { border-bottom: 0; }

.zisightIncidentCard dt {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(16, 197, 160, .95);
}

.zisightIncidentCard dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
}

@media (max-width: 599px) {
  .zisightIncidentCard div { grid-template-columns: 1fr; gap: 4px; }
}

.zisightPanelLight {
  background:
    radial-gradient(700px 320px at 80% 0%, rgba(0, 121, 194, .16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0));
}

/* Interaction */
.zisightLive {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 197, 160, .35);
  background: linear-gradient(90deg, rgba(16, 197, 160, .14), rgba(0, 121, 194, .1));
  box-shadow: 0 0 24px rgba(16, 197, 160, .08);
}

.zisightFlowDiagram .zisightLive { margin: 12px 0 0; }

.zisightLiveDot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #10C5A0;
  box-shadow: 0 0 0 0 rgba(16, 197, 160, .65);
  animation: zisightLivePulse 1.8s ease-out infinite;
}

.zisightLiveText {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
}

@keyframes zisightLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 197, 160, .55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 197, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 197, 160, 0); }
}

.zisightInfographicFigure { position: relative; }

.zisightInfographicFigure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: zisightSweep 6.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes zisightSweep {
  0%, 62% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.zisightFlowSvg text,
.zisightFlowSvg .srcDot,
.zisightFlowSvg .pulseDot { pointer-events: none; }

.zisightFlowSvg .nodeCard,
.zisightFlowSvg .zisightEnvBand { cursor: pointer; }

.zisightSpine {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 16 72;
  filter: drop-shadow(0 0 3px #10C5A0);
  pointer-events: none;
  animation: zisightDash 2.2s linear infinite;
}

@keyframes zisightDash {
  to { stroke-dashoffset: -88; }
}

.zisightFlowSvg.is-focused .nodeCard,
.zisightFlowSvg.is-focused .zisightEnvBand { opacity: .38; }

.zisightFlowSvg.is-focused .is-hot {
  opacity: 1;
  stroke: #10C5A0;
  stroke-width: 1.6;
}

.zisightHowTrack li,
.zisightRail li,
.zisightQ,
.zisightCapabilityCard,
.zisightValueGrid article,
.zisightAudienceGrid article,
.zisightOutcomes article,
.zisightImpactTrail span,
.zisightPath li,
.zisightAlertScatter span,
.zisightCompareWithout li,
.zisightFunnel span,
.zisightIncidentCard dl > div {
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .25s ease;
}

.zisightHowTrack li:hover,
.zisightHowTrack li:focus-visible,
.zisightHowTrack li.is-lit,
.zisightRail li:hover,
.zisightRail li:focus-visible,
.zisightRail li.is-lit,
.zisightQ:hover,
.zisightQ:focus-visible,
.zisightQ.is-lit,
.zisightCapabilityCard:hover,
.zisightCapabilityCard:focus-visible,
.zisightCapabilityCard.is-lit,
.zisightValueGrid article:hover,
.zisightValueGrid article:focus-visible,
.zisightValueGrid article.is-lit,
.zisightAudienceGrid article:hover,
.zisightAudienceGrid article:focus-visible,
.zisightAudienceGrid article.is-lit,
.zisightOutcomes article:hover,
.zisightOutcomes article:focus-visible,
.zisightOutcomes article.is-lit,
.zisightImpactTrail span:hover,
.zisightImpactTrail span:focus-visible,
.zisightImpactTrail span.is-lit,
.zisightPath li:hover,
.zisightPath li:focus-visible,
.zisightPath li.is-lit,
.zisightFunnel span:hover,
.zisightFunnel span:focus-visible,
.zisightFunnel span.is-lit,
.zisightIncidentCard dl > div:hover,
.zisightIncidentCard dl > div:focus-visible,
.zisightIncidentCard dl > div.is-lit {
  border-color: rgba(16, 197, 160, .7);
  box-shadow: 0 0 0 1px rgba(16, 197, 160, .28), 0 12px 28px rgba(0, 0, 0, .18);
  outline: none;
}

.zisightHowTrack.is-focused li,
.zisightRail.is-focused li,
.zisightConstellation.is-focused .zisightQ,
.zisightCapabilityGrid.is-focused .zisightCapabilityCard,
.zisightValueGrid.is-focused article,
.zisightAudienceGrid.is-focused article,
.zisightOutcomes.is-focused article,
.zisightImpactTrail.is-focused span,
.zisightPath.is-focused li,
.zisightFunnelIn.is-focused span,
.zisightFunnelOut.is-focused span,
.zisightIncidentCard.is-focused dl > div {
  opacity: .42;
}

.zisightHowTrack.is-focused li.is-hot,
.zisightHowTrack.is-focused li.is-lit,
.zisightRail.is-focused li.is-hot,
.zisightRail.is-focused li.is-lit,
.zisightConstellation.is-focused .zisightQ.is-lit,
.zisightCapabilityGrid.is-focused .zisightCapabilityCard.is-lit,
.zisightValueGrid.is-focused article.is-lit,
.zisightAudienceGrid.is-focused article.is-lit,
.zisightOutcomes.is-focused article.is-lit,
.zisightImpactTrail.is-focused span.is-hot,
.zisightImpactTrail.is-focused span.is-lit,
.zisightPath.is-focused li.is-hot,
.zisightPath.is-focused li.is-lit,
.zisightFunnelIn.is-focused span.is-lit,
.zisightFunnelOut.is-focused span.is-lit,
.zisightIncidentCard.is-focused dl > div.is-lit {
  opacity: 1;
}

.zisightImpactTrail i::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #10C5A0;
  pointer-events: none;
}

@media (min-width: 700px) {
  .zisightImpactTrail i::before {
    top: 50%;
    left: 0;
    margin-top: -3px;
    animation: zisightHop 1.3s linear infinite;
  }
}

@media (max-width: 699px) {
  .zisightImpactTrail i::before {
    left: 50%;
    top: 0;
    margin-left: -3px;
    animation: zisightHopDown 1.3s linear infinite;
  }
}

@keyframes zisightHop {
  from { transform: translateX(0); opacity: .3; }
  20% { opacity: 1; }
  to { transform: translateX(11px); opacity: .3; }
}

@keyframes zisightHopDown {
  from { transform: translateY(0); opacity: .3; }
  20% { opacity: 1; }
  to { transform: translateY(10px); opacity: .3; }
}

@media (min-width: 1100px) {
  .zisightHowTrack { position: relative; }

  .zisightHowTrack::before {
    content: "";
    position: absolute;
    top: 33px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg, rgba(16, 197, 160, .2), #10C5A0, rgba(0, 121, 194, .35));
    z-index: 0;
    pointer-events: none;
  }

  .zisightHowTrack li { z-index: 1; }

  .zisightHowTrack li:not(:last-child)::after { top: 32px; }

  .zisightHowTrack::after {
    content: "";
    position: absolute;
    top: 29px;
    left: 8%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px 3px rgba(16, 197, 160, .9);
    animation: zisightTravel 4s linear infinite;
    z-index: 2;
    pointer-events: none;
  }
}

@media (min-width: 900px) {
  .zisightRail { position: relative; }

  .zisightRail::before {
    content: "";
    position: absolute;
    top: 33px;
    left: 4%;
    right: 4%;
    height: 2px;
    background: linear-gradient(90deg, rgba(16, 197, 160, .2), #10C5A0, rgba(0, 121, 194, .35));
    z-index: 0;
    pointer-events: none;
  }

  .zisightRail li { z-index: 1; }

  .zisightRail::after {
    content: "";
    position: absolute;
    top: 29px;
    left: 6%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px 3px rgba(16, 197, 160, .9);
    animation: zisightTravel 4.4s linear infinite;
    z-index: 2;
    pointer-events: none;
  }
}

@keyframes zisightTravel {
  from { left: 8%; opacity: .2; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  to { left: 88%; opacity: .2; }
}

@media (prefers-reduced-motion: reduce) {
  .zisightLiveDot,
  .zisightInfographicFigure::after,
  .zisightSpine,
  .zisightImpactTrail i::before,
  .zisightHowTrack::after,
  .zisightRail::after {
    animation: none !important;
    display: none;
  }

  .zisightHowTrack li,
  .zisightRail li,
  .zisightQ,
  .zisightCapabilityCard,
  .zisightValueGrid article,
  .zisightAudienceGrid article,
  .zisightOutcomes article,
  .zisightImpactTrail span,
  .zisightPath li,
  .zisightFunnel span,
  .zisightIncidentCard dl > div {
    transition: none !important;
  }
}
