/* Business Efficiency Scorecard (/assessment/)
   Builds on the site's tokens in /style.css and adds a burgundy accent. */

:root {
  --sc-wine: #5b1e2d;
  --sc-wine-deep: #3f1520;
  --sc-warm: #fffaf3;
  --sc-line: rgba(36, 26, 20, 0.12);
  --sc-radius: 16px;
  --sc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sc-body { background: var(--sc-wine-deep); }
.sc-main {
  min-height: calc(100vh - 140px);
  padding: 56px 16px 80px;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(201, 113, 140, 0.28), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(221, 182, 198, 0.18), transparent 60%),
    var(--sc-wine-deep);
}
.sc-shell { max-width: 760px; margin: 0 auto; }
.sc-card {
  background: var(--sc-warm);
  border-radius: 22px;
  padding: 44px 48px;
  box-shadow: 0 30px 80px rgba(20, 6, 10, 0.35);
  overflow: hidden;
}
.sc-screen.sc-enter { animation: scIn 0.45s var(--sc-ease) both; }
@keyframes scIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.sc-sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* type */
.sc-eyebrow {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rose-dark); margin-bottom: 14px;
}
.sc-card h1, .sc-card h2 { color: var(--sc-wine); font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.08; }
.sc-card h1:focus, .sc-card h2:focus, .sc-q:focus { outline: none; }
.sc-lead { margin-top: 16px; font-size: 1.05rem; color: var(--ink-soft); max-width: 58ch; }
.sc-fineprint { margin-top: 18px; font-size: 0.82rem; color: var(--ink-soft); }
.sc-fineprint a { color: var(--rose-dark); text-decoration: underline; text-underline-offset: 2px; }
.sc-label {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose-dark);
}

/* intro */
.sc-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.sc-points li { position: relative; padding-left: 32px; font-weight: 600; }
.sc-points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235b1e2d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.sc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.sc-meta { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }

