/* Scoped hero dashboard preview (marketing site only). All classes prefixed heroDash- */

.heroDash-frame {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(15, 23, 42, 0.12),
    0 8px 24px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(230, 231, 239, 0.9);
  background: #ffffff;
  transform-origin: center top;
}

.hero-premium .heroDash-frame {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
}

.hero-premium .heroDash-scale-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}

.heroDash-frame-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(246, 247, 251, 0.85) 100%);
  z-index: 3;
}

.heroDash-frame-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  transform: translateX(-120%);
  opacity: 0;
}

.heroDash-frame-sheen.is-sweeping {
  animation: heroDashSheen 1.4s ease-in-out;
}

@keyframes heroDashSheen {
  0% { transform: translateX(-120%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

.hero-premium .heroDash-bottom-row {
  display: none;
}

.hero-premium .heroDash-root {
  min-height: 560px;
}

.hero-premium .heroDash-layout {
  min-height: 560px;
}

.heroDash-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
  border-bottom: 1px solid #e6e7ef;
}

.heroDash-chrome-dots {
  display: flex;
  gap: 6px;
}

.heroDash-chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
}

.heroDash-chrome-dots span:nth-child(1) { background: #fca5a5; }
.heroDash-chrome-dots span:nth-child(2) { background: #fcd34d; }
.heroDash-chrome-dots span:nth-child(3) { background: #86efac; }

.heroDash-chrome-title {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heroDash-scale-wrap {
  width: 100%;
  overflow: hidden;
  background: #f6f6fb;
}

.heroDash-scale-inner {
  width: 1440px;
  transform-origin: top left;
}

.heroDash-root {
  --hd-accent: #7c3aed;
  --hd-accent-soft: #c4b5fd;
  --hd-accent-weak: rgba(124, 58, 237, 0.1);
  --hd-green: #10b981;
  --hd-green-weak: rgba(16, 185, 129, 0.12);
  --hd-orange: #f59e0b;
  --hd-orange-weak: rgba(245, 158, 11, 0.14);
  --hd-blue: #6366f1;
  --hd-blue-weak: rgba(99, 102, 241, 0.12);
  --hd-danger: #ef4444;
  --hd-danger-weak: rgba(239, 68, 68, 0.1);
  --hd-ink: #0f172a;
  --hd-muted: #64748b;
  --hd-label: #64748b;
  --hd-border: rgba(15, 23, 42, 0.06);
  --hd-card: #ffffff;
  --hd-bg: #f8f9fb;
  --hd-sidebar: #F0F0FF;
  --hd-sidebar-active-bg: #E0E0FF;
  --hd-sidebar-active-text: #5B5FC7;
  --hd-sidebar-inactive-text: #1A202C;
  --hd-sidebar-inactive-icon: #6E6A86;
  --hd-sidebar-hover: #EBEBFF;
  --hd-sidebar-width: 204px;

  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: var(--hd-ink);
  background: var(--hd-bg);
  min-height: 720px;
}

.heroDash-root *,
.heroDash-root *::before,
.heroDash-root *::after {
  box-sizing: border-box;
}

.heroDash-layout {
  display: flex;
  min-height: 720px;
}

.heroDash-sidebar {
  width: var(--hd-sidebar-width);
  flex-shrink: 0;
  background: var(--hd-sidebar);
  border-right: 1px solid #ECEAF6;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.heroDash-wordmark {
  padding: 4px 10px 14px;
}

.heroDash-wordmark img {
  height: 26px;
  width: auto;
  display: block;
  opacity: 1;
}

.heroDash-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  margin: 0 0 8px;
  border-radius: 8px;
  border: 1px solid #E6E3F7;
  background: #ffffff;
}

.heroDash-search .heroDash-icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--hd-sidebar-inactive-icon);
  pointer-events: none;
  flex-shrink: 0;
}

.heroDash-search-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 10px 0 32px;
  font-size: 13px;
  line-height: 38px;
  color: var(--hd-sidebar-inactive-text);
  font-family: inherit;
}

.heroDash-search-input::placeholder {
  color: var(--hd-sidebar-inactive-icon);
}

.heroDash-search-input:focus {
  outline: none;
}

.heroDash-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--hd-sidebar-inactive-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.heroDash-nav-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.heroDash-nav-item .heroDash-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--hd-sidebar-inactive-icon);
  stroke: var(--hd-sidebar-inactive-icon);
}

