* {
  box-sizing: border-box;
}

:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #0b0b0b;
  --muted: #667085;
  --border: #d0d5dd;

  /* Verdes */
  --green-light: #49C38A;
  /* contorno/seleção */
  --green-dark: #0F8A5F;
  /* preenchimento da barra */
  --button-green: #38B67D;
  /* botão */

  --header-h: 90px;
  --progress-h: 44px;
  /* área da barra (no vão cinza) */
}


/* =========================
   PROGRESSO
========================= */
.progress-wrapper {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 8px 16px 6px;
  background: var(--bg);
  z-index: 15;
}

.progress-wrapper.is-hidden {
  display: none;
}

.progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(73, 195, 138, 0.45);
  background: #e6ebf2;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--green-dark);
  border-radius: 999px;
  transition: width 220ms ease;
}

.progress-label {
  margin-top: 6px;
  font-size: 12px;
  color: #8a94a6;
  text-align: right;
  line-height: 1;
}

/* =========================
   APP / TELAS
========================= */
.app {
  padding-top: calc(var(--header-h) + var(--progress-h));
}

.screen {
  display: none;
  min-height: calc(100vh - var(--header-h) - var(--progress-h));
  padding: 20px 16px 28px;
}

.screen.is-active {
  display: block;
}

.screen-content {
  background: var(--card);
  border-radius: 24px;
  padding: 24px 20px;
  min-height: calc(100vh - var(--header-h) - var(--progress-h) - 48px);
}

/* =========================
   INTRO / END
========================= */
.intro {
  background: linear-gradient(160deg, #ffffff 0%, #f7fbff 45%, #eef7ff 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
}

.intro-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 820px) {
  .intro-hero {
    flex-direction: row;
    align-items: stretch;
  }
}

.intro-copy {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.intro-eyebrow {
  color: #0f8a5f;
  font-weight: 700;
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intro-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #0f172a;
}

.intro-title span {
  color: #0f8a5f;
}

.intro-description {
  margin: 0;
  color: #475467;
  font-size: 16px;
  line-height: 1.45;
}

.intro-highlights {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.intro-highlights li {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 20px rgba(15, 138, 95, 0.05);
}

.highlight-value {
  font-weight: 700;
  color: #0f172a;
}

.highlight-label {
  font-size: 13px;
  color: #667085;
}

.intro-card {
  flex: 1;
  background: #0f8a5f;
  color: #fff;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 15px 45px rgba(15, 138, 95, 0.25);
}

.card-eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.card-list {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
}

.intro-card .primary-button {
  background: #fff;
  color: #0f8a5f;
}

.end-text {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* =========================
   BOTÕES
========================= */
.primary-button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 800;
  background: var(--button-green);
  color: #fff;
  cursor: pointer;
}

.primary-button:active {
  transform: scale(0.99);
}

.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* =========================
   PERGUNTAS
========================= */
.question {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.question-title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.question-title span {
  font-weight: 700;
  color: #6b6b6b;
}

/* =========================
   OPÇÕES
========================= */
.options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 !important;
  background-color: unset !important;
}

.option-card {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;

  padding: 20px 20px 22px;
  min-height: 130px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  cursor: pointer;
  transition: border-color 150ms ease, transform 80ms ease;
}

.option-card:active {
  transform: scale(0.99);
}

.option-header {
  display: block;
}

.option-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.option-subtitle {
  font-size: 14px;
  color: var(--muted);
}

/* Selecionado */
.option-card.is-selected {
  border-color: var(--green-light);
}

/* =========================
   LOGOS / TAGS DE MARCA
========================= */
.logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.logo-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.logo-img {
  width: 100%;
  height: 64px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: contain;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(208, 213, 221, 0.9);
  background: #f7f9fc;
  color: #2b2b2b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* =========================
   AÇÕES INFERIORES
========================= */
.bottom-actions {
  margin-top: auto;
  padding-top: 20px;
}

.prev-btn {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.prev-btn:hover {
  color: var(--text);
}

.error-text {
  margin: 0 0 10px;
  font-size: 14px;
  color: #d92d20;
  min-height: 18px;
}

.final-screen {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.result-label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: #101828;
}

.result-value {
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
}

.result-comparison {
  margin: 0;
  font-size: 16px;
  color: #475467;
}

.result-insight {
  margin: 4px 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #0f8a5f;
}

.result-cta {
  margin-top: 12px;
  padding: 18px 16px 10px;
  border-top: 1px solid #e4e7ec;
  color: #101828;
  font-size: 16px;
  line-height: 1.4;
}

.result-cta p {
  margin: 0 0 6px;
}

.result-extra {
  font-size: 14px;
  color: #475467;
}

.result-actions {
  width: 100%;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.main-cta {
  width: 100%;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.restart-button {
  width: fit-content;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: #475467;
  font-weight: 600;
  cursor: pointer;
}

.restart-button:hover {
  color: #101828;
}

.result-learn-more {
  font-size: 13px;
  color: #0f8a5f;
  text-decoration: none;
  font-weight: 700;
}

.result-learn-more:hover {
  text-decoration: underline;
}