/* Pleasant Personality Academy — Free Assessment */

:root {
  --navy: #0f1729;
  --navy-light: #1a2744;
  --gold: #c9a962;
  --gold-dark: #b8944f;
  --beige: #f5f0e8;
  --blush: #f8e8e4;
  --white: #ffffff;
  --luxury: #1a1a1a;
  --muted: rgba(26, 26, 26, 0.65);
  --radius: 1.25rem;
  --shadow: 0 8px 40px rgba(15, 23, 41, 0.08);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--luxury);
  background: var(--beige);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.app-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 169, 98, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(15, 23, 41, 0.06), transparent),
    var(--beige);
  z-index: -1;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h1 em, h2 em { font-style: italic; color: var(--gold); }

h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; margin-bottom: 1rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.logo-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* Main */
.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.screen {
  display: none;
  animation: fadeOut 0.3s ease;
}

.screen-active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.reveal {
  animation: fadeIn 0.6s ease backwards;
}

/* Card */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 169, 98, 0.15);
}

.card-hero { text-align: center; padding: 2.5rem 2rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 1rem 0 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.intro-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.intro-features li::before {
  content: '✓ ';
  color: var(--gold);
  font-weight: 700;
}

.intro-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.intro-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(201, 169, 98, 0.35);
}

.btn-primary:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 169, 98, 0.45);
}

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

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(15, 23, 41, 0.15);
}

.btn-ghost:not(:disabled):hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* Quiz */
.quiz-top { margin-bottom: 1.5rem; }

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.category-pill {
  background: rgba(201, 169, 98, 0.15);
  color: var(--gold-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.progress-wrap {
  height: 6px;
  background: rgba(15, 23, 41, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 9999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-question {
  min-height: 280px;
  transition: opacity var(--transition), transform var(--transition);
}

.card-question.slide-out {
  opacity: 0;
  transform: translateX(-20px);
}

.card-question.slide-in {
  animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.question-text {
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.scale-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(15, 23, 41, 0.08);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
}

.scale-option:hover {
  border-color: rgba(201, 169, 98, 0.4);
  background: rgba(201, 169, 98, 0.04);
}

.scale-option.selected {
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.12);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

.scale-option input {
  accent-color: var(--gold);
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.scale-option label {
  flex: 1;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
}

.scale-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(15, 23, 41, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
}

.scale-option.selected .scale-num {
  background: var(--gold);
  color: var(--navy);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 1rem;
}

/* Results */
#screen-results { max-width: 900px; margin: 0 auto; }

.results-hero {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.overall-score-ring {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 2rem auto 0;
}

.overall-score-ring canvas {
  width: 100% !important;
  height: 100% !important;
}

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.score-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.score-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .results-grid { grid-template-columns: 1fr 1fr; }
}

.chart-wrap {
  position: relative;
  height: 280px;
}

.results-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .results-columns { grid-template-columns: 1fr 1fr; }
}

.card-strength { border-top: 3px solid var(--gold); }
.card-growth { border-top: 3px solid var(--navy-light); }

.insight-list {
  list-style: none;
}

.insight-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(15, 23, 41, 0.06);
  font-size: 0.95rem;
}

.insight-list li:last-child { border-bottom: none; }

.insight-list strong {
  color: var(--navy);
  display: block;
  margin-bottom: 0.15rem;
}

.insight-list span {
  color: var(--muted);
  font-size: 0.85rem;
}

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

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.bar-label { font-weight: 600; color: var(--navy); }

.bar-track {
  height: 10px;
  background: rgba(15, 23, 41, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 9999px;
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-value {
  font-weight: 700;
  color: var(--gold-dark);
  text-align: right;
}

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

.analysis-item {
  padding: 1rem;
  background: var(--beige);
  border-radius: 0.75rem;
  border-left: 3px solid var(--gold);
}

.analysis-item h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.analysis-item p {
  font-size: 0.85rem;
  color: var(--muted);
}

.analysis-item.level-high { border-left-color: #22c55e; }
.analysis-item.level-mid { border-left-color: var(--gold); }
.analysis-item.level-low { border-left-color: #ef4444; }

/* CTA */
.cta-section {
  position: relative;
  margin: 2rem 0 1.5rem;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.2), transparent 70%);
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-eyebrow { color: var(--gold); }

.cta-section h2 {
  color: var(--white);
  margin: 0.5rem 0 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cta-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.cta-link {
  color: var(--gold);
  text-decoration: none;
}

.cta-link:hover { text-decoration: underline; }

.cta-divider { color: rgba(255,255,255,0.3); }

.cta-footnote {
  margin-top: 1.25rem !important;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