.heroDash-nav-item.is-active {
  background: var(--hd-accent-weak);
  color: var(--hd-accent);
  font-weight: 600;
}

.heroDash-nav-item.is-active .heroDash-icon {
  color: var(--hd-accent);
  stroke: var(--hd-accent);
}

.heroDash-nav-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5B5878;
  padding: 12px 10px 6px;
  margin-top: 0;
}

.heroDash-nav-label:first-of-type {
  padding-top: 4px;
}

.heroDash-main {
  flex: 1;
  min-width: 0;
  padding: 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.heroDash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.heroDash-greeting h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--hd-ink);
}

.heroDash-greeting p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--hd-muted);
}

.heroDash-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.heroDash-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--hd-border);
  background: var(--hd-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.heroDash-pill .heroDash-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.heroDash-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--hd-border);
  background: var(--hd-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hd-muted);
  flex-shrink: 0;
}

.heroDash-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.heroDash-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hd-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.heroDash-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.heroDash-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--hd-ink);
}

.heroDash-user-role {
  font-size: 10px;
  color: var(--hd-label);
  letter-spacing: 0.04em;
}

.heroDash-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.heroDash-card {
  background: var(--hd-card);
  border: 1px solid var(--hd-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 16px 18px;
}

.heroDash-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 112px;
}

.heroDash-kpi.is-pulse {
  animation: heroDash-kpi-pulse 0.6s ease;
}

@keyframes heroDash-kpi-pulse {
  0%, 100% { box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06); }
  50% { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2), 0 1px 3px rgba(17, 24, 39, 0.06); }
}

.heroDash-kpi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.heroDash-kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hd-muted);
}

.heroDash-kpi-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--hd-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.heroDash-chip {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.heroDash-chip .heroDash-icon {
  width: 18px;
  height: 18px;
}

.heroDash-chip--purple { background: var(--hd-accent-weak); color: var(--hd-accent); }
.heroDash-chip--green { background: var(--hd-green-weak); color: var(--hd-green); }
.heroDash-chip--orange { background: var(--hd-orange-weak); color: var(--hd-orange); }
.heroDash-chip--blue { background: var(--hd-blue-weak); color: var(--hd-blue); }

.heroDash-kpi-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.heroDash-kpi-foot small {
  font-size: 10px;
  color: var(--hd-label);
}

.heroDash-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.heroDash-delta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.heroDash-delta--up {
  background: var(--hd-green-weak);
  color: var(--hd-green);
}

.heroDash-delta--down {
  background: var(--hd-danger-weak);
  color: var(--hd-danger);
}

.heroDash-delta--down-good {
  background: var(--hd-green-weak);
  color: var(--hd-green);
}

.heroDash-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--hd-green-weak);
  color: var(--hd-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.heroDash-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hd-green);
  animation: heroDash-live-pulse 1.8s ease-in-out infinite;
}

@keyframes heroDash-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.heroDash-mid-row {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
}

.heroDash-analytics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.heroDash-analytics-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--hd-ink);
}

.heroDash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.heroDash-tab {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--hd-muted);
  white-space: nowrap;
}

.heroDash-tab.is-active {
  background: var(--hd-accent);
  border-color: var(--hd-accent);
  color: #ffffff;
}

.heroDash-analytics-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.heroDash-donut-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto;
}

.heroDash-donut-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.heroDash-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}

.hero-stage .heroDash-frame {
  position: relative;
  z-index: 1;
  width: 100%;
}

