:root{
  --bg-1: #0f1d22;
  --bg-2: #16262c;
  --cyan: #3194ad;
  --teal: #3194ad;
  --teal-deep: #1c4955;
  --cyan-soft: rgba(49,148,173,0.55);
  --glass: rgba(15,29,34,0.55);
  --glass-border: rgba(255,255,255,0.16);
  --text: rgba(255,255,255,0.95);
  --text-dim: rgba(255,255,255,0.82);
  --text-faint: rgba(255,255,255,0.45);
  --gold: #d4af37;
  --serif: "Poppins", sans-serif;
  --sans: "Poppins", sans-serif;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  background: var(--bg-1);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body{
  min-height:100vh;
  position: relative;
}
.bg-layer{
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
  transition: opacity .7s ease, filter .5s ease;
  pointer-events: none;
  transform: scale(1.1);
}
.bg-base{
  background-image: url('imgs/background2.jpg?v=20260903a');
  opacity: 1;
}
.bg-intro{
  background-image: url('imgs/background1.jpg?v=20260903a');
  opacity: 0;
}
body.intro-bg .bg-intro{ opacity: 1; }
body.intro-bg .bg-base{ opacity: 0; }
body:not(.intro-bg):not(.static-bg) .bg-layer{
  filter: blur(18px);
}
@media (max-width: 768px){
  .bg-base, .bg-intro{
    background-image: url('imgs/background-mobile.jpg?v=20260903a');
  }
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 0;
  pointer-events: none;
}
#cover-screen, #wizard{
  position: relative;
  z-index: 1;
}

