/* Lakuna Diagnostic — adaptive calibration */

#lakuna-diagnostic {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background:
    radial-gradient(circle at 22% 16%, rgba(16, 60, 125, .08), transparent 34rem),
    #f7f9fc;
  color: #111b31;
  font-family: inherit;
  overflow: auto;
}

.lkd-shell {
  width: min(980px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0 70px;
  display: flex;
  flex-direction: column;
}

.lkd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lkd-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lkd-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #073b7a;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 23px;
}

.lkd-brand-copy strong {
  display: block;
  font-size: 20px;
  letter-spacing: -.02em;
}

.lkd-brand-copy span {
  display: block;
  margin-top: 2px;
  color: #718096;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.lkd-exit {
  border: 0;
  background: transparent;
  color: #718096;
  font: inherit;
  cursor: pointer;
}

.lkd-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 50px;
}

.lkd-eyebrow {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lkd-stage h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.lkd-intro {
  max-width: 680px;
  margin: 22px 0 0;
  color: #607086;
  font-size: 19px;
  line-height: 1.55;
}

.lkd-progress {
  margin-top: 46px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.lkd-progress > div {
  width: 0%;
  height: 100%;
  background: #073b7a;
  transition: width .35s ease;
}

.lkd-status {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  color: #7b8798;
  font-size: 13px;
}

.lkd-text-card {
  margin-top: 52px;
  padding: 38px 42px;
  border: 1px solid #dfe5ed;
  background: rgba(255,255,255,.88);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(28, 46, 78, .06);
}

.lkd-text {
  font-size: clamp(24px, 3.1vw, 34px);
  line-height: 1.72;
  letter-spacing: .005em;
  color: #a4adba;
  user-select: none;
}

.lkd-char.done {
  color: #25344c;
}

.lkd-char.current {
  color: #0b3d78;
  background: rgba(11, 61, 120, .10);
  border-radius: 4px;
}

.lkd-char.error {
  color: #a63939;
  background: rgba(166, 57, 57, .09);
  border-radius: 4px;
}

.lkd-input {
  position: fixed;
  left: -9999px;
  opacity: 0;
}

.lkd-footnote {
  margin-top: 24px;
  color: #8792a2;
  font-size: 14px;
}

.lkd-result {
  max-width: 900px;
  margin: auto 0;
}

.lkd-result h1 {
  margin-bottom: 12px;
}

.lkd-result-lead {
  color: #68778a;
  font-size: 18px;
}

.lkd-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.lkd-metric {
  padding: 24px;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 18px;
}

.lkd-metric span {
  display: block;
  color: #778397;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.lkd-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 31px;
  letter-spacing: -.035em;
}

.lkd-leverage {
  margin-top: 18px;
  padding: 28px;
  border-radius: 18px;
  background: #073b7a;
  color: white;
}

.lkd-leverage span {
  display: block;
  opacity: .72;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
}

.lkd-leverage strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
}

.lkd-result-actions {
  margin-top: 28px;
}

.lkd-primary {
  border: 0;
  border-radius: 13px;
  padding: 17px 25px;
  background: #073b7a;
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 700px) {
  .lkd-shell {
    width: calc(100% - 28px);
    padding-top: 24px;
  }

  .lkd-stage {
    padding-top: 45px;
  }

  .lkd-text-card {
    padding: 24px;
  }

  .lkd-metrics {
    grid-template-columns: 1fr;
  }
}
