@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=DM+Serif+Display:ital@0;1&family=Nunito:wght@500;650;700;800&display=swap');

:root {
  --navy: #212C5E;
  --bright: #5CD0DA;
  --pale: #E7F7FB;
  --white: #FFFFFF;
  --red: #D6203E;
  --orange: #ED7C34;
  --green: #23B577;
  --purple: #5D4B9E;
  --shadow: 0 2px 12px rgba(33, 44, 94, 0.08);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--pale);
  font-family: 'Barlow', system-ui, sans-serif;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, .pulse-h1, .pulse-panel-title, .pulse-cta-h {
  font-family: 'Nunito', 'Barlow', system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--navy);
}

/* Header */
.pulse-header {
  background: var(--navy);
  color: var(--white);
  padding: 48px 24px 56px;
}
.pulse-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.pulse-logo {
  width: 200px;
  height: auto;
  order: 2;
  flex-shrink: 0;
}
.pulse-titles { flex: 1; min-width: 280px; order: 1; }
.pulse-h1 {
  color: var(--white);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin: 0;
}
.pulse-subtitle {
  color: var(--bright);
  margin: 0.65rem 0 -1.15rem 0;
  font-size: 16px;
  font-weight: 500;
}

/* Layout */
.pulse-main {
  max-width: 1200px;
  margin: -24px auto 0;
  padding: 0 24px 16px;
  position: relative;
}

/* KPI cards */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.kpi-caption {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--navy);
  opacity: 0.65;
  text-align: center;
  font-style: italic;
}
.kpi-card {
  background: var(--white);
  border-top: 4px solid var(--bright);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.kpi-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  opacity: 0.75;
  font-weight: 600;
  margin-bottom: 8px;
}
.kpi-value {
  font-family: 'Nunito', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 6px;
}
.kpi-badge {
  font-size: 13px;
  font-weight: 600;
}
.kpi-up { color: var(--green); }
.kpi-down { color: var(--red); }
.kpi-flat { color: var(--navy); opacity: 0.5; }

/* Panels */
.pulse-panel {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 24px 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.pulse-panel-head { margin-bottom: 12px; }
.pulse-panel-title {
  font-size: 22px;
  margin: 0 0 4px 0;
  font-weight: 700;
}
.pulse-panel-sub {
  margin: 0;
  color: var(--navy);
  opacity: 0.7;
  font-size: 14px;
}
.pulse-panel-source {
  margin-top: 8px;
  font-size: 12px;
  color: var(--navy);
  opacity: 0.55;
  text-align: right;
}

/* Insight */
.insight-panel { background: linear-gradient(180deg, var(--white) 0%, var(--pale) 100%); }
.insight-list { list-style: none; padding: 0; margin: 8px 0 0; }
.insight-li {
  padding: 14px 18px 14px 44px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--white);
  position: relative;
  font-size: 16px;
  border-left: 4px solid var(--bright);
}
.insight-li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.insight-good { border-left-color: var(--green); }
.insight-good::before { background: var(--green); }
.insight-bad { border-left-color: var(--red); }
.insight-bad::before { background: var(--red); }
.insight-neutral::before { background: var(--bright); }

/* CTA */
.pulse-cta {
  background: var(--navy);
  border-radius: 12px;
  margin: 32px 0 0;
  padding: 32px 28px;
  color: var(--white);
}
.pulse-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pulse-cta-text { flex: 1; min-width: 280px; }
.pulse-cta-h { color: var(--white); margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.pulse-cta-p { margin: 0; color: var(--pale); font-size: 16px; }
.pulse-cta-btn {
  background: var(--bright);
  color: var(--navy);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 14px 33px;
  border-radius: 6px;
  transition: transform 0.1s ease;
  display: inline-block;
}
.pulse-cta-btn:hover { transform: translateY(-1px); }

/* Footer */
.pulse-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 40px;
  text-align: center;
  font-size: 14px;
  color: var(--navy);
}
.pulse-footer a { color: var(--navy); font-weight: 600; }
.pulse-footer-fine { font-size: 12px; opacity: 0.65; margin-top: 8px; }

/* Loading state */
._dash-loading {
  font-family: 'Nunito', sans-serif;
  color: var(--navy);
  text-align: center;
  padding: 80px 0;
  font-size: 18px;
}

@media (max-width: 600px) {
  .pulse-header { padding: 20px 16px; }
  .pulse-main { padding: 0 12px 32px; }
  .pulse-panel { padding: 16px; }
  .kpi-value { font-size: 26px; }
}
