/* Intro/CTA card — a bordered, shimmer-tinted card for a page's lead-in copy
   plus its primary actions (or, unaccompanied by actions, just a title).
   Shared by the Spot home page (Prices) and the platform dashboard. */
.forecast-cta-card {
  border: 1px solid var(--varial-primary, #1B3AA0);
  box-shadow: var(--varial-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.forecast-cta-card:hover {
  box-shadow: var(--varial-shadow-lg, 0 10px 15px rgba(0, 0, 0, 0.1));
  transform: translateY(-1px);
}

.forecast-cta-inner {
  position: relative;
}

.forecast-cta-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--varial-primary, #1B3AA0);
  margin-bottom: 0.45rem;
}

.forecast-cta-title {
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--varial-gray-900, #131210);
}

.forecast-cta-copy {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--varial-gray-700, #44403C);
  max-width: 42rem;
}

.forecast-cta-btn {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Price-it, Value-it and Your book share these narrow intro cards. Keep each
   full-width action on one readable line as its card becomes narrower. */
.forecast-cta-actions {
  container-type: inline-size;
}
.forecast-cta-actions .forecast-cta-btn {
  flex: 0 0 auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  white-space: nowrap;
}

@supports (width: 1cqw) {
  .forecast-cta-actions .forecast-cta-btn {
    font-size: clamp(0.8125rem, 5.25cqw, 1.0625rem);
  }
}

/* Variant 1: premium light */
.forecast-cta-v1 {
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--varial-primary, #1B3AA0) 10%, var(--varial-bg, #FAF8F2)),
    color-mix(in srgb, var(--varial-success, #16A34A) 7%, var(--varial-bg, #FAF8F2)),
    color-mix(in srgb, var(--varial-primary, #1B3AA0) 8%, var(--varial-bg, #FAF8F2))
  );
  background-size: 220% 220%;
  background-position: 0% 50%;
  animation: forecast-cta-shimmer 10s ease-in-out infinite;
}

@keyframes forecast-cta-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .forecast-cta-v1 {
    animation: none;
    background-position: 0% 50%;
  }
}

@media (max-width: 767.98px) {
  .forecast-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Tinted card headers — same colour-mix recipe as the intro/CTA card above
   (static, no shimmer — a thin header bar reads busy with the animation a
   full card carries fine), so a page's table/snapshot headers read as part
   of the same page instead of the plain grey card-header everywhere else in
   the app. Shared by the Prices and Valuations landing pages. */
.workspace-card-header,
.results-content-full .results-section .card > .card-header:not(.bg-warning) {
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--varial-primary, #1B3AA0) 10%, var(--varial-bg, #FAF8F2)),
    color-mix(in srgb, var(--varial-success, #16A34A) 7%, var(--varial-bg, #FAF8F2)),
    color-mix(in srgb, var(--varial-primary, #1B3AA0) 8%, var(--varial-bg, #FAF8F2))
  );
  font-family: var(--varial-font-heading);
  font-weight: 600;
}
