/* ── Logo ─ */
.logo-bar { position: fixed; top: var(--space-md); left: var(--space-lg); z-index: 100; }
.logo { height: clamp(56px, 8vw, 96px); width: auto; }

/* ── Lang bar ─ */
.lang-bar { position: fixed; top: var(--space-md); right: var(--space-lg); display: flex; gap: var(--space-xs); z-index: 100; }

/* ── Intro ─ */
#screen-intro { text-align: center; }
.intro-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: var(--space-lg);
}
.intro-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--black);
  max-width: 720px;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}
.intro-title--yellow { color: var(--yellow); }
.intro-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-dark);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}
.intro-meta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  font-size: 15px;
  color: var(--gray-medium);
}
.intro-meta span::before { content: '.'; margin-right: var(--space-sm); color: var(--yellow); font-weight: 900; }

/* ── Explainer ── */
.explainer-dimensions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  width: 95%;
  margin-bottom: var(--space-lg);
}
.explainer-dimension {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-md);
  background: var(--gray-light);
  border-radius: var(--radius-sm);
}
.explainer-dimension__name { font-size: 0.9rem; font-weight: 700; color: var(--yellow); text-transform: uppercase; }
.explainer-dimension__desc { font-size: 1rem; font-weight: 500; color: var(--gray-dark); line-height: 1.4; }

/* ── Questions ─ */
#screen-questions { justify-content: center; padding-top: var(--space-2xl); }
.quiz-progress {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.quiz-progress__bar { flex: 1; height: 10px; background-color: var(--gray-light); border-radius: var(--radius-full); overflow: hidden; }
.quiz-progress__fill { height: 100%; width: 0%; background-color: var(--yellow); border-radius: var(--radius-full); transition: width 0.4s ease; }
.quiz-progress__pill { background-color: var(--yellow); color: var(--black); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); white-space: nowrap; }

.quiz-card {
  width: 100%;
  max-width: 640px;
  height: 280px;
  background-color: var(--card);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.quiz-card__header { display: flex; align-items: center; gap: 8px; }
.quiz-card__answers { display: flex; gap: var(--space-sm); margin-top: auto; }
.quiz-card__dimension { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); }
.quiz-card__pts { display: inline-block; font-size: 0.7rem; font-weight: 600; background: var(--yellow); color: var(--gray-dark); padding: 2px 8px; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.05em; }
.quiz-card__text { font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--black); }

.quiz-feedback {
  width: 100%;
  max-width: 640px;
  min-height: 80px;
  font-size: 15px;
  line-height: 1.6;
  color: #4a4a4a;
  background-color: rgba(255, 248, 235, 0.7);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quiz-feedback.visible {
  opacity: 1;
  visibility: visible;
}

/* ── Results ─ */
#screen-results { gap: var(--space-xl); justify-content: center; padding-top: var(--space-2xl); }

.results-score {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  width: 100%;
  max-width: 640px;
  background-color: var(--card);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}
.results-score__circle { width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--yellow); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.results-score__number { font-size: 32px; font-weight: 800; color: var(--yellow); line-height: 1; }
.results-score__max { font-size: 13px; color: var(--gray-medium); font-weight: 600; }
.results-level { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); margin-bottom: var(--space-sm); }
.results-desc { font-size: 15.5px; line-height: 1.6; color: var(--gray-dark); margin: 0; }

.results-pillars { width: 100%; max-width: 640px; background-color: var(--card); border-radius: var(--radius-md); padding: var(--space-xl); }
.results-pillars__title { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-medium); margin-bottom: var(--space-lg); }
.results-pillars__grid { display: flex; flex-direction: column; gap: var(--space-md); }
.results-pillar__head { display: flex; justify-content: space-between; margin-bottom: var(--space-xs); }
.results-pillar__name { font-size: 14.5px; font-weight: 700; color: var(--black); }
.results-pillar__score { font-size: 14.5px; font-weight: 700; color: var(--gray-medium); }
.results-pillar__bar { height: 8px; background-color: var(--gray-light); border-radius: var(--radius-full); overflow: hidden; }
.results-pillar__fill { height: 100%; width: 0%; background-color: var(--yellow); border-radius: var(--radius-full); transition: width 0.6s ease; }

.results-cta { width: 100%; text-align: center; }
.results-cta__text { font-size: 15px; color: var(--black); margin-bottom: var(--space-md); line-height: 1.6; }
.results-cta__text-contact { margin-bottom: 1rem;}

/* ── Contact ─ */
#screen-contact { gap: var(--space-xl); justify-content: center; padding-top: var(--space-2xl); }
.contact-wrapper { width: 100%; max-width: 640px; background-color: var(--card); border-radius: var(--radius-md); padding: var(--space-xl); display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-lg); }
.contact-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--black); letter-spacing: -0.02em; line-height: 1.2; }
.contact-desc { font-size: 15.5px; line-height: 1.7; color: var(--gray-dark); max-width: 460px; }
.contact-form { width: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.contact-input {
  width: 100%;
  max-width: 500px;
  padding: var(--space-md) var(--space-lg);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-full);
  font-size: 16px;
  font-family: var(--font-base);
  color: var(--black);
  background-color: var(--bg);
  transition: border-color var(--transition);
  outline: none;
  text-align: center;
}
.contact-input:focus { border-color: var(--yellow); }
.contact-input::placeholder { color: var(--gray-medium); }
.contact-privacy { font-size: 13px; color: var(--gray-medium); margin-top: var(--space-xs); }

.contact-feedback { font-size: 14px; font-weight: 600; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); width: 100%; text-align: center; }
.contact-feedback--success { background-color: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.contact-feedback--error { background-color: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ── Timer bar ── */
#feedback-timer-track { width: 100%; max-width: 640px; height: 4px; background: rgba(0, 0, 0, 0.1); border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity 0.2s ease; }
#feedback-timer-track.visible { opacity: 1; }
#feedback-timer-bar { height: 100%; width: 0%; background: var(--yellow); border-radius: 2px; transition: width linear; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .logo-bar { top: 12px; left: 12px; }
  .logo { height: 56px; }
  #screen-diagnostic, #screen-results, #screen-intro, #screen-explainer { max-height: none; }
}

@media (max-width: 480px) {
  .logo { height: 44px; }
}