/*
 * Author: Hariram S <ramhari4090@gmail.com>
 *
 * The home page hero dashboard: the shared drawn-dashboard components from
 * dash.css (cards, stacked area, hatched range, notes, donut, target line, table)
 * in the site's violet theme. The reveal, line drawing, bar growth and donut sweep
 * come from dash.css when the dashboard gets .in (scenes.js); hero-dash.js counts
 * the big numbers up. Without JavaScript or with reduced motion the finished
 * dashboard shows.
 *
 * Used by:
 *   landing/index.html
 *
 * Depends on:
 *   landing/assets/dash.css (db-* components and motion)
 *   landing/assets/scenes.js (adds .in), landing/assets/hero-dash.js (count-up)
 */
.db[data-t="hero"] {
  text-align: left;
  --a1: #56b4e9; --a2: #a99bea; --a3: #33c29a; --a4: #f5b942;
  --glow: rgba(124, 92, 255, .55); --tint: rgba(124, 92, 255, .16);
}
.db[data-t="hero"] .db-logo { background: linear-gradient(135deg, #56b4e9, #7c5cff); color: #fff; }
.db[data-t="hero"] .db-c.accent { background: linear-gradient(150deg, #7c5cff, #56b4e9); color: #fff; }
.db[data-t="hero"] .db-c.accent .db-k, .db[data-t="hero"] .db-c.accent .db-v small { color: rgba(255, 255, 255, .9); }
.db[data-t="hero"] .db-c.accent .db-d { color: #fff; background: rgba(255, 255, 255, .22); }
/* A slow pulse on the last point of the chart once it has drawn: the "live" cue. */
.db[data-t="hero"] .db-plot.ylab::after {
  content: ""; position: absolute; right: -5px; top: calc(100% - (100% * 78.8 / 140) - 5px); width: 10px; height: 10px; border-radius: 50%;
  background: var(--a4); box-shadow: 0 0 0 0 rgba(245, 185, 66, .6); opacity: 0; transition: opacity .4s ease 2s;
}
.db[data-t="hero"].in .db-plot.ylab::after { opacity: 1; animation: hd-pulse 2.4s ease-out 2.4s infinite; }
@keyframes hd-pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 185, 66, .55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(245, 185, 66, 0); } }
@media (prefers-reduced-motion: reduce) {
  .db[data-t="hero"] .db-plot.ylab::after { animation: none; opacity: 1; transition: none; }
}
