:root {
  --navy: #014461;          /* fundo do logo */
  --navy-deep: #013349;
  --surface: #02557A;
  --surface-line: #0B6A93;
  --white: #FFFFFF;
  --orange: #F7A823;        /* arco laranja do logo */
  --orange-soft: #FFC766;
  --sky: #4DB3F7;           /* arco azul do logo */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(77,179,247,0.14), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(247,168,35,0.10), transparent 60%),
    var(--navy);
}

.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: 4px;
  width: 100%;
  background: var(--navy-deep);
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--sky));
  border-radius: 0 4px 4px 0;
  transition: width 0.35s ease;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 4px;
  min-height: 56px;
}
.back-btn {
  background: none;
  border: none;
  color: var(--white);
  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: 34px;
  height: auto;
  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%;
}

.intro-logo {
  display: block;
  width: 170px;
  height: auto;
  margin: 0 0 32px -6px;
}

.label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-align: left;
  text-wrap: balance;
}
.headline .accent { color: var(--orange); }

.body-text {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
  margin: 0 0 28px;
  max-width: 40ch;
}
.body-text.small {
  font-size: 14px;
  margin-bottom: 18px;
}

.microcopy {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
  text-align: center;
  line-height: 1.4;
}

/* Buttons */
.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--orange);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  padding: 17px 20px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(247,168,35,0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary:hover { background: var(--orange-soft); }
.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(--white);
  border: 1.5px solid var(--surface-line);
  border-radius: 14px;
  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: 1.5px solid rgba(255,255,255,0.3);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  transition: all 0.15s ease;
}
.option-btn:hover { border-color: var(--sky); }
.option-btn:active { transform: scale(0.98); }
.option-btn.selected {
  border-color: var(--orange);
  background: rgba(247,168,35,0.12);
}
.option-btn.selected .opt-key {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy-deep);
}

/* Question step label */
.step-count {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
  display: block;
}

/* Lead form */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 12px;
  margin-bottom: 8px;
}
.field-input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--surface-line);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 15px 16px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field-input::placeholder { color: rgba(255,255,255,0.4); }
.field-input:focus { border-color: var(--orange); }
.lead-form .btn-primary { margin-top: 24px; }

/* Result screen */
.tier-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 7px 13px;
  border: 1.5px solid var(--sky);
  color: var(--sky);
  border-radius: 999px;
  margin-bottom: 16px;
}
.tier-badge.priority {
  border-color: var(--orange);
  color: var(--orange);
}

.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-radius: 12px;
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255,255,255,0.88);
}
.result-list li::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  border-right-color: var(--sky);
  border-bottom-color: var(--sky);
}

.divider {
  height: 1px;
  background: var(--surface-line);
  margin: 26px 0 20px;
}
