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

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #111111;
  background: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── LAYOUT WRAPPER ── */
.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
}
.screen.active { display: flex; flex-direction: column; }

.inner {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════════════════════════
   SCREEN 1 — WELCOME
══════════════════════════════ */
#screen-welcome {
  background: #111111;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
}

#screen-welcome .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.welcome-company {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.welcome-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.welcome-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.welcome-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 480px;
}

.btn-primary {
  display: inline-block;
  background: #2d8a2d;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  min-height: 56px;
  transition: background 0.2s ease;
  text-decoration: none;
}
.btn-primary:hover { background: #1a5c1a; }

/* ══════════════════════════════
   SCREEN 2 — QUESTIONS
══════════════════════════════ */
#screen-questions {
  background: #ffffff;
  padding-bottom: 40px;
}

.progress-bar-wrap {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  background: #2d8a2d;
  width: 10%;
  transition: width 0.3s ease;
}

.question-header {
  padding: 16px 20px 8px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #718096;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 0;
  min-height: 36px;
  visibility: hidden;
}
.back-btn.visible { visibility: visible; }
.back-btn svg { width: 16px; height: 16px; }

.progress-text {
  font-size: 0.85rem;
  color: #718096;
  margin-top: 6px;
}

.question-viewport {
  overflow: hidden;
  position: relative;
  flex: 1;
}

.question-slide {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 20px 0;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.question-slide.current {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  left: auto;
  transform: none;
}

.question-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111111;
  line-height: 1.45;
  margin-bottom: 20px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card {
  width: 100%;
  min-height: 56px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #111111;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.option-card:hover {
  background: #e8f5e8;
  border-color: #2d8a2d;
}
.option-card.selected {
  background: #2d8a2d;
  border-color: #2d8a2d;
  color: #ffffff;
}

/* ══════════════════════════════
   SCREEN 3 — RESULTS
══════════════════════════════ */
#screen-results {
  background: #ffffff;
  padding-bottom: 48px;
}

.results-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 20px 0;
}

.results-company {
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
  text-align: center;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.results-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111111;
  text-align: center;
  margin-bottom: 20px;
}

.results-category {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  margin-bottom: 8px;
}

.results-score-label {
  font-size: 0.9rem;
  color: #718096;
  text-align: center;
  margin-bottom: 16px;
}

.score-bar-wrap {
  position: relative;
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  margin-bottom: 28px;
}
.score-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}
.score-bar-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.results-description {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 32px;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
}

/* Per-question breakdown */
.breakdown-section { margin-bottom: 36px; }
.breakdown-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 6px;
}
.breakdown-subtext {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 16px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.breakdown-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #444444;
  width: 110px;
  flex-shrink: 0;
  line-height: 1.3;
}
.breakdown-bar-track {
  flex: 1;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.breakdown-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* CTA Section */
.cta-section { margin-bottom: 36px; }
.cta-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 6px;
}
.cta-subtext {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 20px;
}

.cta-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.cta-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.cta-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cta-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.cta-card-text { flex: 1; }
.cta-card-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 4px;
}
.cta-card-subtext {
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.5;
}
.cta-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Expandable form */
.form-expand {
  display: none;
  margin-top: 16px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}
.form-expand.open { display: block; }

.form-expand input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #111111;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-expand input:focus { border-color: #2d8a2d; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: #2d8a2d;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  min-height: 50px;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.btn-submit:disabled {
  background: #aaaaaa;
  cursor: not-allowed;
  opacity: 0.7;
}
.btn-submit:not(:disabled):hover { background: #1a5c1a; }

.form-collapse-btn {
  display: block;
  margin-top: 10px;
  background: none;
  border: none;
  color: #718096;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
}

.form-success {
  display: none;
  color: #2d8a2d;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 0 4px;
  line-height: 1.5;
}
.form-error {
  display: none;
  color: #cc3333;
  font-size: 0.9rem;
  padding: 10px 0 4px;
  line-height: 1.5;
}

/* Start over */
.start-over-wrap {
  text-align: center;
  margin-bottom: 32px;
}
.start-over-link {
  color: #2d8a2d;
  font-size: 0.95rem;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* Powered by footer */
.powered-by-footer {
  text-align: center;
  padding: 24px 20px 16px;
  opacity: 0.6;
}
.powered-by-footer a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #718096;
}
.powered-by-footer svg {
  width: 24px;
  height: 24px;
}
.powered-by-text {
  font-size: 0.75rem;
  color: #718096;
}

/* Divider */
.section-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 32px 0;
}