:root {
  --bg: #071013;
  --text: #f5f0eb;
  --accent: #d70913;
  --rose: #e8456b;
  --blush: rgba(232, 69, 107, 0.08);
  --surface: #0d1b1e;
  --muted: #8a9a9d;
}
html.light {
  --bg: #f5f0eb;
  --text: #2c1810;
  --accent: #d70913;
  --rose: #d7365a;
  --blush: rgba(215, 54, 90, 0.06);
  --surface: #ffffff;
  --muted: #6b5a4e;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: "Ubuntu", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  transition:
    background 0.3s,
    color 0.3s;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.hidden {
  display: none !important;
}
.screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.screen.fade-out {
  opacity: 0;
}

/* Theme Toggle */
#themeToggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--muted);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
#themeToggle:hover {
  border-color: var(--accent);
}

/* Welcome Screen */
#welcomeScreen {
  position: relative;
  overflow: hidden;
}
#welcomeScreen::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blush) 0%, transparent 70%);
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.welcome-visual {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.welcome-heart {
  font-size: 3rem;
  animation: heartPulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(215, 9, 19, 0.4));
}
@keyframes heartPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
.welcome-ring {
  width: 56px;
  height: 56px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  opacity: 0.35;
  position: relative;
}
.welcome-ring:first-child {
  margin-right: -14px;
  z-index: 1;
}
.welcome-ring:last-child {
  margin-left: -14px;
}
#welcomeScreen .title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
#welcomeScreen .tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.welcome-sub {
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.7;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

/* Floating Hearts */
.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.floating-hearts span {
  position: absolute;
  bottom: -30px;
  font-size: 1rem;
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.7);
  }
  10% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) rotate(45deg) scale(1);
  }
}
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  font-family: "Ubuntu", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.3s,
    opacity 0.3s;
  display: inline-block;
  text-align: center;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(215, 9, 19, 0.35);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}
#resumePrompt {
  margin-top: 2rem;
  text-align: center;
}
#resumePrompt p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.resume-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* Names Screen */
#namesScreen .names-container {
  width: 100%;
  max-width: 460px;
}
#namesScreen h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
}
#namesScreen p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  text-align: center;
}
.names-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 1.5rem;
}
.names-pair .input-group {
  margin-bottom: 0;
}
.names-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  padding: 0 0.75rem;
  padding-top: 1.2rem;
  opacity: 0.6;
}
@media (max-width: 480px) {
  .names-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .names-connector {
    padding: 0.25rem 0;
    font-size: 1.1rem;
  }
}
.input-group {
  margin-bottom: 1.5rem;
}
.input-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.input-group input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 8px;
  color: var(--text);
  font-family: "Ubuntu", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
  outline: none;
}
.input-group input:focus {
  border-color: var(--accent);
}
.input-group input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

/* Question Screen */
#questionScreen {
  justify-content: flex-start;
  padding-top: 1.5rem;
}
.turn-indicator {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.turn-indicator::before {
  content: "\2764";
  font-size: 0.7rem;
}
/* Section Dots */
.section-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}
.section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--muted);
  transition: all 0.3s ease;
}
.section-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(215, 9, 19, 0.4);
  transform: scale(1.2);
}
.section-dot.done {
  background: var(--rose);
  border-color: var(--rose);
  opacity: 0.7;
}
/* Section Progress */
.section-progress {
  width: 100%;
  max-width: 500px;
  margin-bottom: 1.25rem;
}
.section-progress-label {
  font-size: 0.75rem;
  color: var(--rose);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blush);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}
.section-progress-bar-bg {
  width: 100%;
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.section-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--rose));
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}
.section-progress-text {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}
.question-content {
  width: 100%;
  max-width: 500px;
}

/* Section Intro Screen */
.section-intro {
  text-align: center;
  max-width: 440px;
  animation: sectionFadeIn 0.5s ease;
}
@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section-intro-num {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-intro-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-intro-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.section-intro-meta {
  font-size: 0.8rem;
  color: var(--rose);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* Section Complete Screen */
.section-complete {
  text-align: center;
  max-width: 400px;
  animation: sectionFadeIn 0.5s ease;
}
.section-complete-check {
  font-size: 2.5rem;
  color: var(--rose);
  margin-bottom: 1rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.section-complete-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-complete-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Results Time */
.results-time {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}
.question-text {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}
.options-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.option-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-family: "Ubuntu", sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.2s;
  line-height: 1.4;
}
.option-btn:hover {
  border-color: var(--rose);
  transform: translateX(4px);
}
.option-btn.selected {
  border-color: var(--accent);
  background: rgba(215, 9, 19, 0.1);
  box-shadow: 0 2px 12px rgba(215, 9, 19, 0.15);
}
.option-btn:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
}
.reflection-box {
  background: var(--blush);
  border-left: 3px solid var(--rose);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.5s ease;
  font-style: italic;
}
.reflection-box.visible {
  opacity: 1;
}
.textbox-container {
  margin-bottom: 1.5rem;
  width: 100%;
}
.textbox-container label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.textbox-container textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 8px;
  color: var(--text);
  font-family: "Ubuntu", sans-serif;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s;
}
.textbox-container textarea:focus {
  border-color: var(--accent);
}
.char-counter {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin-top: 0.3rem;
}
.auto-advance-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* Switch Screen */
#switchScreen {
  position: relative;
  overflow: hidden;
}
#switchScreen::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blush) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.switch-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
}
.switch-visual {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}
.switch-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: border-color 0.3s;
}
.switch-avatar.done {
  border-color: var(--accent);
  opacity: 0.5;
}
.switch-avatar.next {
  border-color: var(--rose);
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(232, 69, 107, 0.25);
}
.switch-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  animation: arrowSlide 1.2s ease-in-out infinite;
}
@keyframes arrowSlide {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(6px);
    opacity: 1;
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}
#switchScreen .switch-icon {
  display: none;
}
#switchScreen h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
#switchScreen p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 340px;
}

