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

:root {
  --bg: #F9DFF2;
  --surface: #FFFFFF;
  --text: #1C1916;
  --text-secondary: #4A3858;
  --accent: #C4956A;
  --accent-light: #F0E6DA;
  --border: #E5DDD6;
  --radius: 12px;
}

html {
  min-height: 100%;
}

body {
  background:
    radial-gradient(ellipse 80% 55% at 12% 5%,  rgba(233, 14, 139, 0.09) 0%, transparent 100%),
    radial-gradient(ellipse 70% 65% at 88% 95%, rgba(102, 45, 145, 0.10) 0%, transparent 100%),
    radial-gradient(ellipse 55% 40% at 85% 8%,  rgba(255, 160, 120, 0.05) 0%, transparent 100%),
    #FDF4FB;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100%;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 64px;
  min-height: 100vh;
  background: transparent;
}

.screen {
  width: 100%;
  max-width: 560px;
  animation: fadeUp 0.28s ease both;
}

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

/* ---- SITE HEADER / FOOTER ---- */

.site-header {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 24px 0;
}

.site-logo-link {
  display: inline-block;
}

.site-logo {
  height: 44px;
  width: auto;
  display: block;
}

.site-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 32px 24px 24px;
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* ---- INTRO ---- */

.intro-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 48px;
  gap: 0;
}


.heading-xl {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 9vw, 54px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
}

.heading-xl em {
  font-style: italic;
  font-weight: 300;
  color: #C4956A;
}

.intro-text {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 380px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.intro-essences {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 40px;
}

.intro-essences span:not(.dot) {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--text-secondary);
}

.intro-essences .dot {
  color: var(--border);
  font-size: 14px;
}

/* ---- BUTTONS ---- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 40px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.btn-primary:active {
  opacity: 1;
  transform: translateY(0);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 32px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.fine-print {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ---- PROGRESS ---- */

.progress-bar {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.progress-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  margin-bottom: 32px;
}

/* ---- QUESTION ---- */

.question-screen {
  padding-top: 28px;
}

.question-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(21px, 4.5vw, 27px);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 28px;
}

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

.answer-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.answer-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateX(3px);
}

.answer-btn:active {
  transform: translateX(3px) scale(0.985);
}

.answer-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.answer-text {
  line-height: 1.45;
}

/* ---- TIEBREAK ---- */

.tiebreak-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.answers--two {
  gap: 14px;
}

.answer-btn--tiebreak {
  padding: 20px 22px;
  font-size: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
}

/* ---- RESULT (TEASER) ---- */

.result-screen {
  padding-top: 8px;
}

.result-header {
  background: var(--text);
  color: #FAF7F4;
  border-radius: 20px;
  padding: 40px 32px 36px;
  margin-bottom: 24px;
  text-align: center;
}

.result-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 10px;
}

.result-essence {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 10vw, 60px);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 24px;
}

.result-match {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.match-pct {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}

.match-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

.result-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-align: center;
  margin-bottom: 10px;
}

.result-teaser {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 4px;
  margin-bottom: 20px;
}

.secondary-badge {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 14px;
  color: var(--text);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ---- PAYWALL ---- */

.paywall-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
}

.paywall-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.2;
}

.paywall-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
}

.paywall-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}

.paywall-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.paywall-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1;
}

.paywall-price .currency {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.6;
  vertical-align: super;
  font-family: 'Inter', sans-serif;
}

.btn-unlock {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  margin-bottom: 12px;
}

.paywall-fine {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ---- FULL PROFILE ---- */

.full-profile-screen {
  padding-top: 8px;
}

.profile-section {
  margin-bottom: 28px;
}

.hybrid-section {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.profile-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.profile-description + .profile-description {
  margin-top: 14px;
}

/* ---- SCORE BARS ---- */

.score-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.score-row {
  display: grid;
  grid-template-columns: 88px 1fr 42px;
  align-items: center;
  gap: 12px;
}

.score-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--text-secondary);
}

.score-row--primary .score-name {
  color: var(--text);
  font-weight: 600;
}

.score-bar-track {
  height: 5px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 6px;
  transition: width 0.6s ease 0.1s;
}

.score-row--primary .score-bar-fill {
  background: var(--text);
}

.score-pct {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
}

.retake-row {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 480px) {
  #app {
    padding: 20px 12px 52px;
  }

  .result-header {
    padding: 28px 20px 26px;
  }

  .paywall-card {
    padding: 22px 18px;
  }

  .score-row {
    grid-template-columns: 76px 1fr 38px;
    gap: 10px;
  }
}
