:root {
  --purple: #8612d7;
  --purple-dark: #5c1495;
  --orange: #ff9017;
  --pink: #ff3c93;
  --gray: #bfc0c2;
  --ink: #111111;
  --muted: #616161;
  --bg: #f6f4f7;
  --card: #ffffff;
  --shadow: 0 18px 55px rgba(24, 14, 34, .12);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fff 0, #f8f7fa 45%, #eeeaf1 100%);
  color: var(--ink);
  display: grid;
  place-items: center;
}
button { font: inherit; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.phone-shell {
  width: min(100vw, 430px);
  min-height: 100svh;
  height: 100svh;
  background: linear-gradient(180deg, #fff 0%, #fff 72%, #fff7f4 100%);
  position: relative;
  overflow: hidden;
}
.screen {
  position: absolute;
  inset: 0;
  padding: max(22px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(16px) scale(.985);
  transition: opacity .28s ease, transform .28s ease;
}
.screen.active { opacity: 1; pointer-events: auto; transform: translateX(0) scale(1); }
.intro-content { z-index: 2; text-align: center; padding-top: 12px; }
.eyebrow { margin: 0 0 26px; color: var(--purple); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
h1 { margin: 0; text-transform: uppercase; font-size: clamp(42px, 12vw, 55px); line-height: .95; font-weight: 950; letter-spacing: -1.8px; }
h1 span { display: inline-block; background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-text { max-width: 300px; margin: 22px auto 0; font-size: 18px; line-height: 1.35; }
.time-pill { display: inline-flex; align-items: center; gap: 6px; margin: 20px auto 0; color: #222; font-size: 13px; }
.time-pill::before { content: "◷"; color: var(--purple); font-weight: 900; font-size: 17px; }
.symbol-row { margin: 32px auto 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: min(330px, 90%); align-items: center; }
.symbol-row img { width: 100%; max-height: 64px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.07)); }
.primary-button, .secondary-button {
  width: min(280px, 82%);
  min-height: 58px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
  box-shadow: 0 16px 28px rgba(255, 78, 103, .24);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.primary-button:active, .secondary-button:active { transform: scale(.96); box-shadow: 0 8px 18px rgba(255,78,103,.18); }
.hero-photo {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 33%;
  background-image: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.08) 35%, rgba(118,17,190,.58) 100%), url('assets/hero-corrida.jpg?v=2');
  background-size: cover;
  background-position: center bottom;
  opacity: .96;
  border-radius: 26px 26px 0 0;
}
.hero-photo::before {
  content: "";
  position: absolute; inset: -1px 0 auto 0; height: 75px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.82) 30%, rgba(255,255,255,0) 100%);
}
.back-button {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: 18px;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: #fff;
  color: var(--purple);
  font-size: 34px;
  line-height: 32px;
  box-shadow: 0 8px 20px rgba(58, 18, 80, .10);
  z-index: 5;
}
.progress-label { text-align: center; font-size: 12px; font-weight: 950; margin-top: 6px; }
.progress-track { height: 6px; border-radius: 20px; background: #e9e8ea; width: 76%; margin: 18px auto 0; overflow: hidden; }
.progress-bar { height: 100%; width: 20%; border-radius: 20px; background: linear-gradient(90deg, var(--purple), var(--pink)); transition: width .28s ease; }
.question-area { margin-top: 34px; }
.question-area h2 { margin: 0 0 22px; font-size: clamp(25px, 7vw, 32px); line-height: 1.05; letter-spacing: -.7px; }
.options { display: flex; flex-direction: column; gap: 12px; }
.option-card {
  width: 100%; min-height: 84px;
  background: rgba(255,255,255,.95);
  border: 1px solid #eee8ef;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(26, 22, 37, .07);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.option-card:active { transform: scale(.98); box-shadow: 0 6px 14px rgba(26,22,37,.08); }
.option-card.selected {
  border-color: var(--pink);
  background: linear-gradient(90deg, rgba(134,18,215,.08), rgba(255,60,147,.08), rgba(255,144,23,.08));
  box-shadow: 0 14px 28px rgba(134, 18, 215, .14);
  transform: scale(.98);
}
.letter {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: #fff; font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
  box-shadow: 0 8px 14px rgba(134, 18, 215, .18);
}
.option-icon { width: 68px; height: 64px; object-fit: contain; }
.option-card p { margin: 0; font-size: 14px; line-height: 1.32; color: #161616; overflow-wrap: normal; word-break: normal; }
.hint { margin: auto 0 4px; color: #8b858d; text-align: center; font-size: 13px; }
.loading-screen { justify-content: center; align-items: center; background: linear-gradient(135deg, #fff 0%, #fff 50%, #fff1ec 100%); }
.loader-card { text-align: center; animation: pop .45s ease both; }
.loader-card img { width: 130px; height: 130px; object-fit: contain; animation: pulse 1.1s ease-in-out infinite; }
.loader-card h2 { margin: 12px 0 22px; font-size: 27px; line-height: 1.08; }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--purple); animation: bounce .7s infinite alternate; }
.dots span:nth-child(2) { background: var(--pink); animation-delay: .12s; }
.dots span:nth-child(3) { background: var(--orange); animation-delay: .24s; }
#result-screen {
  align-items: center;
  text-align: center;
  overflow-y: auto;
}
.result-kicker { margin: 34px 0 0; text-transform: uppercase; font-weight: 950; font-size: 15px; }
.result-title { margin: 2px 0 8px; text-transform: uppercase; font-weight: 950; font-size: clamp(46px, 14vw, 64px); line-height: .95; color: var(--purple); }
.result-icon { width: 168px; height: 168px; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(134,18,215,.10)); animation: reveal .42s ease both; }
.brush { margin-top: 2px; padding: 12px 24px; min-width: 255px; color: #fff; text-transform: uppercase; font-weight: 950; line-height: 1.08; font-size: 20px; background: var(--purple); clip-path: polygon(4% 12%, 94% 1%, 100% 18%, 96% 42%, 100% 62%, 93% 94%, 4% 88%, 0% 70%, 4% 49%, 0 30%); }
.result-text { margin: 16px auto 0; max-width: 315px; font-size: 16px; line-height: 1.3; }
.mission-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 16px; }
.mission-card { min-height: 170px; padding: 16px 12px; border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(26,22,37,.09); border: 1px solid #f0edf2; }
.mission-icon { width: 43px; height: 43px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 28px; font-weight: 900; }
.mission-card.purple .mission-icon { background: var(--purple); }
.mission-card.pink .mission-icon { background: var(--pink); }
.mission-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.05; }
.mission-card.purple h3, .mission-card.purple strong { color: var(--purple); }
.mission-card.pink h3 { color: var(--pink); }
.mission-card p { margin: 0; font-size: 13px; line-height: 1.3; }
.secondary-button { min-height: 50px; width: min(240px, 70%); font-size: 14px; margin-top: 2px; }
.signature { margin: 14px 0 0; font-style: italic; font-weight: 700; color: var(--purple); }
.confetti { position: absolute; top: 28px; left: 38px; right: 38px; height: 58px; pointer-events: none; }
.confetti span { position: absolute; width: 6px; height: 28px; border-radius: 8px; background: var(--pink); transform: rotate(25deg); animation: float 1.4s ease-in-out infinite alternate; }
.confetti span:nth-child(1){ left: 5%; top: 14px; background: var(--pink); }
.confetti span:nth-child(2){ left: 20%; top: 2px; background: var(--orange); animation-delay: .2s; }
.confetti span:nth-child(3){ left: 38%; top: 17px; background: var(--purple); animation-delay: .1s; }
.confetti span:nth-child(4){ right: 38%; top: 6px; background: var(--orange); animation-delay: .3s; }
.confetti span:nth-child(5){ right: 20%; top: 18px; background: var(--pink); animation-delay: .15s; }
.confetti span:nth-child(6){ right: 5%; top: 4px; background: var(--purple); animation-delay: .24s; }
.question-animate { animation: slideUp .28s ease both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes reveal { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { from { transform: scale(.96); } 50% { transform: scale(1.03); } to { transform: scale(.96); } }
@keyframes bounce { to { transform: translateY(-6px); opacity: .65; } }
@keyframes float { to { transform: translateY(9px) rotate(-18deg); opacity: .7; } }
@media (min-width: 560px) {
  body { padding: 22px; }
  .phone-shell { min-height: 844px; height: 844px; border-radius: 30px; box-shadow: var(--shadow); }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body {
    padding: 0;
    place-items: center;
  }

  .phone-shell {
    width: min(100vw, 620px);
    height: 100svh;
    min-height: 100svh;
    border-radius: 0;
    box-shadow: none;
  }

  .screen {
    padding-left: 42px;
    padding-right: 42px;
  }

  .hero-photo {
    height: 34%;
  }

  .question-area h2 {
    font-size: 34px;
  }

  .option-card p {
    font-size: 17px;
  }

  .result-icon {
    width: 190px;
    height: 190px;
  }
}
@media (max-height: 720px) {
  .screen { padding-left: 18px; padding-right: 18px; }
  .question-area { margin-top: 24px; }
  .question-area h2 { font-size: 24px; margin-bottom: 16px; }
  .option-card { min-height: 74px; grid-template-columns: 38px 1fr; padding: 11px 12px; }
  .option-card p { font-size: 13px; line-height: 1.32; }
  .symbol-row { margin-top: 24px; margin-bottom: 18px; }
  .hero-photo { height: 28%; }
  .result-icon { width: 136px; height: 136px; }
  .mission-card { min-height: 142px; padding: 12px 9px; }
}


/* Tela de retirada do brinde */

.gift-screen {
  align-items: center;
  text-align: center;
  overflow-y: auto;
  background: linear-gradient(180deg, #fff 0%, #fff 76%, #fff7f4 100%);
}

.gift-content {
  width: 100%;
  padding-top: 42px;
  padding-bottom: 14px;
}

.gift-title {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -1px;
}

.gift-title span {
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gift-line {
  width: 92px;
  height: 5px;
  border-radius: 20px;
  margin: 20px auto 24px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
}

.gift-intro {
  max-width: 330px;
  margin: 0 auto 12px;
  font-size: 21px;
  line-height: 1.25;
}

.gift-intro strong {
  color: var(--purple);
  font-weight: 950;
}

.gift-medal {
  width: min(320px, 88%);
  display: block;
  margin: 8px auto 18px;
  filter: drop-shadow(0 18px 28px rgba(24, 14, 34, .14));
}

.gift-text {
  max-width: 360px;
  margin: 0 auto 22px;
  font-size: 19px;
  line-height: 1.28;
}

.gift-text strong {
  color: var(--pink);
  font-weight: 950;
}

.steps-card {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid #f0edf2;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(26,22,37,.09);
  overflow: hidden;
  margin: 0 auto 14px;
}

.step-item {
  padding: 16px 8px 14px;
  min-height: 170px;
  position: relative;
}

.step-item + .step-item {
  border-left: 1px solid #eee8ef;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  color: #fff;
  font-weight: 950;
  font-size: 18px;
}

.step-number.purple { background: var(--purple); }
.step-number.pink { background: var(--pink); }
.step-number.orange { background: var(--orange); }

.step-item h3 {
  margin: 0 0 4px;
  text-transform: uppercase;
  font-size: 17px;
  font-weight: 950;
}

.step-item:nth-child(1) h3 { color: var(--purple); }
.step-item:nth-child(2) h3 { color: var(--pink); }
.step-item:nth-child(3) h3 { color: var(--orange); }

.step-item p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.25;
}

.step-symbols {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border: 2px dashed #d7d1dc;
  border-radius: 50%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
  padding: 8px;
}

.step-symbols img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.people-icon {
  width: 78px;
  height: 72px;
  margin: 0 auto 8px;
  position: relative;
}

.people-icon span {
  position: absolute;
  top: 4px;
  width: 20px;
  height: 20px;
  border: 2px solid #111;
  border-radius: 50%;
}

.people-icon span:first-child { left: 11px; }
.people-icon span:nth-child(2) { right: 11px; }

.people-icon::before,
.people-icon::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 26px;
  height: 32px;
  border: 2px solid #111;
  border-top: 0;
  border-radius: 0 0 18px 18px;
}

.people-icon::before { left: 7px; }
.people-icon::after { right: 7px; }

.people-icon i {
  position: absolute;
  left: 28px;
  top: 40px;
  width: 22px;
  height: 10px;
  border-bottom: 3px solid var(--purple);
  transform: rotate(8deg);
}

.camera-icon {
  width: 58px;
  height: 72px;
  margin: 0 auto 8px;
  border: 3px solid #111;
  border-radius: 14px;
  position: relative;
}

.camera-icon::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 24px;
  width: 24px;
  height: 24px;
  border: 3px solid var(--orange);
  border-radius: 50%;
}

.camera-icon::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 50%;
}

.camera-icon span {
  position: absolute;
  left: 15px;
  top: -8px;
  width: 28px;
  height: 12px;
  border: 3px solid #111;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #fff;
}

.gift-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, rgba(134,18,215,.08), rgba(255,60,147,.08), rgba(255,144,23,.08));
  border-radius: 18px;
  padding: 14px 16px;
  text-align: left;
  margin-top: 12px;
}

.gift-drawn-icon {
  width: 44px;
  height: 40px;
  border: 3px solid var(--purple);
  border-radius: 6px;
  position: relative;
  flex: 0 0 auto;
}

.gift-drawn-icon::before {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  top: -11px;
  height: 10px;
  border: 3px solid var(--purple);
  border-radius: 5px;
  background: #fff;
}

.gift-drawn-icon::after {
  content: "";
  position: absolute;
  left: 18px;
  top: -11px;
  bottom: -3px;
  width: 4px;
  background: var(--pink);
}

.gift-drawn-icon span::before,
.gift-drawn-icon span::after {
  content: "";
  position: absolute;
  top: -22px;
  width: 18px;
  height: 16px;
  border: 3px solid var(--purple);
  border-radius: 50% 50% 0 50%;
}

.gift-drawn-icon span::before {
  left: 3px;
  transform: rotate(28deg);
}

.gift-drawn-icon span::after {
  right: 3px;
  transform: rotate(-118deg);
}

.gift-alert p {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.gift-alert strong {
  color: var(--purple);
}

.app-credit {
  margin: 18px 0 0;
  color: #8b858d;
  font-size: 12px;
  line-height: 1.3;
}

.app-credit a {
  color: var(--purple);
  font-weight: 800;
  text-decoration: none;
}

@media (max-height: 760px) {
  .gift-content { padding-top: 34px; }
  .gift-title { font-size: 31px; }
  .gift-line { margin: 14px auto 18px; }
  .gift-intro { font-size: 18px; }
  .gift-medal { width: min(270px, 78%); margin-bottom: 14px; }
  .gift-text { font-size: 16px; margin-bottom: 16px; }
  .step-item { min-height: 146px; padding: 12px 6px; }
  .step-symbols { width: 60px; height: 60px; }
  .step-symbols img { width: 21px; height: 21px; }
  .people-icon, .camera-icon { transform: scale(.82); margin-top: -4px; margin-bottom: -2px; }
  .step-item h3 { font-size: 15px; }
  .step-item p { font-size: 11.3px; }
  .gift-alert { padding: 11px 13px; }
  .gift-alert p { font-size: 14px; }
}

@media (max-height: 760px) {
  .result-kicker {
    margin-top: 18px;
    font-size: 13px;
  }

  .result-title {
    font-size: clamp(38px, 12vw, 52px);
    margin-bottom: 4px;
  }

  .result-icon {
    width: 118px;
    height: 118px;
  }

  .brush {
    font-size: 16px;
    padding: 10px 18px;
    min-width: 220px;
  }

  .result-text {
    font-size: 14px;
    margin-top: 10px;
    max-width: 300px;
  }

  .mission-grid {
    margin: 16px 0 12px;
    gap: 10px;
  }

  .mission-card {
    min-height: 138px;
    padding: 12px 9px;
  }

  .mission-icon {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .mission-card h3 {
    font-size: 15px;
  }

  .mission-card p {
    font-size: 11.5px;
  }

  .secondary-button {
    min-height: 44px;
    font-size: 12px;
  }

  .signature {
    margin-top: 8px;
    font-size: 13px;
  }
}

/* =========================
   NPS — final da tela do brinde
   ========================= */

.nps-block {
  width: 100%;
  margin: 34px auto 0;
  padding: 26px 14px 22px;
  border-top: 1px solid #eee8ef;
  text-align: center;
}

.nps-kicker {
  margin: 0 0 7px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.nps-block h3 {
  max-width: 330px;
  margin: 0 auto;
  font-size: 23px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -.45px;
}

.nps-question {
  max-width: 355px;
  margin: 14px auto 20px;
  color: #3f3a42;
  font-size: 14px;
  line-height: 1.4;
}

.nps-scale {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
}

.nps-score {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  padding: 0;
  border: 1px solid #e6e0e9;
  border-radius: 50%;
  background: #fff;
  color: #3d3740;
  display: grid;
  place-items: center;
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(26,22,37,.05);
  transition:
    transform .16s ease,
    color .16s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.nps-score:active {
  transform: scale(.9);
}

.nps-score.selected {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
  box-shadow: 0 9px 18px rgba(134, 18, 215, .20);
  transform: scale(1.08);
}

.nps-score:disabled {
  cursor: default;
}

.nps-score:disabled:not(.selected) {
  opacity: .58;
}

.nps-labels {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
  color: #8b858d;
  font-size: 10px;
  line-height: 1.2;
}

.nps-labels span {
  width: 108px;
}

.nps-labels span:first-child {
  text-align: left;
}

.nps-labels span:last-child {
  text-align: right;
}

.nps-thanks {
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition:
    max-height .3s ease,
    margin .3s ease,
    opacity .3s ease,
    transform .3s ease;
}

.nps-thanks.visible {
  max-height: 70px;
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
}

.nps-thanks strong {
  display: block;
  color: var(--purple);
  font-size: 18px;
  line-height: 1.1;
}

.nps-thanks span {
  display: block;
  margin-top: 3px;
  color: #69626c;
  font-size: 12px;
}

/* Telefones muito estreitos: mantém 0–10 na mesma fileira */
@media (max-width: 360px) {
  .nps-block {
    padding-left: 6px;
    padding-right: 6px;
  }

  .nps-scale {
    gap: 2px;
  }

  .nps-score {
    font-size: 9px;
  }
}

@media (max-height: 760px) {
  .nps-block {
    margin-top: 26px;
    padding-top: 21px;
  }

  .nps-block h3 {
    font-size: 20px;
  }

  .nps-question {
    margin-top: 11px;
    margin-bottom: 16px;
    font-size: 13px;
  }
}
