/* Qualify hub — neutral entry step (routes to WL / ED forms) */

.qh-page {
  --qh-bg: #0a0a0a;
  --qh-fg: #f7f6f3;
  --qh-fg-soft: rgba(247, 246, 243, 0.7);
  --qh-card: rgba(247, 246, 243, 0.06);
  --qh-border: rgba(247, 246, 243, 0.15);
  --qh-border-soft: rgba(247, 246, 243, 0.5);
  --qh-accent: #f7f6f3;
  --qh-shadow: 0 1.321px 4.622px rgba(10, 10, 10, 0.1);
  margin: 0;
  min-height: 100dvh;
  background: var(--qh-bg);
  color: var(--qh-fg);
  font-family: var(--font-body);
}

.qh-page .skip-link:focus {
  background: var(--qh-fg);
  color: var(--qh-bg);
}

.qh-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 24px;
  overflow: clip;
}

.qh-glow {
  position: absolute;
  top: -120px;
  right: -145px;
  width: 400px;
  height: 400px;
  border-radius: 200px;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(247, 246, 243, 0.12) 0%,
    rgba(247, 246, 243, 0) 70%
  );
}

.qh-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--qh-border-soft);
}

.qh-logo {
  display: block;
  width: 49px;
  height: auto;
  line-height: 0;
}

.qh-logo img {
  display: block;
  width: 49px;
  height: auto;
  filter: brightness(0) invert(1);
}

.qh-exit {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--qh-fg);
  font: inherit;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
  padding: 0;
}

.qh-exit:hover,
.qh-exit:focus-visible {
  opacity: 0.85;
}

.qh-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding-top: 32px;
}

.qh-step {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 32px;
  min-height: 0;
  animation: qh-fade-in 0.28s ease both;
}

@keyframes qh-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qh-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  width: fit-content;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 18px;
  color: var(--qh-fg-soft);
}

.qh-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--qh-fg-soft);
  flex-shrink: 0;
}

.qh-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(2rem, 8vw, 2.5rem);
  letter-spacing: -0.033em;
  line-height: 1;
  color: var(--qh-fg);
}

.qh-title strong {
  font-weight: 500;
  color: var(--qh-fg);
}

.qh-lede {
  margin: 0;
  max-width: 28rem;
  font-size: 12px;
  line-height: 1.3;
  color: var(--qh-fg);
}

.qh-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.qh-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.qh-option {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  height: 280px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--qh-border);
  border-radius: 20px;
  background: var(--qh-card);
  box-shadow: var(--qh-shadow);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.qh-option__visual {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #151515;
}

.qh-option__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transition: transform 0.35s ease;
}

.qh-option__shade {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.02) 28%,
    rgba(10, 10, 10, 0.88) 100%
  );
}

.qh-option__content {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 17px;
  left: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.qh-option:hover {
  border-color: rgba(247, 246, 243, 0.35);
}

.qh-option:hover .qh-option__media {
  transform: scale(1.025);
}

.qh-option:focus-visible {
  outline: 2px solid rgba(247, 246, 243, 0.55);
  outline-offset: 2px;
}

.qh-option.is-selected {
  border-color: rgba(247, 246, 243, 0.75);
  box-shadow: 0 0 0 1px rgba(247, 246, 243, 0.28);
}

.qh-option__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.qh-option__icon {
  display: block;
  font-size: 14px;
  line-height: 21px;
}

.qh-option__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 21px;
  color: var(--qh-fg);
}

.qh-option__desc {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: rgba(247, 246, 243, 0.78);
}

.qh-radio {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(247, 246, 243, 0.85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.qh-option.is-selected .qh-radio {
  border-color: var(--qh-fg);
  background: radial-gradient(circle at center, var(--qh-fg) 0 45%, transparent 48%);
}

.qh-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 8px;
}

.qh-footer__left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.qh-footer__meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--qh-fg-soft);
}

.qh-footer__meta strong {
  color: var(--qh-fg);
  font-weight: 500;
}

.qh-error {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #ffb4a8;
}

.qh-error[hidden] {
  display: none;
}

.qh-continue {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--qh-fg);
  color: var(--qh-bg);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 22.5px;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.qh-continue:hover:not(:disabled) {
  transform: translateY(-1px);
}

.qh-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .qh-shell {
    max-width: 980px;
    min-height: calc(100dvh - 48px);
    margin: 24px auto;
    border: 1px solid var(--qh-border);
    border-radius: 16px;
    background: var(--qh-bg);
  }

  .qh-page {
    background: #050505;
  }

  .qh-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .qh-option {
    height: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qh-step,
  .qh-continue,
  .qh-option {
    animation: none;
    transition: none;
  }
}
