/* Free website check page */

.ck {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 24px 96px;
}

.ck-stage { animation: ck-in 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes ck-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ck-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; margin-bottom: 40px; }
.ck-pill { pointer-events: none; }
.ck-h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.ck-h1 em { font-style: normal; color: var(--accent-soft); }
.ck-sub { max-width: 36rem; color: var(--text-2); font-size: clamp(15px, 1.5vw, 17.5px); text-wrap: pretty; }
.ck-h2 { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.2; }

/* form */
.ck-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 28px; }
.ck-field { display: flex; flex-direction: column; gap: 7px; }
.ck-field-wide { grid-column: 1 / -1; }
.ck-field label { font-size: 13px; font-weight: 600; color: var(--text-2); }

.ck input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ck select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: rgba(0, 0, 0, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23ffffff99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.ck select:invalid { color: var(--text-3); }
.ck select:focus { border-color: rgba(138, 180, 255, 0.6); }
.ck select option, .ck select optgroup { color: #111; background: #fff; }
.ck input::placeholder { color: var(--text-3); }
.ck input:focus { border-color: rgba(138, 180, 255, 0.6); background: rgba(0, 0, 0, 0.5); }

.ck-submit { grid-column: 1 / -1; height: 50px; font-size: 15px; margin-top: 4px; }
.ck-submit[disabled], .ck-unlock-form button[disabled] { opacity: 0.6; cursor: default; }
.ck-fine { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-3); text-align: center; }

.ck-error {
  grid-column: 1 / -1;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.09);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #fca5a5;
  font-size: 14px;
}

/* running */
.ck-running { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 48px 28px; }
.ck-running-title { font-size: 22px; word-break: break-word; }
.ck-spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent-soft);
  animation: ck-spin 0.9s linear infinite;
}
@keyframes ck-spin { to { transform: rotate(360deg); } }

.ck-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.ck-steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-3); transition: color 0.4s ease; }
.ck-steps li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.ck-steps li.is-active { color: var(--text); }
.ck-steps li.is-active::before { box-shadow: inset 0 0 0 1.5px var(--accent-soft); background: rgba(79, 141, 255, 0.25); }
.ck-steps li.is-done { color: var(--text-2); }
.ck-steps li.is-done::before { background: #34d399; box-shadow: none; }

/* results */
[data-stage="results"] { display: flex; flex-direction: column; gap: 16px; }
[data-stage="results"][hidden] { display: none; }

.ck-summary { padding: 28px; }
.ck-summary-site { font-size: 14px; color: var(--text-3); word-break: break-all; }
.ck-score { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.ck-score-num { font-size: clamp(64px, 11vw, 96px); font-weight: 800; line-height: 0.95; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.ck-score-label { margin-top: 6px; font-size: 16px; color: var(--text-2); }
.ck-score-split { display: flex; flex-wrap: wrap; gap: 8px; }

.ck-chip { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--text-2); }
.ck-chip-high { background: rgba(248, 113, 113, 0.12); color: #fca5a5; }
.ck-chip-pass { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }

.ck-local { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.ck-local-note { color: var(--text-2); font-size: 15px; }
.ck-compare { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 4px; }
.ck-comp-row {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03);
}
.ck-comp-row.is-you { background: rgba(79, 141, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(138, 180, 255, 0.4); }
.ck-comp-rank { font-size: 13px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ck-comp-name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-comp-meta { font-size: 13.5px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ck-comp-bar { grid-column: 2 / -1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.ck-comp-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }
.ck-comp-row.is-you .ck-comp-bar i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.ck-issues { padding: 28px; }
.ck-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.ck-item { padding: 16px 18px; border-radius: 13px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--border); }
.ck-item-top { display: flex; align-items: flex-start; gap: 12px; }
.ck-dot { flex-shrink: 0; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--text-3); }
.ck-dot-high { background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15); }
.ck-dot-medium { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.14); }
.ck-dot-low { background: #93c5fd; }
.ck-dot-pass { background: #34d399; }
.ck-item-title { font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.ck-item-sev { margin-left: auto; flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 3px; }
.ck-item-why { margin: 8px 0 0 22px; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.ck-item-fix { margin: 10px 0 0 22px; padding: 10px 12px; border-radius: 10px; background: rgba(79, 141, 255, 0.08); font-size: 14px; color: var(--text); line-height: 1.55; }
.ck-item-fix b { color: var(--accent-soft); font-weight: 600; }
.ck-item-pass { box-shadow: none; background: transparent; padding: 8px 18px; }
.ck-item-pass .ck-item-title { font-weight: 500; color: var(--text-2); font-size: 14.5px; }
.ck-pass-head { margin: 22px 0 4px; font-size: 13px; font-weight: 600; color: var(--text-3); }

.ck-locked { position: relative; margin-top: 8px; }
.ck-list-blur { filter: blur(6px); opacity: 0.55; user-select: none; pointer-events: none; margin-top: 0; }
.ck-ghost-bar { display: inline-block; height: 11px; border-radius: 6px; background: rgba(255, 255, 255, 0.25); vertical-align: middle; }

.ck-unlock, .ck-done {
  margin-top: 16px;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(79, 141, 255, 0.16), rgba(79, 141, 255, 0.05));
  box-shadow: inset 0 0 0 1px rgba(138, 180, 255, 0.3);
  text-align: center;
}
.ck-locked .ck-unlock { margin-top: -60px; position: relative; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: linear-gradient(180deg, rgba(20, 34, 66, 0.9), rgba(12, 18, 32, 0.92)); }
.ck-unlock-title { font-size: 20px; }
.ck-unlock-sub { margin: 8px auto 0; max-width: 34rem; color: var(--text-2); font-size: 14.5px; }
.ck-unlock-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.ck-unlock-form input[name="email"] { grid-column: 1 / -1; }
.ck-unlock-form button { grid-column: 1 / -1; height: 48px; font-size: 15px; }
.ck-unlock .ck-error { margin-top: 12px; text-align: left; }
.ck-unlock .ck-fine { margin-top: 12px; }

.ck-again { text-align: center; margin-top: 8px; }
.ck-again a { color: var(--text-3); font-size: 14px; }
.ck-again a:hover { color: var(--text); }

@media (max-width: 640px) {
  .ck { padding: 110px 16px 64px; }
  .ck-form, .ck-unlock-form { grid-template-columns: 1fr; }
  .ck-form, .ck-summary, .ck-local, .ck-issues { padding: 20px; }
  .ck-item-sev { display: none; }
  .ck-item-why, .ck-item-fix { margin-left: 0; }
  .ck-comp-meta { font-size: 12.5px; }
}
