:root {
  --bg: #07060b;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card2: rgba(255, 255, 255, 0.04);
  --text: #f2eef6;
  --muted: rgba(242, 238, 246, 0.72);
  --border: rgba(255, 255, 255, 0.10);
  --accent: #c26791;
  --accent2: #8b5cf6;
  --gradient: linear-gradient(135deg, #de897a 0%, #92278f 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --glow: 0 0 20px rgba(194, 103, 145, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body.with-shell {
  --shell-nav-h: 72px;
  --shell-footer-h: 92px;
}

.shell-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(14, 10, 15, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.shell-nav-logo img {
  width: 140px;
  height: auto;
  display: block;
}

.shell-nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  background: linear-gradient(90deg, #de897a 0%, #92278f 100%);
}

.app-container {
  min-height: 100vh;
}

.screen {
  display: none;
  width: 100%;
}

.screen.active {
  display: block;
}

.landing-section {
  position: relative;
  padding: var(--site-section-y) var(--site-gutter);
  min-height: calc(100vh - var(--shell-nav-h) - var(--shell-footer-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.landing-grid {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1440px;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.landing-gradient-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(146, 39, 143, 0.25) 0%, rgba(222, 137, 122, 0.15) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.landing-container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.landing-title {
  font-family: 'Anybody', sans-serif;
  font-size: clamp(32px, 10vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(92.03deg, #fff 30%, #de897ae6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-body {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 20px;
}

.landing-outcome {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
}

.outcome-label {
  color: #de897a;
  font-weight: 500;
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(to right, #de897a, #92278f);
  border-radius: 8px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0px 0px 9px 1px #dc7ff3;
}

.landing-cta:hover {
  transform: translateY(-2px);
  box-shadow: inset 0px 0px 9px 1px #dc7ff3, 0 4px 20px rgba(222, 137, 122, 0.4);
}

.question-card,
.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.results-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.role-selector {
  margin-bottom: 32px;
  text-align: center;
  border: 0;
  padding: 0;
  min-inline-size: 0;
}

.quiz-screen-container {
  width: min(680px, calc(100% - (var(--site-gutter) * 2)));
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 0;
  min-height: calc(100vh - var(--shell-nav-h) - var(--shell-footer-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.user-info-form {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  animation: slideDown 0.3s ease;
}

.user-info-form.hidden {
  display: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-field {
  width: 100%;
  text-align: left;
}

.form-label {
  display: inline-block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 103, 145, 0.15);
  outline: none;
}

.role-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.role-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.role-pill {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.role-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.role-pill.active,
.role-pill[aria-pressed="true"] {
  background: var(--gradient);
  border-color: transparent;
  box-shadow: inset 0px 0px 9px 1px #dc7ff3;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(200px, 100%);
}

.landing-cta:focus-visible,
.role-pill:focus-visible,
.btn:focus-visible,
.option-btn:focus-visible,
.recommendation-link:focus-visible,
.shell-nav a:focus-visible,
.shell-footer a:focus-visible {
  outline: 2px solid #de897a;
  outline-offset: 3px;
  box-shadow: var(--site-focus);
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: inset 0px 0px 9px 1px #dc7ff3;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0px 0px 9px 1px #dc7ff3, var(--glow);
}

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.learn-more-content {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-card2);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.learn-more-content h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--accent);
}

.learn-more-content ul {
  list-style: none;
  padding-left: 0;
}

.learn-more-content li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-size: 14px;
}

.learn-more-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.hidden {
  display: none !important;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-card2);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 100px;
  transition: width 0.3s ease;
  width: 12.5%;
}

.progress-text {
  font-size: 14px;
  color: var(--muted);
  min-width: 40px;
}

.stats {
  display: flex;
  gap: 16px;
  align-items: center;
}

.points {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.streak {
  font-size: 18px;
}

.question-card {
  padding: 32px;
}

.category-chip {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 20px;
}

.question-text {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.option-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.option-item.selected {
  background: rgba(194, 103, 145, 0.15);
  border-color: var(--accent);
}

.option-item.correct {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
}

.option-item.incorrect {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.option-item.disabled {
  pointer-events: none;
  opacity: 0.7;
}

.option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  margin-right: 16px;
  position: relative;
  flex-shrink: 0;
}

.option-item.selected .option-radio {
  border-color: var(--accent);
}

.option-item.selected .option-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.option-text {
  font-size: 15px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.option-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.option-btn[aria-checked="true"] {
  background: rgba(194, 103, 145, 0.15);
  border-color: var(--accent);
}

.option-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.option-btn.selected {
  background: rgba(194, 103, 145, 0.15);
  border-color: var(--accent);
}

.option-btn.correct {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
}

.option-btn.incorrect {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.option-btn:disabled {
  cursor: default;
  opacity: 0.85;
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-right: 14px;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.option-btn.selected .option-letter {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.option-btn.correct .option-letter {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

.option-btn.incorrect .option-letter {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

.feedback-box {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feedback-box > div {
  min-width: 0;
}

.feedback-box.correct {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.feedback-box.incorrect {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.feedback-icon {
  font-size: 20px;
}

.feedback-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.question-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.question-buttons .btn {
  flex: 1;
  min-width: 120px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 6, 11, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  box-shadow: var(--shadow), var(--glow);
}

.reward-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.modal-content h2 {
  font-family: 'Anybody', sans-serif;
  font-size: 24px;
  margin-bottom: 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-content p {
  color: var(--muted);
  margin-bottom: 24px;
}

.shell-footer {
  padding: 12px 16px 18px;
}

.shell-footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.shell-footer-copy {
  margin: 0;
  font-size: 14px;
  color: #888;
}

.shell-footer-links {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  white-space: nowrap;
}

.shell-footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
}

.shell-footer-links a:hover {
  color: #fff;
}

.results-card {
  text-align: center;
}

.persona-badge {
  margin-bottom: 32px;
}

.persona-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
}

.persona-title {
  font-family: 'Anybody', sans-serif;
  font-size: 32px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.score-display {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-card2);
  border-radius: 12px;
}

.score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

.score-label {
  font-size: 14px;
  color: var(--muted);
}

.strengths-section,
.improve-section,
.recommendations {
  text-align: left;
  margin-bottom: 24px;
}

.strengths-section h3,
.improve-section h3,
.recommendations h3 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 12px;
}

.strengths-section ul,
.improve-section ul {
  list-style: none;
}

.strengths-section li,
.improve-section li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-size: 14px;
}

.strengths-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
}

.improve-section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recommendation-link {
  display: block;
  padding: 12px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.recommendation-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.results-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.btn-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: linear-gradient(135deg, #4a90a4 0%, #357abd 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(53, 122, 189, 0.3);
}

.btn-email:hover {
  background: linear-gradient(135deg, #5aa0b4 0%, #4588c7 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(53, 122, 189, 0.4);
}

.btn-email svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .landing-section {
    padding-block: var(--site-section-y-compact);
  }
  
  .landing-body {
    font-size: 16px;
  }
  
  .landing-outcome {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .quiz-screen-container {
    width: min(100% - 28px, 680px);
    padding: 24px 0;
  }
  
  .question-card,
  .results-card {
    padding: 32px 24px;
  }
  
  .question-text {
    font-size: 18px;
  }
  
  .quiz-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .progress-container {
    width: 100%;
  }
  
  .score-display {
    gap: 24px;
  }
  
  .score-value {
    font-size: 28px;
  }
  
  .question-buttons {
    flex-direction: column;
  }
  
  .question-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Tighten spacing on small phones to avoid clipped cards and crowded controls. */
  .landing-section {
    padding-block: var(--site-section-y-compact);
  }

  .quiz-screen-container {
    width: min(100% - 24px, 680px);
    padding: 18px 0;
  }

  .question-card,
  .results-card {
    padding: 24px 16px;
    border-radius: 14px;
  }

  .landing-body {
    font-size: 15px;
  }
  
  .role-pills {
    flex-direction: column;
    gap: 10px;
  }
  
  .role-pill {
    width: 100%;
  }

  .progress-text {
    min-width: auto;
  }

  .option-btn {
    padding: 14px 12px;
    font-size: 14px;
  }

  .option-letter {
    width: 24px;
    height: 24px;
    margin-right: 10px;
  }

  .modal-content {
    padding: 28px 18px;
    border-radius: 14px;
  }
}

@media (min-width: 768px) {
  body.with-shell {
    --shell-nav-h: 82px;
    --shell-footer-h: 80px;
  }

  .shell-nav {
    padding: 16px 24px;
  }

  .shell-nav-logo img {
    width: 180px;
  }

  .shell-footer {
    padding: 14px 24px 20px;
  }

  .shell-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .shell-footer-copy,
  .shell-footer-links a {
    font-size: 15px;
  }

  .shell-footer-links {
    width: auto;
    gap: 24px;
  }
}

.think-box {
  text-align: center;
  padding: 20px;
  background: var(--bg-card2);
  border-radius: 12px;
  border: 1px dashed var(--border);
  margin-bottom: 16px;
}

.answer-box {
  padding: 24px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease;
}

.answer-label {
  font-size: 12px;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.answer-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.self-score-box {
  padding: 20px;
  background: var(--bg-card2);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.score-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.correct-btn {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.correct-btn:hover {
  background: rgba(34, 197, 94, 0.3);
}

.incorrect-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.incorrect-btn:hover {
  background: rgba(239, 68, 68, 0.3);
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
