/* ─── Email Gate & Results Screen ─────────────────────────────────────────── */

/* ── Email Gate ───────────────────────────────────────────────────────────── */

.emailGate {
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gateIcon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.gateTitle {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--noon-text);
}

.gateSubtitle {
  font-size: 0.95rem;
  color: var(--noon-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.gateForm {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 400px;
  margin: 0 auto;
}

.gateInput {
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  font-family: var(--noon-font);
  color: var(--noon-text);
  background: var(--noon-bg-card);
  border: 1.5px solid var(--noon-border);
  border-radius: var(--noon-radius-sm);
  outline: none;
  transition: border-color var(--noon-transition);
}

.gateInput::placeholder {
  color: var(--noon-text-muted);
}

.gateInput:focus {
  border-color: var(--noon-accent);
  box-shadow: 0 0 0 3px var(--noon-accent-light);
}

.gateSubmit {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: white;
  background: linear-gradient(
    135deg,
    var(--noon-accent),
    var(--noon-accent-hover)
  );
  border: none;
  border-radius: var(--noon-radius-sm);
  cursor: pointer;
  transition: all var(--noon-transition);
  box-shadow: 0 4px 16px rgba(var(--noon-accent-rgb), 0.3);
}

.gateSubmit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(var(--noon-accent-rgb), 0.45);
}

.gateSubmit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.consentLabel {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--noon-text-muted);
  cursor: pointer;
  line-height: 1.4;
  margin: 0.25rem 0 0.25rem;
  text-align: left;
}

.consentLabel a {
  color: var(--noon-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consentLabel a:hover {
  color: var(--noon-accent-hover);
}

.consentCheckbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--noon-border);
  border-radius: var(--noon-radius-xs);
  background: transparent;
  cursor: pointer;
  transition: var(--noon-transition);
  margin-top: 1px;
}

.consentCheckbox:checked {
  background: var(--noon-accent);
  border-color: var(--noon-accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.consentCheckbox:focus-visible {
  outline: 2px solid var(--noon-accent);
  outline-offset: 2px;
}

.gateDisclaimer {
  font-size: 0.7rem;
  color: var(--noon-text-muted);
  margin-top: 0.5rem;
}

/* ── Results Screen ───────────────────────────────────────────────────────── */

.results {
  animation: fadeIn 0.5s ease-out;
}

.scoreHeader {
  text-align: center;
  margin-bottom: 2.5rem;
}

.scoreCircle {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
}

.scoreCircleSvg {
  transform: rotate(-90deg);
  width: 160px;
  height: 160px;
}

.scoreTrackCircle {
  fill: none;
  stroke: var(--noon-bg-elevated);
  stroke-width: 10;
}

.scoreFillCircle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scoreValue {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scoreNumber {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.scoreOutOf {
  font-size: 0.75rem;
  color: var(--noon-text-muted);
  margin-top: 0.25rem;
}

.riskBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.riskBadge.critical {
  color: var(--noon-danger);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.riskBadge.high {
  color: var(--noon-warning);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.riskBadge.moderate {
  color: #eab308;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.riskBadge.low {
  color: var(--noon-success);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.headlineText {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--noon-text);
  margin-bottom: 0.25rem;
}

.headlineSubtext {
  font-size: 0.9rem;
  color: var(--noon-text-secondary);
}

/* ── Category Breakdown ───────────────────────────────────────────────────── */

.categorySection {
  margin-bottom: 2rem;
}

.categorySectionTitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--noon-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.categoryList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.categoryItem {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.categoryHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.categoryName {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--noon-text);
}

.categoryPercent {
  font-size: 0.85rem;
  font-weight: 700;
}

.categoryBar {
  width: 100%;
  height: 8px;
  background: var(--noon-bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.categoryBarFill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}

/* ── Weaknesses Callout ───────────────────────────────────────────────────── */

.weaknessCallout {
  padding: 1.25rem;
  background: var(--noon-bg-card);
  border: 1px solid var(--noon-border);
  border-radius: var(--noon-radius-sm);
  margin-bottom: 2rem;
}

.weaknessTitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--noon-warning);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.weaknessText {
  font-size: 0.85rem;
  color: var(--noon-text-secondary);
  line-height: 1.6;
}

/* ── Booking CTA ──────────────────────────────────────────────────────────── */

.bookingCta {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--noon-bg-card),
    var(--noon-bg-elevated)
  );
  border: 1px solid var(--noon-border);
  border-radius: var(--noon-radius);
  margin-top: 1rem;
}

.ctaIcon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.ctaTitle {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--noon-text);
  margin-bottom: 0.5rem;
}

.ctaSubtitle {
  font-size: 0.85rem;
  color: var(--noon-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.ctaButton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: white;
  background: linear-gradient(
    135deg,
    var(--noon-accent),
    var(--noon-accent-hover)
  );
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--noon-transition);
  box-shadow: 0 4px 20px rgba(var(--noon-accent-rgb), 0.35);
}

.ctaButton:hover {
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--noon-accent-rgb), 0.5);
}

.ctaButton:focus,
.ctaButton:active,
.ctaButton:focus-visible {
  color: white !important;
  outline: 2px solid var(--noon-accent);
  outline-offset: 2px;
}
