/* Assessment UI — matches the Epimetheus landing page design language */

/* Assessment Start Screen */
.assessment-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}
.assessment-hero {
  padding: 6rem 0 4rem;
  text-align: center;
}
.assessment-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.assessment-headline {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.assessment-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}
.start-form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto 1rem;
}
.email-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem 1.25rem;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.email-input::placeholder { color: var(--fg-muted); }
.email-input:focus { border-color: var(--accent); }
.begin-btn {
  background: var(--accent);
  color: #131009;
  border: none;
  border-radius: 8px;
  padding: 0.875rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.begin-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.email-note {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
}
.nav-cta {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-dim); }

/* Progress Bar */
.progress-bar {
  height: 3px;
  background: var(--surface);
  border-radius: 2px;
  margin-bottom: 3rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Question Card */
.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 1.5rem;
}
.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.q-category {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.q-counter {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.q-text {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.25;
  margin-bottom: 2rem;
}
.q-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.option-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: left;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  line-height: 1.4;
}
.option-btn:hover {
  border-color: var(--accent);
  color: var(--fg);
}
.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--fg);
}
.question-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.nav-btn:hover:not(:disabled) {
  color: var(--fg);
  border-color: var(--fg-muted);
}
.nav-btn:disabled { opacity: 0.35; cursor: default; }
.nav-btn-primary {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.nav-btn-primary:hover:not(:disabled) {
  background: var(--accent);
  color: #131009;
}

/* Error */
.error-msg {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(220, 80, 60, 0.12);
  border: 1px solid rgba(220, 80, 60, 0.3);
  border-radius: 6px;
  color: #e87a6c;
  font-size: 0.85rem;
}

/* Processing Screen */
.processing-inner {
  padding: 8rem 0;
  text-align: center;
  position: relative;
}
.pulse-ring-lg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 83, 0.2);
  animation: pulse-lg 4s ease-out infinite;
  width: 120px;
  height: 120px;
}
.pulse-ring-lg.pulse-ring-2 { animation-delay: 1.3s; }
.pulse-ring-lg.pulse-ring-3 { animation-delay: 2.6s; }
@keyframes pulse-lg {
  0% { width: 80px; height: 80px; opacity: 0.5; }
  100% { width: 220px; height: 220px; opacity: 0; }
}
.core-orb-lg {
  position: relative;
  z-index: 2;
  margin: 0 auto 2rem;
  display: inline-block;
}
.processing-title {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.processing-sub {
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Deep Dive Page ──────────────────────────────────────────────── */
.deepdive-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

/* Header */
.dd-header {
  padding: 4rem 0 3rem;
  text-align: center;
}
.dd-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.dd-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.dd-summary {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 580px;
  margin: 0 auto 1.5rem;
}
.dd-date {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}

/* Sections */
.dd-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.dd-section-alt {
  background: var(--surface);
  border-radius: 12px;
  padding: 3rem;
  margin: 0 -2rem;
  border: 1px solid var(--border);
  border-top: none;
}
.dd-section-accent {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 2rem;
}
.dd-section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.dd-section-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dd-section-title {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.dd-section-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Cards */
.dd-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.dd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.dd-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.5rem;
}
.dd-card-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--fg);
}
.dd-card-accent {
  background: rgba(212, 168, 83, 0.06);
  border-color: rgba(212, 168, 83, 0.25);
}
.dd-card-dot-accent {
  background: #e8c070;
}

/* Prompts */
.dd-prompts {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dd-prompt-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.dd-prompt-item:last-child { border-bottom: none; }
.dd-prompt-num {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
  line-height: 1.2;
  min-width: 2rem;
}
.dd-prompt-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg-muted);
}

/* Footer */
.dd-footer {
  padding-top: 2rem;
  text-align: center;
}
.dd-footer-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 2rem;
}
.dd-footer-text {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.dd-home-link {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.dd-home-link:hover { color: var(--accent); }

/* Mobile */
@media (max-width: 640px) {
  .start-form { flex-direction: column; }
  .assessment-hero { padding: 4rem 0 3rem; }
  .question-card { padding: 2rem 1.5rem; }
  .dd-section-alt, .dd-section-accent { margin: 0 -1rem; padding: 2rem 1.5rem; }
  .dd-card-grid { grid-template-columns: 1fr; }
}