/* Mindscape Wellness Burnout Check-In
   Simple static app styles
*/

:root {
  --ocean-sage: #88A2A0;
  --soft-sand: #F4F1EC;
  --deep-teal: #265D63;
  --pearl: #FFFFFF;
  --charcoal: #444444;
  --muted: #6f7675;
  --border: #d9d3cc;
  --shadow: 0 18px 44px rgba(38, 93, 99, 0.09);
  --radius: 22px;
  --radius-small: 14px;
  --focus: 0 0 0 3px rgba(38, 93, 99, 0.22);
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(136, 162, 160, 0.18), transparent 28%),
    linear-gradient(180deg, #f9f7f4 0%, var(--soft-sand) 100%);
  color: var(--charcoal);
  line-height: 1.6;
}

.app-shell {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.screen {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.screen.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeUp 280ms ease;
}

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

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 211, 204, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.card-large {
  padding: 2rem;
}

.brand-kicker {
  color: var(--deep-teal);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

h1 {
  margin: 0 0 0.65rem;
  line-height: 1.15;
  font-size: clamp(2rem, 4vw, 2.9rem);
}

h2 {
  margin-top: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.subtitle,
.result-lead {
  font-size: 1.08rem;
  color: #4f5554;
  max-width: 60ch;
}

.intro-block {
  margin: 1.4rem 0;
}

.notice,
.result-pillar-box,
.next-step-box,
.safety-box {
  background: #fbfaf8;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

.safety-box {
  border-color: rgba(135, 53, 53, 0.2);
  background: #fff8f8;
}

.soft-list {
  margin: 0.4rem 0 1rem 1.25rem;
  padding: 0;
}

.soft-list li {
  margin: 0.2rem 0;
}

.progress-row {
  margin-bottom: 1.4rem;
}

.progress-label {
  font-weight: 600;
  color: var(--deep-teal);
  margin-bottom: 0.55rem;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #e7e1da;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 8.33%;
  background: linear-gradient(90deg, var(--ocean-sage), var(--deep-teal));
  border-radius: 999px;
  transition: width 220ms ease;
}

.question-wrap {
  min-height: 320px;
}

.pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(136, 162, 160, 0.14);
  color: var(--deep-teal);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.question-text {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.answers-container {
  display: grid;
  gap: 0.8rem;
}

.answer-btn {
  text-align: left;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--pearl);
  border-radius: var(--radius-small);
  padding: 1rem;
  font-size: 1rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.answer-btn:hover {
  transform: translateY(-1px);
  border-color: var(--ocean-sage);
  box-shadow: 0 10px 22px rgba(68, 68, 68, 0.06);
}

.answer-btn.selected {
  border-color: var(--deep-teal);
  background: rgba(136, 162, 160, 0.12);
  box-shadow: 0 0 0 2px rgba(38, 93, 99, 0.08);
}

.nav-row,
.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.nav-row {
  justify-content: space-between;
  margin-top: 1.2rem;
}

.btn,
.text-link {
  font: inherit;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn:focus-visible,
.answer-btn:focus-visible,
.text-link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn-primary {
  background: var(--deep-teal);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--deep-teal);
  border-color: rgba(38, 93, 99, 0.28);
}

.btn-ghost {
  background: rgba(38, 93, 99, 0.08);
  color: var(--deep-teal);
}

.btn-large {
  min-width: 200px;
  padding-inline: 1.5rem;
}

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

.pillar-result {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--deep-teal);
  margin: 0;
}

.pillar-line,
.final-line {
  color: var(--muted);
}

.restart-row {
  margin-top: 1rem;
}

.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--deep-teal);
  text-decoration: underline;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 1rem, 760px);
    padding: 1rem 0 2rem;
  }

  .card,
  .card-large {
    padding: 1rem;
    border-radius: 18px;
  }

  .question-wrap {
    min-height: 0;
  }

  .nav-row {
    flex-direction: column;
  }

  .nav-row .btn,
  .cta-row .btn {
    width: 100%;
  }
}
