/* VeraFace Analyze Page */
.analyze-page {
  min-height: 100vh;
  padding: 120px 40px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.analyze-header {
  text-align: center;
  margin-bottom: 60px;
}

.analyze-header .eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.analyze-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--fg);
}

.analyze-header .subtitle {
  font-size: 17px;
  color: var(--fg-muted);
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.photo-slot {
  position: relative;
  cursor: pointer;
}

.photo-slot.has-image .slot-inner {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.photo-slot.completed .slot-inner::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.slot-inner {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 20px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 200px;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.slot-inner:hover {
  border-color: rgba(201, 169, 110, 0.4);
}

.slot-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
}

.slot-label svg {
  opacity: 0.5;
}

.slot-label span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.slot-hint {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.6;
  text-align: center;
}

.slot-arrow {
  font-size: 22px;
  color: var(--accent);
  opacity: 0.4;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* Preview */
.slot-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Email Section */
.email-section {
  margin-bottom: 32px;
}

.email-section label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 10px;
}

.email-section .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.6;
}

.email-section input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg);
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  max-width: 400px;
}

.email-section input:focus {
  border-color: var(--accent);
}

.email-section input::placeholder {
  color: var(--fg-muted);
  opacity: 0.5;
}

/* Submit */
.submit-row {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-analyze {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 16px 48px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-analyze:hover {
  opacity: 0.9;
}

.btn-analyze:active {
  transform: scale(0.98);
}

.btn-analyze:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(14, 14, 22, 0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.5;
  line-height: 1.5;
}

/* Error */
.error-msg {
  text-align: center;
  padding: 14px 20px;
  background: rgba(220, 50, 50, 0.1);
  border: 1px solid rgba(220, 50, 50, 0.3);
  border-radius: 4px;
  color: #e05555;
  font-size: 14px;
  margin-top: 20px;
}

/* Mobile */
@media (max-width: 768px) {
  .analyze-page {
    padding: 100px 20px 60px;
  }
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .slot-inner {
    min-height: 140px;
  }
}