/* Processing Screen */
#processingScreen .processing-content {
  text-align: center;
}
#processingScreen h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.processing-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.processing-hearts {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}
.processing-hearts span {
  animation: heartBounce 1.4s ease-in-out infinite;
}
.processing-hearts span:nth-child(1) {
  animation-delay: 0s;
}
.processing-hearts span:nth-child(2) {
  animation-delay: 0.2s;
  font-size: 2.4rem;
  color: var(--accent);
}
.processing-hearts span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes heartBounce {
  0%,
  100% {
    transform: scale(1) translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2) translateY(-8px);
    opacity: 1;
  }
}
.processing-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.processing-dots span {
  width: 8px;
  height: 8px;
  background: var(--rose);
  border-radius: 50%;
  animation: dotBounce 1.2s ease-in-out infinite;
}
.processing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.processing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes dotBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* Results Screen */
#resultsScreen {
  justify-content: flex-start;
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.results-container {
  width: 100%;
  max-width: 700px;
}
.results-header {
  text-align: center;
  margin-bottom: 3rem;
}
.results-header .title {
  font-size: 2rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.results-header .subtitle {
  font-size: 0.95rem;
  color: var(--muted);
}
.compat-score {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.compat-score::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--blush) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.compat-score .score-value {
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.compat-score .score-heart {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.compat-score .score-label {
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 0.5rem;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.compat-score .score-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.result-section {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.result-section h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.result-section h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}
.result-section p,
.result-section li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}
.result-section ul {
  margin-left: 1.25rem;
  margin-bottom: 0.75rem;
}
.result-section li {
  margin-bottom: 0.3rem;
}

/* Profile Cards */
.profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  position: relative;
}
.profiles-grid::after {
  content: "\2764";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: var(--accent);
  background: var(--surface);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(215, 9, 19, 0.2);
  z-index: 1;
}
.profile-card {
  background: rgba(215, 9, 19, 0.05);
  border: 1px solid rgba(215, 9, 19, 0.15);
  border-radius: 10px;
  padding: 1.25rem;
}
.profile-card .name {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.profile-card .archetype-name {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.profile-card .desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.profile-card h5 {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  margin-top: 0.75rem;
}
.profile-card ul {
  margin-left: 1rem;
}
.profile-card li {
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

/* Dimension Bars */
.dimension-row {
  margin-bottom: 1.25rem;
}
.dimension-row .dim-label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}
.dimension-row .dim-label span {
  color: var(--muted);
  font-size: 0.8rem;
}
.bar-pair {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bar-row .bar-name {
  font-size: 0.75rem;
  color: var(--muted);
  width: 70px;
  text-align: right;
  flex-shrink: 0;
}
.bar-row .bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}
html.light .bar-row .bar-track {
  background: rgba(0, 0, 0, 0.06);
}
.bar-row .bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}
.bar-row.p1 .bar-fill {
  background: var(--accent);
}
.bar-row.p2 .bar-fill {
  background: #ff6b6b;
}
.bar-row .bar-val {
  font-size: 0.75rem;
  color: var(--muted);
  width: 35px;
}

/* Red Flags */
.red-flag {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.red-flag .flag-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}
.red-flag.critical {
  background: rgba(215, 9, 19, 0.12);
  border-left: 3px solid #d70913;
}
.red-flag.warning {
  background: rgba(255, 165, 0, 0.1);
  border-left: 3px solid #ffa500;
}
.red-flag .flag-text {
  line-height: 1.5;
}

/* Action Steps */
.action-step {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.action-step .step-num {
  background: var(--accent);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.action-step .step-content {
  flex: 1;
}
.action-step .step-title {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.action-step .step-desc {
  font-size: 0.82rem;
  color: var(--muted);
}

.convo-starter {
  background: var(--blush);
  border: 1px solid rgba(232, 69, 107, 0.12);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.5;
  position: relative;
}
.convo-quote {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rose);
  font-style: normal;
  font-family: Georgia, serif;
  line-height: 0.6;
  vertical-align: -0.3rem;
  margin-right: 0.2rem;
  display: inline-block;
}

/* Resources */
.resource-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(138, 154, 157, 0.15);
}
.resource-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.resource-item .res-title {
  font-weight: 500;
  font-size: 0.9rem;
}
.resource-item .res-author {
  font-size: 0.82rem;
  color: var(--muted);
}
.resource-item .res-why {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.resource-item .res-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(215, 9, 19, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.3rem;
}

.results-actions {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 600px) {
  #welcomeScreen .title {
    font-size: 2.8rem;
    letter-spacing: 0.3em;
  }
  .welcome-ring {
    width: 44px;
    height: 44px;
  }
  .welcome-heart {
    font-size: 2.2rem;
  }
  .profiles-grid {
    grid-template-columns: 1fr;
  }
  .profiles-grid::after {
    top: calc(50% + 6px);
  }
  .question-text {
    font-size: 1.1rem;
  }
  .compat-score .score-value {
    font-size: 3.5rem;
  }
  .result-section {
    padding: 1.25rem;
  }
  .screen {
    padding: 1.5rem 1rem;
  }
  .switch-avatar {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }
  .section-intro-title {
    font-size: 1.6rem;
  }
  .section-intro-desc {
    font-size: 0.9rem;
  }
  .section-dot {
    width: 8px;
    height: 8px;
  }
  .section-dots {
    gap: 6px;
  }
}

/* PDF CTA */
.pdf-cta {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 12px;
  text-align: center;
}
.pdf-cta-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.pdf-cta-sub {
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.pdf-cta-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.pdf-cta-btn:hover {
  opacity: 0.9;
}

/* ── Partner 2 Landing Screen ── */
.partner2-landing {
  text-align: center;
  max-width: 420px;
  animation: sectionFadeIn 0.5s ease;
}
.partner2-heart {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: heartPulse 1.8s ease-in-out infinite;
}
.partner2-landing h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.partner2-landing p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.partner2-privacy {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--blush);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  display: inline-block;
  margin-bottom: 2rem;
}

/* ── Share Link Box ── */
.share-link-box {
  width: 100%;
  max-width: 440px;
  text-align: center;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.share-link-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem !important;
  text-align: center;
}
.share-link-url {
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text);
  word-break: break-all;
  margin-bottom: 1rem;
  text-align: left;
  line-height: 1.4;
  font-family: monospace;
  opacity: 0.8;
  width: 100%;
}
.share-link-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 1.25rem 0 0.75rem !important;
  opacity: 0.7;
  text-align: center;
}

/* ── Compact Results (screen only) ── */
.score-note {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 420px;
  margin: 1rem auto 0;
  line-height: 1.5;
  opacity: 0.75;
  font-style: italic;
}
.section-intro-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.compact-dim {
  margin-bottom: 1.1rem;
}
.compact-dim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.compact-dim-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.compact-dim-score {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.compact-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}
.compact-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--rose));
  border-radius: 3px;
  transition: width 1s ease;
}
.compact-bar-growth {
  background: linear-gradient(90deg, var(--rose), rgba(232, 69, 107, 0.4));
}
.top-action-step {
  margin-top: 1.5rem;
  background: var(--blush);
  border: 1px solid rgba(232, 69, 107, 0.15);
  border-radius: 10px;
  padding: 1.25rem;
}
.top-action-label {
  font-size: 0.75rem;
  color: var(--rose);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.top-action-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.top-action-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Screen / Print visibility ── */
.screen-only {
  display: block;
}
.print-only {
  display: none;
}

@media print {
  .screen-only {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  :root {
    --bg: #ffffff !important;
    --text: #1a1a1a !important;
    --surface: #f8f8f8 !important;
    --muted: #555555 !important;
  }
  html.light {
    --bg: #ffffff !important;
    --text: #1a1a1a !important;
    --surface: #f8f8f8 !important;
    --muted: #555555 !important;
  }
  body {
    background: #fff !important;
    color: #1a1a1a !important;
  }
  #themeToggle,
  .results-actions,
  .btn {
    display: none !important;
  }
  .screen {
    min-height: auto;
    padding: 0;
  }
  .result-section {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #ddd;
  }
  .hidden {
    display: none !important;
  }
  #resultsScreen {
    display: block !important;
  }
  .bar-row .bar-track {
    background: #e0e0e0 !important;
  }
  .bar-row.p1 .bar-fill {
    background: #d70913 !important;
  }
  .bar-row.p2 .bar-fill {
    background: #ff6b6b !important;
  }
  .red-flag.critical {
    border-left-color: #d70913 !important;
    background: #fff0f0 !important;
  }
  .red-flag.warning {
    border-left-color: #ffa500 !important;
    background: #fff8ef !important;
  }
  .pdf-cta {
    display: block !important;
    border: 2px solid #d70913 !important;
    background: #fff8f8 !important;
  }
  .pdf-cta-heading {
    color: #d70913 !important;
  }
  .pdf-cta-sub {
    color: #555 !important;
  }
  .pdf-cta-btn {
    background: #d70913 !important;
    color: #fff !important;
    display: inline-block !important;
  }
}
