.scan-page main {
  padding-top: calc(var(--nav-offset) + 24px);
  padding-bottom: clamp(48px, 8vw, 80px);
  position: relative;
  z-index: 2;
}

.scan-hero {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto clamp(24px, 4vw, 40px);
  padding-inline: clamp(16px, 3vw, 24px);
}

.scan-hero__kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-b);
  margin: 0 0 10px;
}

.scan-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 12px;
}

.scan-hero__lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 14px;
}

.scan-hero__walkthrough {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-b);
  text-decoration: none;
  margin-bottom: 12px;
}

.scan-hero__walkthrough:hover {
  text-decoration: underline;
}

.scan-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
  margin: 0;
}

.scan-shell {
  max-width: 520px;
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 24px);
}

.scan-card {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(8, 20, 36, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  padding: clamp(20px, 4vw, 28px);
}

.scan-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.scan-progress__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-b);
}

.scan-progress__count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.scan-progress__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  overflow: hidden;
}

.scan-progress__fill {
  height: 100%;
  width: 10%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  transition: width 0.35s ease;
}

.scan-question h2 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
}

.scan-question__hint {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 16px;
}

.scan-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scan-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.scan-option:hover {
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.08);
}

.scan-option__emoji {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.scan-option__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  color: var(--muted);
}

.scan-option__text strong {
  font-size: 0.92rem;
  color: var(--text);
}

.scan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.scan-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
}

.scan-back:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.scan-pick-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.scan-result {
  text-align: center;
}

.scan-score {
  margin-bottom: 20px;
}

.scan-score__value {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.scan-score__value.is-low {
  color: #f87171;
}

.scan-score__value.is-mid {
  color: #fbbf24;
}

.scan-score__value.is-high {
  color: #7ddea0;
}

.scan-score__band {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 6px;
}

.scan-deadline-card {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 255, 0.25);
  background: rgba(124, 92, 255, 0.1);
  margin-bottom: 20px;
}

.scan-deadline-card h3 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-b);
  margin: 0 0 6px;
}

.scan-deadline-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

.scan-dimensions {
  text-align: left;
  margin-bottom: 20px;
}

.scan-dim {
  margin-bottom: 12px;
}

.scan-dim__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.scan-dim__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.scan-dim__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent-a);
  transition: width 0.5s ease;
}

.scan-steps {
  text-align: left;
  margin-bottom: 24px;
}

.scan-steps h3 {
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.scan-steps ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.scan-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.scan-restart {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
