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

:root {
  --navy:       #2e3c56;
  --periwinkle: #9ea6ef;
  --dark-navy:  #21263b;
  --darkest:    #1e1b2c;
  --off-white:  #f2f1eb;
  --white:      #ffffff;

  --peri-10: rgba(158, 166, 239, 0.10);
  --peri-20: rgba(158, 166, 239, 0.20);
  --peri-35: rgba(158, 166, 239, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--darkest);
  color: var(--off-white);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(158, 166, 239, 0.16) 1px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* ─── COMPONENTES DE MARCA (pill, badge, card) ───────────── */

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--periwinkle);
  color: var(--darkest);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.tag-pill:has(.icon-badge) {
  padding: 6px 18px 6px 6px;
}

.icon-badge {
  --badge-size: 40px;
  width: var(--badge-size);
  height: var(--badge-size);
  min-width: var(--badge-size);
  border-radius: 12px;
  background: var(--periwinkle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge::before {
  content: '';
  width: 52%;
  height: 52%;
  background: var(--white);
  -webkit-mask-image: url('assets/seta.png');
  mask-image: url('assets/seta.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.icon-badge--sm {
  --badge-size: 24px;
  border-radius: 7px;
}

.tag-pill .icon-badge {
  background: var(--darkest);
}

.icon-badge--bounce {
  animation: bounceArrow 1.8s ease-in-out infinite;
}

.card-organic {
  background: var(--dark-navy);
  border: 1px solid rgba(158, 166, 239, 0.10);
  border-radius: 28px 28px 28px 8px;
  padding: 30px 26px;
}

.bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(90px, 24vw, 220px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(158, 166, 239, 0.14);
  text-stroke: 1.5px rgba(158, 166, 239, 0.14);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* ─── SCREENS ────────────────────────────────────────────── */

.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
}

.screen-inner {
  width: 100%;
  max-width: 580px;
  margin: auto;
}

/* ─── BRAND LOCKUP ───────────────────────────────────────── */

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.brand-lockup--small {
  margin-bottom: 0;
  gap: 8px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.92;
}

.brand-mark--small {
  width: 32px;
  height: 32px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(242, 241, 235, 0.55);
  letter-spacing: 0.02em;
}

.brand-lockup--small .brand-sub {
  font-size: 9px;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

.brand-lockup--small .brand-name {
  font-size: 14px;
}

/* ─── HERO SCREEN ────────────────────────────────────────── */

#screen-hero {
  text-align: center;
}

#screen-hero .brand-lockup {
  justify-content: center;
}

.deco-bg {
  position: fixed;
  bottom: -120px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

.deco-img {
  width: 420px;
  opacity: 0.04;
  filter: invert(1);
  transform: rotate(20deg);
}

#screen-hero .screen-inner {
  position: relative;
  z-index: 1;
}

#screen-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.18;
  max-width: 540px;
  margin: 0 auto 18px;
}

.hero-sub {
  font-size: 16px;
  font-weight: 500;
  color: rgba(242, 241, 235, 0.60);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--periwinkle);
  color: var(--darkest);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px var(--peri-35);
}

.hero-note {
  font-size: 12px;
  color: rgba(242, 241, 235, 0.28);
  margin-top: 16px;
  letter-spacing: 0.02em;
}

.btn-wrap {
  position: relative;
  display: inline-block;
}

.btn-wrap .icon-badge {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-60%) rotate(8deg);
  pointer-events: none;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(-60%) rotate(8deg); }
  50%      { transform: translateY(-75%) rotate(8deg); }
}

@media (max-width: 480px) {
  .btn-wrap .icon-badge {
    display: none;
  }
}

/* ─── QUIZ SCREEN ────────────────────────────────────────── */

.quiz-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.progress-wrapper {
  flex: 1;
}

.progress-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 7px;
}

.progress-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--periwinkle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-bar {
  width: 100%;
  height: 5px;
  background: var(--peri-10);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--periwinkle);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* QUIZ BODY */

.quiz-body {
  animation: fadeSlideUp 0.35s ease both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.question-icon {
  font-size: 34px;
  margin-bottom: 10px;
  line-height: 1;
}

.question-num {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--periwinkle);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 10px;
}

.question-text {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 3.5vw, 23px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.30;
  margin-bottom: 24px;
}

