/* ===== Método Conexão Invisível — estilos globais ===== */

:root {
  --bg: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #7A7A7A;
  --accent: #E0A81C;
  --track: #EFEFEF;
  --card-border: #E4E4E4;
  --radius-lg: 16px;
  --radius-btn: 12px;
  --max-width: 480px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Barra de progresso ===== */

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: 0%;
  transition: width 300ms ease;
}

/* ===== Tela / telas do quiz ===== */

.screen {
  display: none;
  padding-top: 24px;
  padding-bottom: 40px;
  opacity: 0;
  transition: opacity 250ms ease;
}

.screen.active {
  display: block;
}

.screen.fade-in {
  opacity: 1;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
}

.back-link:hover {
  color: var(--text-primary);
}

/* ===== Headline / textos ===== */

h1.headline {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

p.subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.5;
}

h2.question {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  margin: 40px 0 28px;
  color: var(--text-primary);
}

/* ===== Bloco de imagem da abertura ===== */

.image-block {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--track);
  margin-bottom: 24px;
}

.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

/* ===== Botões ===== */

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  transition: filter 150ms ease, transform 150ms ease;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-primary:active {
  transform: scale(0.99);
}

/* ===== Cards de opção ===== */

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color 150ms ease, background 150ms ease;
}

.option-card:hover {
  border-color: #D9BF87;
}

.option-card.selected {
  border-color: var(--accent);
  background: #FDF8ED;
}

.radio-dot {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--card-border);
  position: relative;
  transition: border-color 150ms ease;
}

.option-card.selected .radio-dot {
  border-color: var(--accent);
}

.option-card.selected .radio-dot::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== Rodapé ===== */

.footer-links {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: #B5B5B5;
}

.footer-links a {
  color: #B5B5B5;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ===== Tela de análise ===== */

.analysis-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dots {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 1.2s infinite ease-in-out;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot-pulse {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
  40% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.analysis-text {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== Página de resultado ===== */

.result-header {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin: 28px 0 20px;
}

.result-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 28px 24px;
  margin-bottom: 24px;
}

.gauge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.gauge {
  position: relative;
  width: 160px;
  height: 160px;
}

.gauge svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-track {
  fill: none;
  stroke: var(--track);
  stroke-width: 12;
}

.gauge-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 800ms ease;
}

.gauge-number {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.result-level {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.result-level-text {
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.divider {
  height: 1px;
  background: var(--card-border);
  border: none;
  margin: 0 0 20px;
}

.gesture-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 8px;
}

.gesture-name {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.gesture-text {
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.video-cta {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 16px;
  color: var(--text-primary);
  line-height: 1.4;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #14161A;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(224, 168, 28, 0.15);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--accent);
  margin-left: 4px;
}

.video-caption {
  color: #C9C9C9;
  font-size: 13px;
}

.buy-caption {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin: 12px 0 0;
}

@media (max-width: 375px) {
  h1.headline {
    font-size: 23px;
  }

  h2.question {
    font-size: 20px;
  }
}