/* ---------- COVER ---------- */
#cover-screen{
  height:100vh;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 60px 24px;
}
#cover-screen::before{
  content:"";
  position:absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.38) 45%, rgba(0,0,0,0.08) 75%, rgba(0,0,0,0) 100%);
  z-index: 0;
  pointer-events: none;
}
#cover-screen > div{
  position: relative;
  z-index: 1;
  transform: translateY(14vh);
  max-width: 620px;
}
.kicker{
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 22px;
}
#cover-screen h1{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 4.2vw, 41px);
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(215,231,245,0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#cover-screen .sub{
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(12px, 1.8vw, 16px);
  color: var(--text-dim);
  margin-top: 14px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
#cover-screen .divider{
  width:72px;
  height:1px;
  margin: 24px auto 26px;
  background: linear-gradient(90deg, transparent, var(--cyan-soft), transparent);
}
#cover-screen .cover-meta{
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-top: 20px;
}
.btn-primary{
  position: relative;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0f1d22;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 15px 36px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn-primary::after{
  content:"";
  position: absolute;
  top: 0; left: -120%;
  width: 35%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(49,148,173,0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 3s ease-in-out infinite;
  pointer-events: none;
  opacity: 0;
}
@keyframes shine{
  0%{ left: -120%; opacity: 0; }
  20%{ opacity: 1; }
  60%{ left: 170%; opacity: 0; }
  100%{ left: 170%; opacity: 0; }
}
.btn-primary:hover{
  box-shadow:
    0 12px 30px rgba(0,0,0,0.3),
    0 0 24px rgba(49,148,173,0.35);
  transform: translateY(-2px);
}
.btn-primary:active{
  box-shadow:
    0 6px 16px rgba(0,0,0,0.32),
    0 0 30px rgba(49,148,173,0.45);
  transform: translateY(0);
}
.btn-primary:disabled{ opacity:0.35; cursor:not-allowed; transform:none; }
.btn-primary:disabled:hover, .btn-primary:disabled:active{ box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.btn-primary:disabled::after{ animation: none; opacity: 0; }
#cover-screen .btn-primary{
  font-size: 9px;
  padding: 9px 22px;
}

.btn-ghost{
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s ease, color .15s ease, transform .15s ease, background .15s ease;
}
.btn-ghost:hover{ background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; transform: translateY(-2px); }
.btn-ghost:active{ background: rgba(255,255,255,0.18); transform: translateY(0); }
.btn-ghost:disabled{ opacity:0.25; cursor:not-allowed; transform:none; }

/* Estilo copiado do CTA usado em diegocoelho.com (Digitalize 2.0), pra manter
   a mesma linguagem visual entre o diagnóstico e a LP de destino. */
/* Botão de fallback quando o resultado ainda não tem LP/imagem cadastrada:
   verde padrão do WhatsApp, pra ficar claramente reconhecível como tal. */
.btn-whatsapp{
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffffff;
  background: #25d366;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 16px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-whatsapp:hover{
  transform: translateY(-2px);
  background: #20bd5a;
  box-shadow: 0 12px 26px rgba(0,0,0,0.3), 0 0 20px rgba(37,211,102,0.4);
}
.btn-whatsapp svg{ width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- WIZARD SHELL ---------- */
#wizard{ display:none; }

.progress-shell{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 6px;
  z-index: 50;
}
.progress-track{
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.3);
}
.progress-fill{
  position: absolute;
  top: 0; left: 0;
  height: 6px;
  width: 0%;
  background: linear-gradient(90deg, #3194ad 0%, #1c4955 50%, #3194ad 100%);
  background-size: 200% 100%;
  animation: progressShift 6s ease infinite;
  box-shadow:
    0 0 10px rgba(37,112,131,0.55),
    0 0 22px rgba(17,50,58,0.45),
    0 0 32px rgba(37,112,131,0.35);
  transition: width .4s ease;
  z-index: 1;
}
@keyframes progressShift{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}
.question-marker{
  position: absolute;
  top: 50%;
  width: 2px;
  height: 2.7px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.28);
  opacity: 0.7;
  transition: background .25s ease, opacity .25s ease;
}
.question-marker.active{
  background: var(--cyan);
  opacity: 1;
}

.steps-viewport{
  max-width: 640px;
  margin: 0 auto;
  padding: 46px 24px;
  min-height: 100vh;
  display:flex;
  align-items:center;
}

#stepsContainer{
  width: 100%;
}

.step{
  display:none;
  width:100%;
  animation: fadeUp .22s ease;
}
.step.active{ display:block; }

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

.panel{
  background: linear-gradient(145deg, rgba(10,20,24,0.68) 0%, rgba(15,29,34,0.5) 48%, rgba(6,10,12,0.6) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 44px clamp(20px, 5vw, 56px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.panel h2{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  color: #fff;
  margin: 0 0 18px;
}
.panel p{
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-dim);
  margin: 0 0 16px;
  font-weight: 300;
}

/* ---------- QUESTION META ROW ---------- */
.q-meta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.q-meta-count{
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}
.q-meta-axis{
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
}

.q label{
  display:block;
  margin: 0 0 26px;
  font-family: var(--sans);
  font-size: 21px;
  line-height: 1.4;
  color: #fff;
  font-weight: 700;
}

/* ---------- CHOICE BUTTONS ---------- */
.choice-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.choice-btn{
  text-align: left;
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 18px 22px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .12s ease, color .18s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.choice-btn:hover{
  border-color: var(--cyan-soft);
  background: rgba(49,148,173,0.06);
  transform: translateY(-1px);
  color: var(--text);
}
.choice-btn.selected{
  border-color: var(--cyan);
  background: rgba(49,148,173,0.16);
  color: #fff;
  box-shadow: 0 0 0 1px var(--cyan) inset, 0 0 20px rgba(49,148,173,0.2);
}
.choice-btn:disabled{ cursor: default; }

/* ---------- CONTACT STEP ---------- */
input[type="text"], input[type="tel"]{
  width:100%;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  padding: 18px 20px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input[type="text"]::placeholder, input[type="tel"]::placeholder{ color: var(--text-faint); font-style: normal; }
input[type="text"]:focus, input[type="tel"]:focus{
  outline:none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(49,148,173,0.15);
}
input[type="text"].invalid, input[type="tel"].invalid,
input[type="text"].invalid:focus, input[type="tel"].invalid:focus{
  border-color: #ff5c5c;
  animation: shakeField .35s ease;
}
@keyframes shakeField{
  0%, 100%{ transform: translateX(0); }
  25%{ transform: translateX(-5px); }
  75%{ transform: translateX(5px); }
}
.field-error{
  display:none;
  margin-top: 10px;
  font-size: 13px;
  color: #ff5c5c;
  font-weight: 500;
}
.field-error.show{ display:block; animation: fadeIn .25s ease; }
@keyframes fadeIn{
  from{ opacity:0; transform: translateY(-4px); }
  to{ opacity:1; transform: translateY(0); }
}
.q-field{ margin-bottom: 24px; }
.q-field label{
  display:block;
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
}

/* Telefone com seletor de país + DDD/número, no mesmo padrão do formulário
   da Aplicação Mentoria Império: escolher o país já muda o formato e o
   comprimento esperado do número, em vez de validar tudo igual pra todo mundo. */
.phone-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 1.3fr;
  gap: 12px;
}
.phone-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-sublabel{
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
}

.phone-country-wrap{
  position: relative;
  z-index: 5;
}
.phone-country-native{
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.phone-country-trigger{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  padding: 18px 16px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.phone-country-trigger:hover{ border-color: rgba(255,255,255,0.8); }
.phone-country-wrap.open .phone-country-trigger{
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(49,148,173,0.15);
}
.phone-country-text{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-country-chevron{
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.phone-country-wrap.open .phone-country-chevron{ transform: rotate(-135deg); }

.phone-country-list{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: linear-gradient(160deg, #16262c 0%, #0f1d22 100%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
  display: none;
  z-index: 60;
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.85) rgba(255,255,255,0.08);
}
.phone-country-wrap.open .phone-country-list{ display: block; }
.phone-country-list::-webkit-scrollbar{ width: 8px; }
.phone-country-list::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}
.phone-country-list::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.phone-country-list::-webkit-scrollbar-thumb:hover{ background: #ffffff; }
.phone-country-option{
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-dim);
  text-align: left;
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13.5px;
}
.phone-country-option:hover,
.phone-country-option:focus{
  background: rgba(49,148,173,0.14);
  color: var(--text);
  outline: none;
}
.phone-country-option.selected{
  background: rgba(49,148,173,0.2);
  color: #fff;
}

/* Mesmo breakpoint do formulário da Aplicação Mentoria Império: abaixo de
   768px os 3 campos empilham em vez de ficar lado a lado, senão a lista
   do dropdown de país fica espremida só na largura da coluna. */
@media (max-width: 768px){
  .phone-grid{ grid-template-columns: 1fr; }
}

.submit-status{
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 500;
  min-height: 1.2em;
  color: var(--text-dim);
}
.submit-status.success{ color: #4ade80; }
.submit-status.error{ color: #ff5c5c; }

/* ---------- OVERLAY DE ENVIO ---------- */
.submit-overlay{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(9,17,20,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.submit-overlay.active{
  opacity: 1;
  pointer-events: all;
}
.submit-spinner{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.14);
  border-top-color: var(--cyan);
  animation: submitSpin .85s linear infinite;
}
@keyframes submitSpin{
  to{ transform: rotate(360deg); }
}
.submit-overlay-text{
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 500;
}
.submit-overlay-text.success{ color: #4ade80; }
.submit-overlay-text.error{ color: #ff5c5c; }

/* ---------- STEP NAV ---------- */
.step-nav{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-top: 34px;
}
.result-retake-nav{
  justify-content: center;
  margin-top: 22px;
}

/* ---------- RESULT SCREEN ---------- */
.result-badge{
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cyan);
  display: block;
  white-space: nowrap;
  margin-bottom: 14px;
}
.result-title{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4.4vw, 36px);
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.15;
}
.result-desc{
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-dim);
  font-weight: 300;
  margin: 0 0 28px;
}
.result-cta-label{
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 14px;
}
.result-actions{
  display:flex;
  flex-direction: column;
  gap: 12px;
}
/* Botão-imagem: usa a mesma arte promocional da LP do produto (baixada de
   diegocoelho.com) em vez de um botão de texto construído aqui. */
.result-cta-link{
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.result-cta-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.4);
}
.result-cta-img{
  display: block;
  width: 100%;
  height: auto;
}
/* Império usa dourado + brilho, igual ao CTA de diegocoelho.com/imperio2.0/. */
.result-cta-link.is-gold{
  border: 1px solid rgba(212,175,55,0.6);
  box-shadow: 0 10px 26px rgba(0,0,0,0.3), 0 0 20px rgba(212,175,55,0.15);
}
.result-cta-link.is-gold:hover{
  box-shadow: 0 16px 34px rgba(0,0,0,0.4), 0 0 30px rgba(212,175,55,0.3);
}
.result-cta-shine{
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  animation: ctaShineSweep 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaShineSweep{
  0%{ left: -60%; }
  55%{ left: 130%; }
  100%{ left: 130%; }
}

@media (max-width: 640px){
  .steps-viewport{ padding: 34px 16px; }
  .panel{ padding: 30px 20px; }
  .q label{ font-size: 20px; }
  .btn-primary, .btn-ghost{ padding: 14px 22px; }
  .step-nav{ flex-wrap: wrap; }
  .choice-btn{ padding: 16px 18px; font-size: 14.5px; }
  .result-badge, .q-meta-axis{ font-size: 9.5px; letter-spacing: 0.14em; }
}