.answers-grid {
  display: grid;
  gap: 10px;
}

.answer-card {
  width: 100%;
  background: var(--navy);
  border: 2px solid rgba(158, 166, 239, 0.12);
  border-radius: 16px 16px 16px 6px;
  padding: 15px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(242, 241, 235, 0.85);
  text-align: left;
  line-height: 1.45;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.answer-card:hover {
  border-color: var(--periwinkle);
  background: var(--peri-10);
  transform: translateX(5px);
}

.answer-card.selected {
  background: var(--periwinkle);
  border-color: var(--periwinkle);
  color: var(--darkest);
}

.answer-letter {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--peri-10);
  border: 1px solid var(--peri-20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--periwinkle);
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

.answer-card.selected .answer-letter {
  background: rgba(30, 27, 44, 0.20);
  border-color: rgba(30, 27, 44, 0.15);
  color: var(--darkest);
}

/* ─── LEAD CAPTURE SCREEN ────────────────────────────────── */

.lead-layout {
  text-align: center;
  position: relative;
  z-index: 1;
}

.lead-layout .brand-lockup {
  justify-content: center;
  margin-bottom: 28px;
}

.lead-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(20px, 4vw, 27px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 12px;
}

.lead-sub {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(242, 241, 235, 0.60);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto 32px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.lead-field label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--periwinkle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.lead-field input {
  width: 100%;
  background: var(--navy);
  border: 2px solid rgba(158, 166, 239, 0.12);
  border-radius: 13px;
  padding: 14px 16px;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.lead-field input::placeholder {
  color: rgba(242, 241, 235, 0.30);
  font-weight: 500;
}

.lead-field input:focus {
  outline: none;
  border-color: var(--periwinkle);
  background: var(--peri-10);
}

.lead-error {
  font-size: 13px;
  font-weight: 600;
  color: #ff8a8a;
  min-height: 18px;
  margin-top: -4px;
}

.lead-submit {
  justify-content: center;
  width: 100%;
  margin-top: 6px;
}

/* ─── ANALISANDO (LOADING) SCREEN ────────────────────────── */

.loading-layout {
  text-align: center;
}

.loading-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid var(--peri-10);
  border-top-color: var(--periwinkle);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(242, 241, 235, 0.75);
  transition: opacity 0.25s ease;
}

/* ─── RESULT SCREEN ──────────────────────────────────────── */

.result-layout {
  text-align: center;
  padding-top: 8px;
  position: relative;
  z-index: 1;
}

.result-layout .brand-lockup {
  justify-content: center;
  margin-bottom: 28px;
}

.result-card {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.result-icon {
  font-size: 58px;
  line-height: 1;
  margin-bottom: 14px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.result-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 4.5vw, 32px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 16px;
  white-space: pre-line;
}

.result-description {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(242, 241, 235, 0.68);
  line-height: 1.72;
  max-width: 460px;
  margin: 0 auto;
}

/* SCORE BAR */

.score-section {
  margin-bottom: 32px;
}

.score-bar-track {
  position: relative;
  height: 8px;
  background: var(--peri-10);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.score-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7b86e8, var(--periwinkle), #b8c0ff);
  border-radius: 100px;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(242, 241, 235, 0.25);
  letter-spacing: 0.02em;
}

/* BUTTONS */

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 14px;
  text-decoration: none;
  width: 100%;
  max-width: 420px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 14px;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.30);
}

.btn-restart {
  display: block;
  background: none;
  border: none;
  color: rgba(242, 241, 235, 0.30);
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0 auto;
  padding: 8px;
  transition: color 0.2s;
}

.btn-restart:hover {
  color: rgba(242, 241, 235, 0.70);
}

/* ─── RESPONSIVO ─────────────────────────────────────────── */

@media (max-width: 480px) {
  .quiz-header {
    flex-wrap: wrap;
    gap: 14px;
  }

  .progress-wrapper {
    width: 100%;
    order: 3;
  }

  .brand-lockup--small {
    flex: 1;
  }

  .deco-img {
    width: 280px;
  }

  .card-organic {
    padding: 24px 18px;
    border-radius: 22px 22px 22px 8px;
  }

  .bg-word {
    -webkit-text-stroke: 1px rgba(158, 166, 239, 0.14);
    text-stroke: 1px rgba(158, 166, 239, 0.14);
  }
}
