:root {
  --green: #3A473E;         /* fundo do logo */
  --green-deep: #2A342D;
  --surface: #45544A;
  --surface-line: #5E6F63;
  --cream: #ECEADF;         /* traço do símbolo e do nome */
  --sand: #D8D3BE;          /* creme mais quente para destaques */
  --sage: #B7C6B0;          /* verde claro para acentos */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(90% 45% at 100% 100%, rgba(236,234,223,0.06), transparent 60%),
    radial-gradient(70% 35% at 0% 100%, rgba(0,0,0,0.18), transparent 60%),
    var(--green);
}

.app {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Progress bar */
.progress {
  height: 3px;
  width: 100%;
  background: var(--green-deep);
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sand), var(--sand));
  border-radius: 0 3px 3px 0;
  transition: width 0.35s ease;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 4px;
  min-height: 60px;
}
.back-btn {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 4px 8px;
  margin-left: -8px;
  cursor: pointer;
}
.back-btn.visible {
  opacity: 0.8;
  pointer-events: auto;
}
.back-btn:active { opacity: 1; }

.brand-mark {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(236,234,223,0.45);
  transition: opacity 0.2s ease;
}
.brand-mark.hidden { opacity: 0; }

/* Screens */
#screens {
  flex: 1;
  position: relative;
  display: flex;
}
.screen {
  display: none;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.screen.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-inner {
  padding: 16px 24px 40px;
  width: 100%;
}

/* Logo com bordas esfumadas para fundir com o fundo verde */
.intro-logo {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto 36px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 70%, transparent 100%);
}

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--sand);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--sand);
}

.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
  text-align: left;
  text-wrap: balance;
  color: var(--cream);
}
.headline .accent { color: var(--sage); font-style: italic; }

.body-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(236,234,223,0.78);
  margin: 0 0 28px;
  max-width: 40ch;
}
.body-text.small {
  font-size: 14px;
  margin-bottom: 18px;
}

.microcopy {
  display: block;
  font-size: 12px;
  color: rgba(236,234,223,0.5);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}

/* Buttons */
.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, var(--sand), var(--sand));
  color: var(--green-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 10px;
  padding: 17px 20px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: scale(0.98); }

/* Options */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  color: var(--cream);
  border: 1px solid var(--surface-line);
  border-radius: 12px;
  padding: 15px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.option-btn .opt-key {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(216,211,190,0.5);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--sand);
  transition: all 0.15s ease;
}
.option-btn:hover { border-color: var(--sand); }
.option-btn:active { transform: scale(0.98); }
.option-btn.selected {
  border-color: var(--sand);
  background: rgba(216,211,190,0.14);
}
.option-btn.selected .opt-key {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--green-deep);
}

/* Question step label */
.step-count {
  font-size: 12px;
  font-weight: 500;
  color: rgba(236,234,223,0.55);
  margin-bottom: 8px;
  display: block;
}

/* Lead form */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236,234,223,0.65);
  margin-top: 12px;
  margin-bottom: 8px;
}
.field-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 15px 16px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field-input::placeholder { color: rgba(236,234,223,0.38); }
.field-input:focus { border-color: var(--sand); }
.lead-form .btn-primary { margin-top: 24px; }

/* Result screen */
.tier-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 7px 13px;
  border: 1px solid var(--sage);
  color: var(--sage);
  border-radius: 999px;
  margin-bottom: 16px;
}
.tier-badge.priority {
  border-color: var(--sand);
  color: var(--green-deep);
  background: var(--sand);
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-list li {
  position: relative;
  padding: 13px 14px 13px 42px;
  background: var(--surface);
  border: 1px solid rgba(94,111,99,0.6);
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(236,234,223,0.9);
}
.result-list li::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 19px;
  width: 8px;
  height: 8px;
  background: var(--sand);
  transform: rotate(45deg);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
  opacity: 0.6;
  margin: 26px 0 20px;
}

/* Aviso de cuidado (CVV) */
.care-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--sage);
  background: rgba(0,0,0,0.12);
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(236,234,223,0.8);
}
.care-note strong { color: var(--cream); font-weight: 600; }