.heroDash-donut-wrap svg.is-breathing {
  animation: heroDash-donut-breathe 3.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heroDash-donut-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

.heroDash-donut-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--hd-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.heroDash-donut-label {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hd-label);
}

.heroDash-legend {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.heroDash-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--hd-muted);
  font-variant-numeric: tabular-nums;
}

.heroDash-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.heroDash-legend-dot--accent { background: var(--hd-accent); }
.heroDash-legend-dot--muted { background: var(--hd-accent-soft); }

.heroDash-chart-wrap {
  position: relative;
  min-height: 160px;
}

.heroDash-chart-wrap svg {
  width: 100%;
  height: 160px;
  display: block;
}

.heroDash-chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--hd-muted);
  position: relative;
}

.heroDash-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.heroDash-booked-chip {
  position: absolute;
  right: 0;
  top: -4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--hd-green-weak);
  color: var(--hd-green);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.heroDash-booked-chip.is-show {
  opacity: 1;
  transform: translateY(0);
}

.heroDash-mini-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.heroDash-mini-kpi {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--hd-border);
  background: #fafafa;
}

.heroDash-mini-kpi-label {
  font-size: 10px;
  color: var(--hd-label);
  margin-bottom: 4px;
}

.heroDash-mini-kpi-value {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.heroDash-mini-kpi--green .heroDash-mini-kpi-value { color: var(--hd-green); }
.heroDash-mini-kpi--orange .heroDash-mini-kpi-value { color: var(--hd-orange); }

.heroDash-mini-spark {
  margin-top: 6px;
  height: 24px;
}

.heroDash-mini-spark path {
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
}

.heroDash-caption {
  margin-top: 10px;
  font-size: 11px;
  color: var(--hd-muted);
  line-height: 1.45;
}

.heroDash-right-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.heroDash-impact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hd-border);
}

.heroDash-impact-row:last-child {
  border-bottom: none;
}

.heroDash-impact-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.heroDash-impact-body {
  flex: 1;
  min-width: 0;
}

.heroDash-impact-label {
  font-size: 11px;
  color: var(--hd-muted);
}

.heroDash-impact-value {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--hd-ink);
}

.heroDash-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.heroDash-live-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.heroDash-live-monitor {
  border-radius: 12px;
  border: 1px solid var(--hd-border);
  background: #fafafa;
  padding: 10px 12px;
  min-height: 110px;
}

.heroDash-live-caller {
  font-size: 11px;
  font-weight: 600;
  color: var(--hd-accent);
  margin-bottom: 6px;
}

.heroDash-waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-bottom: 8px;
}

.heroDash-waveform span {
  flex: 1;
  max-width: 6px;
  border-radius: 3px;
  background: var(--hd-accent);
  height: 30%;
  animation: heroDash-wave 0.9s ease-in-out infinite;
}

.heroDash-waveform span:nth-child(2) { animation-delay: 0.1s; }
.heroDash-waveform span:nth-child(3) { animation-delay: 0.2s; }
.heroDash-waveform span:nth-child(4) { animation-delay: 0.15s; }
.heroDash-waveform span:nth-child(5) { animation-delay: 0.25s; }
.heroDash-waveform span:nth-child(6) { animation-delay: 0.05s; }
.heroDash-waveform span:nth-child(7) { animation-delay: 0.18s; }
.heroDash-waveform span:nth-child(8) { animation-delay: 0.12s; }

@keyframes heroDash-wave {
  0%, 100% { height: 25%; opacity: 0.5; }
  50% { height: 90%; opacity: 1; }
}

.heroDash-transcript {
  font-size: 11px;
  color: var(--hd-muted);
  line-height: 1.45;
  min-height: 44px;
}

.heroDash-live-status {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--hd-green);
}

.heroDash-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 200px;
  overflow: hidden;
}

.heroDash-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hd-border);
  font-size: 11px;
  color: var(--hd-muted);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.heroDash-activity-item.is-new {
  animation: heroDash-activity-in 0.45s ease;
}

