/* /score — the free score flow: entry, scanning, preview, report, and the
   confirmation, failure and waitlist states. */
.mk-score-state {
  --score-pad-top: clamp(40px, 5cqw, 80px);
  --score-pad-bottom: clamp(48px, 6cqw, 96px);
  padding: var(--score-pad-top) var(--gutter) var(--score-pad-bottom);
  /* advancing through the nine states must not move the content vertically */
  min-height: calc(520px + var(--score-pad-top) + var(--score-pad-bottom));
}
.mk-score-state .mk-col-narrow { max-width: 560px; }
.mk-score-state .mk-col-wide { max-width: 680px; }
.mk-score-narrow { max-width: 680px; display: flex; flex-direction: column; gap: 18px; }
.mk-score-tight { max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.mk-score-h2 { font-size: clamp(26px, 2.4cqw, 34px); line-height: 1.1; }
.mk-score-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mk-score-reveal { animation: mk-score-rise 0.4s cubic-bezier(0.22, 0.7, 0.2, 1) both; }
@keyframes mk-score-rise { from { opacity: 0; transform: translate3d(0, 20px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mk-score-reveal { animation: none; } }

/* entry */
.mk-score-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-2); }

/* scanning */
.mk-score-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.mk-score-step { display: flex; gap: 14px; align-items: center; color: var(--ink-3); transition: opacity 0.4s ease; }
.mk-score-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; box-sizing: border-box; border: 1px solid var(--rule); background: transparent; color: var(--card); font-size: 12px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.mk-score-body { margin-top: clamp(24px, 3cqw, 40px); }
.mk-score-rail { flex: 1 1 300px; min-width: 0; max-width: 560px; display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--rule); padding-left: clamp(20px, 2.5cqw, 40px); }
.mk-score-rail-head { font-size: 13px; font-weight: 600; }
.mk-score-rail-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.mk-score-rail-list > li:not(:last-child) { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.mk-score-track { height: 3px; border-radius: 3px; background: var(--rule); overflow: hidden; max-width: 520px; }
.mk-score-track > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.7s ease-out; }

/* preview and report */
.mk-score-figure { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.mk-score-number { font-family: var(--f-head); font-size: clamp(64px, 6cqw, 96px); line-height: 0.9; font-variant-numeric: tabular-nums; }
.mk-score-out { font-size: 24px; color: var(--ink-3); padding-bottom: 10px; }
.mk-score-grade { font-size: 19px; font-weight: 500; padding-bottom: 12px; }
.mk-score-read { font-size: 19px; line-height: 1.4; }
.mk-score-today { font-size: 13px; color: var(--ink-3); padding-bottom: 14px; }
.mk-score-grade { overflow: hidden; }
.mk-score-pending { opacity: 0; }
.mk-score-pending-word { display: inline-block; transform: translateY(118%); }
@media (prefers-reduced-motion: reduce) { .mk-score-pending { opacity: 1; } .mk-score-pending-word { transform: none; } }
.mk-score-potential { display: flex; align-items: baseline; gap: 8px; font-size: 15px; color: var(--ink-2); }
.mk-score-potential b { font-family: var(--f-head); font-size: 26px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink); }

.mk-score-platforms { display: flex; flex-direction: column; }
.mk-score-platform { display: grid; grid-template-columns: 1fr minmax(60px, 110px) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.mk-score-platform:last-child { border-bottom: 1px solid var(--rule); }
.mk-score-platform-grade { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-score-bar { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.mk-score-bar > span { display: block; height: 100%; background: var(--ink); }

.mk-score-list { overflow: hidden; }
.mk-score-list-head { padding: 14px 20px; border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 600; }
.mk-score-list-foot { padding: 14px 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.mk-score-issues { display: flex; flex-direction: column; }
.mk-score-issue { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.mk-score-issue:last-child { border-bottom: 0; }
.mk-score-issue-n { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 500; }
.mk-score-issue-title { font-weight: 600; }
.mk-score-issue-detail { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.mk-score-issue-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-3); }
.mk-score-issue-meta b { font-weight: 500; color: var(--ink-2); }
/* the report lists priorities flush, without the card chrome the preview uses */
.mk-score-issues-plain .mk-score-issue { padding: 0 0 12px; }
.mk-score-issues-plain { gap: 12px; }

.mk-score-signals { padding: clamp(16px, 2cqw, 24px); display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.mk-score-signal-head, .mk-score-signal { display: grid; grid-template-columns: 1fr minmax(70px, 130px) 56px; gap: 12px; }
.mk-score-signal-head { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.mk-score-signal-head span:last-child { text-align: right; }
.mk-score-signal { align-items: center; min-height: 34px; padding: 4px 0; }
.mk-score-signal-note { display: block; font-size: 13px; color: var(--ink-3); }
.mk-score-signal-score { display: flex; flex-direction: column; gap: 4px; }
.mk-score-signal-grade { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mk-score-signal-pts { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.mk-score-signals-note { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }

.mk-score-recs { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; }

/* email gate and the forms in the confirmation, waitlist and failure states */
.mk-score-gate { border-top: 1px solid var(--rule); margin-top: clamp(24px, 3cqw, 40px); padding-top: clamp(24px, 3cqw, 40px); }
.mk-score-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.mk-score-field input { font-weight: 400; }
.mk-score-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }

@media (max-width: 559px) {
  .mk-score-signal-head, .mk-score-signal { grid-template-columns: 1fr auto 48px; gap: 8px; }
  .mk-score-signal .mk-score-bar { display: none; }
}

.mk-score-field .mk-input { flex: none; }
.mk-score-invalid { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--rule-2); border-radius: 6px; background: var(--card); max-width: 34em; }
