@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --black: #111111;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f2f2f2;
  --gray-200: #e4e4e4;
  --gray-400: #9a9a9a;
  --gray-600: #5c5c5c;
}

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

html, body {
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', system-ui, sans-serif;
  height: 100%;
  overflow-x: hidden;
}

#app {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 40px;
}

.screen.active {
  display: flex;
}

h1, h2, .wordmark, .result-name {
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* ---------- LANDING ---------- */

.landing-inner {
  text-align: center;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.wordmark {
  font-size: clamp(1.6rem, 6vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wordmark .accent {
  color: var(--gray-600);
}

.hook {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.5;
  max-width: 280px;
}

.btn-primary, .btn-secondary, .btn-ghost {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--black);
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  padding: 14px 44px;
  font-size: 0.9rem;
}

.btn-primary:active { opacity: 0.7; }

.fine-print {
  color: var(--gray-400);
  font-size: 0.7rem;
  letter-spacing: 0.3px;
}

/* ---------- QUIZ ---------- */

#screen-quiz {
  justify-content: flex-start;
  padding-top: 20px;
}

.progress-track {
  width: 100%;
  max-width: 420px;
  height: 3px;
  background: var(--gray-200);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 44px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--black);
  transition: width 0.35s ease;
}

.card-stack {
  width: 100%;
  max-width: 420px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.quiz-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.quiz-card.leaving {
  opacity: 0;
  transform: translateX(-32px);
}

.question-number {
  color: var(--gray-400);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 1.2px;
}

.question-text {
  font-size: clamp(1.2rem, 4.5vw, 1.5rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  max-width: 340px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.option-btn {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--black);
  padding: 15px 18px;
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-btn:hover {
  border-color: var(--black);
}

.option-btn:active {
  background: var(--gray-100);
}

/* ---------- RESULT ---------- */

.result-inner {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.result-label {
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.68rem;
  font-weight: 700;
}

.result-card {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 0;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
}

.result-card-icon {
  width: 64px;
  height: 64px;
}

.result-name {
  font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  color: var(--black);
  text-transform: uppercase;
}

.result-tagline {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.88rem;
}

.result-desc {
  color: var(--gray-600);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 360px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 300px;
}

.btn-secondary {
  background: var(--black);
  color: var(--white);
  padding: 13px 22px;
}

.btn-secondary:active { opacity: 0.7; }

.btn-ghost {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--gray-200);
  padding: 12px 22px;
}

.btn-ghost:active { background: var(--gray-100); }

/* ---------- SHARE ROW ---------- */

.share-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 300px;
}

.share-btn-icon {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--black);
  padding: 11px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.share-btn-icon:hover {
  border-color: var(--black);
}

.share-btn-icon:active {
  background: var(--gray-100);
}

.share-link-row {
  display: flex;
  width: 100%;
  max-width: 300px;
  border: 1px solid var(--gray-200);
}

.share-link-input {
  flex: 1;
  border: none;
  padding: 10px 10px;
  font-size: 0.75rem;
  color: var(--gray-600);
  background: var(--gray-50);
  font-family: 'Inter', sans-serif;
  min-width: 0;
}

.share-link-copy {
  border: none;
  border-left: 1px solid var(--gray-200);
  background: var(--white);
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.share-link-copy:active {
  background: var(--gray-100);
}

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

.paywall-block {
  width: 100%;
  margin-top: 8px;
  padding: 18px;
  border-radius: 0;
  border: 1px dashed var(--gray-200);
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.paywall-lock {
  font-size: 1.2rem;
  opacity: 0.5;
}

.paywall-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--black);
}

.paywall-sub {
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.4;
  max-width: 300px;
}

.paywall-cta {
  margin-top: 4px;
  display: inline-block;
  color: var(--black);
  font-weight: 700;
  font-size: 0.75rem;
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}

/* ---------- UNLOCKED REPORT ---------- */

.unlocked-title {
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  color: var(--black);
  text-transform: uppercase;
}

.matches-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-item {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0;
  padding: 14px 16px;
  text-align: left;
}

.match-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--black);
}

.match-price {
  color: var(--black);
  font-weight: 500;
  font-size: 0.82rem;
  margin-top: 3px;
}

.match-where {
  color: var(--gray-400);
  font-size: 0.75rem;
  margin-top: 3px;
}

/* ---------- SHARE PREVIEW PAGE ---------- */

.share-page-card {
  width: 100%;
  border: 1px solid var(--black);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