@keyframes heroDash-activity-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.heroDash-activity-item:last-child {
  border-bottom: none;
}

.heroDash-activity-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--hd-accent-weak);
  color: var(--hd-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.heroDash-activity-text {
  flex: 1;
  min-width: 0;
  color: var(--hd-ink);
  line-height: 1.35;
}

.heroDash-activity-time {
  font-size: 10px;
  color: var(--hd-label);
  white-space: nowrap;
}

.heroDash-view-all {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hd-accent);
  text-decoration: none;
}

.heroDash-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.heroDash-speed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.heroDash-speed-stat {
  padding: 8px 0;
}

.heroDash-speed-label {
  font-size: 10px;
  color: var(--hd-label);
  margin-bottom: 4px;
}

.heroDash-speed-value {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.heroDash-reasons-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.heroDash-reason-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--hd-muted);
}

.heroDash-reason-bar {
  height: 8px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

.heroDash-reason-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--hd-accent);
  width: 0;
  transition: width 0.8s ease;
}

.heroDash-reason-bar i.is-breathe {
  animation: heroDash-reason-breathe 4.5s ease-in-out infinite;
}

@keyframes heroDash-reason-breathe {
  0%, 100% { opacity: 0.85; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.08); }
}

.heroDash-footer {
  padding: 8px 4px 2px;
  font-size: 10px;
  color: var(--hd-label);
  text-align: center;
}

.heroDash-donut-arc {
  fill: none;
  stroke: var(--hd-accent);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.heroDash-donut-track {
  fill: none;
  stroke: var(--hd-accent-soft);
  stroke-width: 12;
  opacity: 0.45;
}

.heroDash-chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.heroDash-chart-area {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.heroDash-chart-area.is-visible {
  opacity: 1;
}

.heroDash-chart-dot {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.heroDash-chart-dot.is-visible {
  opacity: 1;
}

.heroDash-chart-sweep {
  opacity: 0;
  pointer-events: none;
}

/* Scroll zoom takeover (desktop) */
.hero-stage-pin {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-dash-captions {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}

.hero-dash-caption {
  position: absolute;
  opacity: 0;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.84);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  transform-origin: center;
}

.hero-dash-caption[data-caption="kpi"] {
  top: 30%;
  left: 54%;
  transform: translateX(-50%);
}

.hero-dash-caption[data-caption="chart"] {
  top: 44%;
  left: 36%;
  transform: translateX(-50%);
}

.hero-dash-caption[data-caption="live"] {
  top: 30%;
  right: 6%;
}

@media (min-width: 1024px) {
  .hero-premium .hero-stage-pin {
    perspective: 1400px;
  }

  html.hero-dashboard-preview #hero-dashboard {
    opacity: 1;
  }

  html.hero-zoom-pin-active #hero-dashboard {
    will-change: transform;
  }

  #hero-dashboard.is-zoom-full .heroDash-frame-fade {
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  html.hero-zoom-pin-active .heroDash-frame-fade {
    opacity: 0.35;
  }

  #hero-dashboard.is-zoom-full .hero-premium .heroDash-bottom-row {
    display: grid;
  }
}

html.hero-dashboard-static #hero-dashboard {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1024px) {
  .hero-premium .heroDash-frame {
    aspect-ratio: 16 / 11;
    max-width: 100%;
    transform: none;
  }

  .heroDash-sidebar,
  .heroDash-bottom-row {
    display: none;
  }

  .heroDash-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heroDash-mid-row {
    grid-template-columns: 1fr;
  }

  .heroDash-analytics-body {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heroDash-live-dot,
  .heroDash-waveform span,
  .heroDash-kpi.is-pulse {
    animation: none !important;
  }

  .heroDash-delta {
    opacity: 1;
    transform: none;
  }

  .heroDash-chart-area,
  .heroDash-chart-dot {
    opacity: 1;
  }

  .heroDash-donut-wrap svg.is-breathing {
    animation: none;
  }
}
