/* ---------------------------------------------------------------------------
   Blok "Benieuwd of Smart Consultant jouw uitdaging kan oplossen?"
   (fit-score-blok.njk): donkerblauw vlak met links tekst en een knop naar de
   fit-check, rechts een witte kaart met een voorbeelduitslag.
   --------------------------------------------------------------------------- */

.sc-fitscore {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
  padding: clamp(40px, 5.5vw, 88px) clamp(24px, 5vw, 88px) clamp(64px, 7vw, 112px);
  border-radius: 34px;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(86, 207, 189, 0.22), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(86, 207, 189, 0.12), transparent 70%),
    #1b2246;
  color: #ffffff;
}

.sc-fitscore::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.4;
  pointer-events: none;
}

.sc-fitscore-tekst h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.sc-fitscore-tekst h2 em {
  color: var(--sc-accent);
  font-style: normal;
}

.sc-fitscore-tekst > p {
  max-width: 46ch;
  margin: 20px 0 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
}

.sc-fitscore-punten {
  display: grid;
  gap: 10px;
  margin: -8px 0 30px;
  padding: 0;
  list-style: none;
}

.sc-fitscore-punten li {
  position: relative;
  padding-left: 32px;
  color: #ffffff;
  font-weight: 600;
}

.sc-fitscore-punten li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2246' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat,
    var(--sc-accent);
}

/* Getint (fitscoreTint): sluit zonder witte strook aan op het vlak erboven. */
.sc-section-tint + .sc-fitscore-sectie.sc-section-tint {
  padding-top: 0;
}

.sc-fitscore-tekst .sc-fitscore-noot {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.sc-fitscore-noot span {
  color: var(--sc-accent);
  font-weight: 700;
}

/* --- Kaart met de voorbeelduitslag ----------------------------------------- */
.sc-fitscore-kaart {
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  color: var(--sc-primary);
}

.sc-fitscore-label {
  margin: 0 0 12px;
  color: #5c6b7d;
  font-size: 0.92rem;
  font-weight: 600;
}

.sc-fitscore-totaal {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border-radius: 20px;
  background: #e8f6f3;
}

.sc-fitscore-getal {
  font-size: clamp(3rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.sc-fitscore-totaal strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sc-fitscore-totaal span span {
  color: #0d7f70;
  font-size: 0.95rem;
  font-weight: 600;
}

.sc-fitscore-lijst {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.sc-fitscore-lijst li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px 0 10px;
  border-top: 1px solid rgba(27, 34, 70, 0.1);
}

.sc-fitscore-lijst li:first-child {
  border-top: 0;
}

.sc-fitscore-naam {
  font-size: 0.98rem;
  font-weight: 600;
}

.sc-fitscore-punt {
  font-size: 0.98rem;
  font-weight: 800;
}

.sc-fitscore-balk {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 8px;
  background: rgba(27, 34, 70, 0.08);
  overflow: hidden;
}

.sc-fitscore-balk i {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d7f70, var(--sc-accent));
}

/* De balken lopen vol zodra het blok in beeld schuift (waar de browser dat
   ondersteunt; anders staan ze meteen goed). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sc-fitscore-balk i {
      animation: sc-fitscore-vul linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }
  }
}

@keyframes sc-fitscore-vul {
  from { width: 0; }
  to { width: var(--score); }
}

@media (max-width: 880px) {
  .sc-fitscore {
    grid-template-columns: 1fr;
    padding-bottom: 88px;
  }
}

/* Verwachte kosten: korte oranje balk met het label "Laag", zodat het opvalt
   (op verzoek van de gebruiker de enige oranje kleur op de site). */
.sc-fitscore-oranje .sc-fitscore-balk i {
  background: linear-gradient(90deg, #e8780c, #f6a23c);
}

.sc-fitscore-badge {
  padding: 3px 12px;
  border-radius: 999px;
  background: #e8780c;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

/* Knoppen onder de "Gratis."-regel: iets groter dan normaal; met
   fitscoreBrochure ernaast een witte knop voor de brochure. */
.sc-fitscore-tekst .sc-fitscore-noot {
  margin: 0 0 18px;
}

.sc-fitscore-knoppen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sc-fitscore-knoppen .sc-page-btn {
  min-height: 56px;
  padding: 16px 22px;
  gap: 12px;
  font-size: 0.98rem;
}

@media (max-width: 560px) {
  .sc-fitscore-knoppen .sc-page-btn {
    width: 100%;
    justify-content: space-between;
  }
}

.sc-fitscore-knoppen .sc-fitscore-knop-brochure {
  background: #ffffff;
  color: var(--sc-primary);
}

/* Schuivende rij klantlogo's onderin het blok (fitscoreBrochure). */
.sc-fitscore-logos {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: clamp(22px, 2.6vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sc-fitscore-logos > p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}
