/* De Stresscheck (/stresstest). Kleuren, fonts en vormen komen uit de bestaande site (home.css tokens). */
.sc {
  --sc-bg: #edded3;
  --sc-card: #fff;
  --sc-ink: #000;
  --sc-muted: rgba(56, 56, 56, 0.8);
  --sc-primary: #a63612;
  --sc-green: #35661b;
  --sc-orange: #db511a;
  --sc-line: rgba(0, 0, 0, 0.1);
  --sc-serif: "PT Serif", "PT Serif Placeholder", serif;
  --sc-sans: "Poppins", "Poppins Placeholder", sans-serif;
  box-sizing: border-box;
  width: 100%;
  background: var(--sc-bg);
  padding: 120px 20px 72px;
  font-family: var(--sc-sans);
  color: var(--sc-ink);
  -webkit-text-size-adjust: 100%;
}
.sc *, .sc *::before, .sc *::after { box-sizing: border-box; }
@media (max-width: 809px) { .sc { padding: 96px 16px 56px; } }

.sc__wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--sc-card);
  border-radius: 16px;
  padding: 40px;
}
@media (max-width: 809px) { .sc__wrap { padding: 28px 20px; } }

.sc__screen { transition: opacity 0.18s ease, transform 0.25s ease; }
.sc__screen.is-leaving { opacity: 0; }
.sc__screen.is-entering { opacity: 0; transform: translateY(8px); }

/* Vraagschermen en loader hebben een vaste hoogte (gezet door stresstest.js); "Vorige vraag" staat altijd onderaan. */
.sc__screen--fixed { display: flex; flex-direction: column; }
.sc__screen--fixed .sc__back { margin-top: auto; align-self: flex-start; }
.sc__screen--fixed .sc__options { margin-bottom: 20px; }
.sc__loader.sc__screen--fixed { justify-content: center; }
.sc__probe { position: absolute; left: -10000px; top: 0; visibility: hidden; pointer-events: none; }
.sc { position: relative; overflow-x: clip; }

.sc p { margin: 0; }
.sc h1, .sc h2, .sc h3 { margin: 0; font-weight: 400; }
.sc [tabindex="-1"]:focus { outline: none; }

