/* Tela do celular (público) */
.phone {
  min-height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}
.conn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.conn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}
.conn.on .dot {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 0;
}

.phone-foot {
  text-align: center;
  opacity: 0.6;
}

/* ---- blocos ---- */
.q-eyebrow {
  margin-bottom: 14px;
}
.q-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.55rem, 7vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.q-sub {
  color: var(--muted);
  margin-top: 12px;
  font-size: 0.98rem;
  line-height: 1.4;
}

/* opções (choice/scale) */
.opts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 17px 18px;
  border-radius: 15px;
  background: var(--card);
  border: 1.5px solid var(--card-brd);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.opt:active {
  transform: scale(0.98);
}
.opt .emoji {
  font-size: 1.4rem;
  line-height: 1;
}
.opt.selected {
  border-color: transparent;
  background: linear-gradient(120deg, rgba(91, 110, 245, 0.28), rgba(168, 85, 247, 0.28));
  box-shadow: 0 0 0 1.5px var(--card-hi) inset;
}
.opt.selected.warm {
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.24), rgba(236, 72, 153, 0.24));
  box-shadow: 0 0 0 1.5px rgba(251, 113, 133, 0.6) inset;
}
.opt .check {
  margin-left: auto;
  color: var(--cool-2);
  opacity: 0;
  font-weight: 800;
}
.opt.selected .check {
  opacity: 1;
}

/* wordcloud / lead inputs */
.field {
  margin-top: 22px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1.5px solid var(--card-brd);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.input:focus {
  border-color: var(--card-hi);
}
.input::placeholder {
  color: var(--muted-2);
}

.btn {
  width: 100%;
  margin-top: 20px;
  padding: 17px;
  border: none;
  border-radius: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: #fff;
  background: var(--grad-cool);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.btn.warm {
  background: var(--grad-warm);
  color: #1a1020;
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  filter: grayscale(0.5) brightness(0.7);
  cursor: not-allowed;
}

/* estados: lobby / enviado */
.center-state {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.pulse-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 70%);
  position: relative;
}
.pulse-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.6);
  animation: ring 1.8s ease-out infinite;
}
@keyframes ring {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.state-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.state-sub {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 30ch;
  line-height: 1.45;
}

.change-hint {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-2);
}

/* cartão de nota do diagnóstico (celular) */
.scorecard {
  text-align: center;
  padding: 26px 20px;
  border-radius: 22px;
  border: 1.5px solid var(--card-brd);
  background: var(--card);
  position: relative;
  overflow: hidden;
}
.scorecard::before {
  content: "";
  position: absolute;
  inset: -40% 30% auto 30%;
  height: 220px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
}
.scorecard.tone-warm::before {
  background: var(--grad-warm);
}
.scorecard.tone-cool::before {
  background: var(--grad-cool);
}
.scorecard.tone-green::before {
  background: var(--green);
}
.scorecard > * {
  position: relative;
  z-index: 1;
}
.score-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 5.4rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 6px 0 2px;
}
.score-num i {
  font-size: 1.6rem;
  font-style: normal;
  color: var(--muted);
  font-weight: 700;
}
.tone-warm .score-num {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tone-cool .score-num {
  background: var(--grad-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tone-green .score-num {
  color: var(--green);
}
.score-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.score-badge.tone-warm {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.4);
}
.score-badge.tone-cool {
  color: #a5b4fc;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.4);
}
.score-badge.tone-green {
  color: var(--green);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
}
.score-head {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.score-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}
.score-foot {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted-2);
  border-top: 1px solid var(--card-brd);
  padding-top: 16px;
}
.mini-link {
  color: var(--cool-2);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
