/* ============================================
   SCORECARD ASSESSMENT
   ============================================ */
.scorecard {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding: clamp(4.5rem, 10vh, 7rem) 0;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}

/* Analytical teal glow, with a whisper of warmth behind the card */
.scorecard__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(ellipse 60% 55% at 50% 45%,
      rgba(33, 158, 188, 0.10) 0%, transparent 68%),
    radial-gradient(ellipse 45% 35% at 80% 10%,
      rgba(251, 133, 0, 0.06) 0%, transparent 65%);
}

/* ---------- Card ---------- */
.scorecard__card {
  position: relative;
  max-width: 780px;
  margin-inline: auto;

  padding: clamp(2rem, 4.5vw, 3.25rem);

  border: 1px solid var(--border);
  border-radius: 18px;

  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.012) 100%
  );

  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);

  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, 0.95),
    0 0 60px -30px rgba(33, 158, 188, 0.25);

  text-align: center;
  overflow: hidden;
}

/* Hairline accent along the top edge */
.scorecard__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-1) 35%,
    var(--primary) 65%,
    transparent 100%
  );

  opacity: 0.7;
}

/* ---------- Score-bar motif ---------- */
.scorecard__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;

  height: 28px;
  margin-bottom: 1.5rem;
}

.scorecard__bars span {
  width: 6px;
  height: var(--h);
  border-radius: 2px;

  background: linear-gradient(
    to top,
    rgba(33, 158, 188, 0.25) 0%,
    var(--accent-1) 100%
  );

  opacity: 0.8;

  transform-origin: bottom;
  animation: scoreBarIn 0.7s var(--ease-out) both;
}

.scorecard__bars span:nth-child(1) { animation-delay: 0.05s; }
.scorecard__bars span:nth-child(2) { animation-delay: 0.12s; }
.scorecard__bars span:nth-child(3) { animation-delay: 0.19s; }
.scorecard__bars span:nth-child(4) { animation-delay: 0.26s; }

@keyframes scoreBarIn {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 0.8; }
}

/* ---------- Eyebrow ---------- */
.scorecard__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;

  color: var(--accent-1);
}

.scorecard__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);

  box-shadow: 0 0 10px 1px rgba(33, 158, 188, 0.7);
}

/* Time pill */
.scorecard__time {
  display: inline-flex;
  align-items: center;

  padding: 0.22rem 0.55rem;
  margin-left: 0.15rem;

  border: 1px solid rgba(33, 158, 188, 0.32);
  border-radius: var(--radius-pill);

  background: rgba(33, 158, 188, 0.08);

  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-1);
}

/* ---------- Title ---------- */
.scorecard__title {
  margin-top: 1.15rem;

  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.028em;
  color: #fff;
  text-wrap: balance;
}

/* ---------- Lead ---------- */
.scorecard__lead {
  max-width: 58ch;
  margin: 1.15rem auto 0;

  font-size: clamp(0.96rem, 1.3vw, 1.02rem);
  line-height: 1.72;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ---------- Action ---------- */
.scorecard__actions {
  margin-top: 1.9rem;
}

/* ---------- Note ---------- */
.scorecard__note {
  margin-top: 1rem;

  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .scorecard__card {
    padding: 1.6rem 1.25rem 1.75rem;
    border-radius: 14px;
  }

  .scorecard__eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .scorecard__actions .btn {
    width: 100%;
    --btn-py: 1.1rem;
  }
}