/* Intro */
.sc__eyebrow { font-size: 14px; font-weight: 500; color: var(--sc-primary); letter-spacing: 0.02em; margin-bottom: 10px !important; }
.sc__title { font-family: var(--sc-serif); font-size: 40px; line-height: 1.15; letter-spacing: -0.03em; }
.sc__lead { font-size: 17px; line-height: 1.5; color: var(--sc-muted); margin-top: 14px !important; }
.sc__chips { list-style: none; margin: 22px 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sc__chips li { font-size: 14px; line-height: 1.2; padding: 9px 14px; border-radius: 48px; background: rgba(219, 160, 160, 0.18); color: var(--sc-ink); }
.sc__small { font-size: 13px; line-height: 1.5; color: var(--sc-muted); margin-top: 22px !important; }
@media (max-width: 809px) { .sc__title { font-size: 32px; } .sc__lead { font-size: 16px; } }

/* Knoppen: zelfde vorm als "Gratis kennismaken" op de homepage */
.sc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 16px 28px;
  border: 0; border-radius: 48px; cursor: pointer;
  background: var(--sc-primary); color: #fff !important; text-decoration: none;
  font: 500 16px/1.2 var(--sc-sans); text-align: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .sc-btn:hover { background: #8f2e0f; }
  .sc-opt:hover { border-color: var(--sc-primary); }
  .sc__back:hover { color: var(--sc-ink); }
}
.sc-btn:active { transform: scale(0.98); }
.sc-btn--block { display: flex; width: 100%; margin-top: 14px; }

/* Contact boven de knop: Instagram en het mailadres, ook zichtbaar als de mailknop niets doet */
.sc-contact { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.sc-contact__ig {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--sc-primary); color: var(--sc-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sc-contact__text { font-size: 15px; line-height: 1.45; color: var(--sc-muted); }
.sc-contact__text a { color: var(--sc-primary); font-weight: 500; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (hover: hover) { .sc-contact__ig:hover { background: var(--sc-primary); color: #fff; } }
@media (max-width: 809px) { .sc [data-sc-start] { width: 100%; } }

.sc :focus-visible { outline: 3px solid var(--sc-green); outline-offset: 3px; }

/* Vraag */
.sc__progress { margin-bottom: 26px; }
.sc__progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; margin-bottom: 10px; }
.sc__domain { color: var(--sc-primary); font-weight: 500; }
.sc__count { color: var(--sc-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc__bar { height: 6px; border-radius: 6px; background: rgba(219, 160, 160, 0.25); overflow: hidden; }
.sc__bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--sc-primary); transition: width 0.4s ease; }
.sc__help { font-size: 14px; color: var(--sc-muted); margin-bottom: 8px !important; }
.sc__question { font-family: var(--sc-serif); font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; }
@media (max-width: 809px) { .sc__question { font-size: 22px; } }

.sc__options { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.sc-opt {
  display: flex; align-items: center; width: 100%; min-height: 52px;
  padding: 14px 18px; text-align: left;
  border: 1.5px solid var(--sc-line); border-radius: 12px;
  background: #fff; color: var(--sc-ink); cursor: pointer;
  font: 400 16px/1.35 var(--sc-sans);
  transition: border-color 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.sc-opt.is-selected { border-color: var(--sc-primary); background: rgba(166, 54, 18, 0.08); font-weight: 500; }

.sc__back {
  display: inline-block; margin-top: 20px; padding: 10px 2px; min-height: 44px;
  border: 0; background: none; cursor: pointer;
  font: 400 15px/1.4 var(--sc-sans); color: var(--sc-muted);
  text-decoration: underline; text-underline-offset: 3px;
}

/* Loader */
.sc__loader { text-align: center; padding: 36px 0 28px; }
.sc__dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; }
.sc__dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--sc-primary); opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) {
  .sc__dots span { animation: sc-breathe 1.8s ease-in-out infinite; }
  .sc__dots span:nth-child(2) { animation-delay: 0.3s; }
  .sc__dots span:nth-child(3) { animation-delay: 0.6s; }
}
@keyframes sc-breathe { 0%, 100% { opacity: 0.3; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }
.sc__loader-title { font-family: var(--sc-serif); font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; min-height: 2.5em; display: flex; align-items: center; justify-content: center; transition: opacity 0.35s ease; }
.sc__loader-title.is-fading { opacity: 0; }
.sc__loader-sub { font-size: 15px; color: var(--sc-muted); margin-top: 6px !important; }
.sc__steps { list-style: none; padding: 0; margin: 24px auto 0; display: flex; justify-content: center; gap: 8px; }
.sc__steps li { width: 36px; height: 4px; border-radius: 4px; background: rgba(219, 160, 160, 0.3); transition: background-color 0.6s ease; }
.sc__steps li.is-active { background: var(--sc-primary); }
@media (max-width: 809px) { .sc__loader-title { font-size: 22px; } }

/* Uitslag */
.sc-result { border-radius: 12px; padding: 24px; }
.sc-result--laag { background: rgba(53, 102, 27, 0.1); --sc-level: var(--sc-green); }
.sc-result--verhoogd { background: rgba(219, 160, 160, 0.28); --sc-level: #b4430f; }
.sc-result--hoog { background: rgba(166, 54, 18, 0.13); --sc-level: var(--sc-primary); }
.sc-result__label { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--sc-level); margin-bottom: 8px !important; }
.sc-result__title { font-family: var(--sc-serif); font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; }
.sc-result__text { font-size: 16px; line-height: 1.55; margin-top: 12px !important; }
@media (max-width: 809px) { .sc-result { padding: 20px 18px; } .sc-result__title { font-size: 22px; } }

.sc-scores { margin-top: 32px; }
.sc-scores__title { font-family: var(--sc-serif); font-size: 20px; letter-spacing: -0.02em; }
.sc-scores__list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 14px; }
.sc-score__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 6px; }
.sc-score__word { color: var(--sc-muted); white-space: nowrap; }
.sc-score__bar { height: 8px; border-radius: 8px; background: rgba(219, 160, 160, 0.25); overflow: hidden; }
.sc-score__bar span { display: block; height: 100%; width: 0; border-radius: 8px; transition: width 0.8s ease; }
.sc-score--laag .sc-score__bar span { background: var(--sc-green); }
.sc-score--verhoogd .sc-score__bar span { background: var(--sc-orange); }
.sc-score--hoog .sc-score__bar span { background: var(--sc-primary); }

.sc-care { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--sc-line); font-size: 13px; line-height: 1.55; color: var(--sc-muted); }
.sc-care p + p { margin-top: 10px; }
.sc-care strong { color: var(--sc-ink); font-weight: 500; }
.sc-care a { color: inherit; }
.sc__restart { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .sc__screen, .sc__bar span, .sc-score__bar span, .sc__loader-title, .sc__steps li, .sc-btn, .sc-opt { transition: none !important; }
}