/* buttons */
.sc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 0.92rem; font-weight: 800; letter-spacing: 0.02em; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.sc-btn-primary { background: var(--sc-wine); color: #fff; box-shadow: 0 8px 22px rgba(91, 30, 45, 0.28); }
.sc-btn-primary:hover:not(:disabled) { background: var(--rose-dark); transform: translateY(-1px); }
.sc-btn-ghost { background: transparent; color: var(--sc-wine); border-color: var(--sc-line); }
.sc-btn-ghost:hover { border-color: var(--sc-wine); }
.sc-btn-small { min-height: 40px; padding: 8px 18px; font-size: 0.82rem; background: var(--sc-wine); color: #fff; }
.sc-btn-wide { width: 100%; margin-top: 10px; }
.sc-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.sc-btn.is-loading { opacity: 0.85; cursor: progress; }
.sc-btn.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: scSpin 0.8s linear infinite;
}
@keyframes scSpin { to { transform: rotate(360deg); } }
.sc-link {
  background: none; border: 0; padding: 6px 0; font: inherit; font-size: 0.88rem; font-weight: 700;
  color: var(--rose-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.sc-link:hover { color: var(--sc-wine); }

.sc-card :focus-visible,
.sc-invite :focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

/* progress */
.sc-progress { margin-bottom: 30px; }
.sc-progress-top {
  display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px;
}
.sc-bar { height: 8px; border-radius: 999px; background: #f1e4e8; overflow: hidden; }
.sc-bar span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--sc-wine)); transition: width 0.5s var(--sc-ease);
}

/* question */
.sc-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sc-q {
  display: block; padding: 0; margin-bottom: 22px;
  font-size: clamp(1.3rem, 3vw, 1.65rem); font-weight: 800; line-height: 1.2; color: var(--sc-wine);
}
.sc-options { display: grid; gap: 12px; }
.sc-option {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 2px solid var(--sc-line); border-radius: var(--sc-radius); background: #fff;
  cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.sc-option:hover { border-color: var(--pink); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(91, 30, 45, 0.08); }
.sc-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sc-option-key {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: #f6ecee; color: var(--sc-wine); font-size: 0.8rem; font-weight: 800; transition: background 0.2s, color 0.2s;
}
.sc-option-text { flex: 1; font-weight: 600; line-height: 1.4; }
.sc-option-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sc-line); transition: all 0.2s;
}
.sc-option:has(.sc-radio:checked) { border-color: var(--sc-wine); background: #fbf1f4; }
.sc-option:has(.sc-radio:checked) .sc-option-key { background: var(--sc-wine); color: #fff; }
.sc-option:has(.sc-radio:checked) .sc-option-check {
  border-color: var(--sc-wine);
  background: var(--sc-wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.sc-option:has(.sc-radio:focus-visible) { outline: 3px solid var(--rose); outline-offset: 3px; }
.sc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }

/* capture form */
.sc-form { margin-top: 26px; }
.sc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sc-field { margin-bottom: 16px; }
.sc-field label { display: block; margin-bottom: 6px; font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.sc-req { color: var(--rose-dark); }
.sc-opt { font-weight: 500; color: var(--ink-soft); }
.sc-field input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--sc-line); border-radius: 12px;
  background: #fff; font: inherit; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.sc-field input:focus { outline: none; border-color: var(--sc-wine); box-shadow: 0 0 0 4px rgba(201, 113, 140, 0.22); }
.sc-field input[aria-invalid="true"] { border-color: #b3261e; }
.sc-field-error { margin-top: 6px; font-size: 0.8rem; font-weight: 600; color: #b3261e; }
.sc-hint { margin-top: 6px; font-size: 0.8rem; color: var(--ink-soft); }
.sc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sc-consent {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; padding: 14px 16px;
  border-radius: 12px; background: #f8eff1; font-size: 0.88rem; line-height: 1.45; cursor: pointer;
}
.sc-consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--sc-wine); }
.sc-error-box {
  margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(179, 38, 30, 0.3);
  background: #fdf0ee; color: #7a1d17; font-size: 0.9rem; font-weight: 600;
}
.sc-error-box:focus { outline: none; }
.sc-error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; }
.sc-capture > .sc-link { margin-top: 16px; }

/* results: per-profile accent */
.sc-result { --acc: var(--sc-wine); --acc-soft: #f8eef1; }
.sc-result-manual { --acc: #a2506a; --acc-soft: #fbeef2; }
.sc-result-growing { --acc: #8a6d2f; --acc-soft: #f8f1e1; }
.sc-result-efficient { --acc: #3f7a6c; --acc-soft: #e9f4f0; }
.sc-result-ready { --acc: #5b1e2d; --acc-soft: #f6e9ed; }

.sc-result-hero {
  display: flex; align-items: center; gap: 30px;
  margin: -44px -48px 28px; padding: 36px 48px;
  background: linear-gradient(135deg, var(--acc-soft), #fff 75%); border-bottom: 1px solid var(--sc-line);
}
.sc-result .sc-eyebrow, .sc-result .sc-label { color: var(--acc); }
.sc-result h2 { color: var(--acc); }
.sc-summary { margin-top: 10px; font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.sc-selfnote { margin-top: 8px; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.sc-gauge { position: relative; flex: none; width: 150px; height: 150px; }
.sc-gauge-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-gauge-track { fill: none; stroke: rgba(36, 26, 20, 0.08); stroke-width: 10; }
.sc-gauge-arc {
  fill: none; stroke: var(--acc); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--sc-ease);
}
.sc-gauge-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; }
.sc-gauge-icon { width: 22px; height: 22px; fill: none; stroke: var(--acc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.sc-score { line-height: 1; color: var(--ink); }
.sc-score strong { font-size: 2.6rem; font-weight: 900; color: var(--acc); }
.sc-score span { font-size: 1rem; font-weight: 700; color: var(--ink-soft); }

.sc-note {
  margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; background: var(--acc-soft);
  font-size: 0.9rem; font-weight: 600;
}
.sc-explain { font-size: 1rem; color: var(--ink); }
.sc-bottleneck {
  margin-top: 22px; padding: 20px 22px; border-radius: var(--sc-radius);
  border-left: 5px solid var(--acc); background: var(--acc-soft);
}
.sc-bottleneck-name { margin: 4px 0 6px; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.sc-sub { margin: 30px 0 14px; font-size: 1.2rem; text-transform: uppercase; color: var(--ink); }
.sc-recs { list-style: none; counter-reset: rec; padding: 0; margin: 0; display: grid; gap: 12px; }
.sc-recs li {
  counter-increment: rec; position: relative; padding: 16px 18px 16px 62px;
  border: 1px solid var(--sc-line); border-radius: var(--sc-radius); background: #fff;
}
.sc-recs li::before {
  content: counter(rec); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 800; font-size: 0.85rem;
}
.sc-service {
  margin-top: 30px; padding: 28px; border-radius: 18px; color: var(--cream);
  background: linear-gradient(140deg, var(--sc-wine-deep), var(--sc-wine));
}
.sc-service .sc-label { color: var(--pink); }
.sc-service h3 { margin: 6px 0 10px; font-size: 1.35rem; color: #fff; }
.sc-service p { color: rgba(247, 239, 224, 0.85); }
.sc-service .sc-btn-primary { margin-top: 20px; background: var(--rose); box-shadow: none; }
.sc-service .sc-btn-primary:hover { background: var(--rose-bright); }
.sc-service .sc-link { display: inline-block; margin: 20px 0 0 18px; color: var(--pink); }
.sc-disclaimer { margin-top: 22px; font-size: 0.78rem; color: var(--ink-soft); font-style: italic; }
.sc-result-foot { margin-top: 10px; }

/* mobile */
@media (max-width: 640px) {
  .sc-main { padding: 24px 12px 56px; }
  .sc-card { padding: 28px 20px; border-radius: 18px; }
  .sc-field-row { grid-template-columns: 1fr; }
  .sc-option { padding: 14px; gap: 12px; }
  .sc-option-check { display: none; }
  .sc-nav .sc-btn { flex: 1; padding: 14px 16px; }
  .sc-result-hero { flex-direction: column; text-align: center; margin: -28px -20px 24px; padding: 28px 20px; gap: 16px; }
  .sc-gauge { width: 130px; height: 130px; }
  .sc-recs li { padding: 14px 14px 14px 54px; }
  .sc-recs li::before { left: 14px; }
  .sc-service { padding: 22px 18px; }
  .sc-service .sc-btn-primary { width: 100%; }
  .sc-service .sc-link { margin-left: 0; }
  .sc-actions .sc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-screen.sc-enter, .sc-btn.is-loading::before { animation: none; }
  .sc-gauge-arc, .sc-bar span, .sc-option { transition: none; }
}

@media print {
  .site-header, .site-footer, .sc-nav, .sc-result-foot, .sc-service .sc-btn { display: none !important; }
  .sc-main, .sc-body { background: #fff; }
  .sc-card { box-shadow: none; }
}
