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

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

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Páginas de conteúdo corrido (ex: resultado.html) não precisam do fold fixo — voltam ao fluxo normal de documento */
.container.container-doc {
  display: block;
  flex: none;
}

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

.progress-track {
  flex: 0 0 auto;
  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;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding-top: 16px;
  padding-bottom: 16px;
  opacity: 0;
  transition: opacity 250ms ease;
}

.screen.active {
  display: flex;
}

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

.back-link {
  flex: 0 0 auto;
  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 {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  margin: 12px 0 8px;
  color: var(--text-primary);
}

h1.headline .headline-highlight {
  color: var(--accent-red);
}

p.subtitle {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.4;
}

h2.question {
  flex: 0 0 auto;
  font-size: 33px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin: 32px 0 28px;
  color: var(--text-primary);
}

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

.image-block {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--track);
  margin-bottom: 12px;
}

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

.image-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 30%, transparent 55%);
  pointer-events: none;
}

.image-caption {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 16px;
  right: 16px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

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

.btn-primary {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  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);
}

.btn-cta {
  background: var(--accent-red);
  color: #FFFFFF;
  font-size: 16px;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 16px rgba(229, 52, 45, 0.35);
}

.btn-cta:hover {
  background: var(--accent-red-dark);
  filter: none;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.btn-primary:disabled:hover {
  filter: none;
}

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

.options {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 21px;
  width: 100%;
  min-height: 84px;
  padding: 21px 24px;
  background: #FFFFFF;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 23px;
  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 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px 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: 5px;
  left: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
}

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

.footer-links {
  flex: 0 0 auto;
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: #B5B5B5;
}

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

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

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

.analysis-screen {
  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-banner {
  flex: 0 0 auto;
  width: 100%;
  background: var(--accent-red);
  color: #FFFFFF;
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.presente-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 20px 0 16px;
}

.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: 20px 24px;
  margin: 16px 0 8px;
}

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

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

.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: 37px;
  font-weight: 700;
  color: var(--text-primary);
}

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

.result-level-text {
  text-align: center;
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.video-cta .text-highlight {
  color: var(--accent-red);
}

.presente-title {
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.presente-subtitle {
  text-align: center;
  font-size: 17px;
  margin: 0 0 14px;
  color: var(--accent-red);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #14161A;
  margin-bottom: 10px;
}

/* ===== Telas de vídeo intercaladas entre perguntas (index.html) ===== */

.video-banner {
  background: var(--accent-red);
  color: #FFFFFF;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 20px;
  line-height: 1.3;
  padding: 16px 20px;
  margin: 0 -20px 20px;
}

.video-screen {
  justify-content: center;
}

.video-screen .video-cta {
  margin-top: 0;
}

.video-screen .video-container {
  margin-bottom: 16px;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.video-placeholder .play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 3px;
}

.video-placeholder span {
  font-size: 13px;
  color: #CFCFCF;
}

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

.cta-reveal {
  display: none;
}

.cta-reveal.visible {
  display: block;
  animation: cta-fade-in 500ms ease;
}

@keyframes cta-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .option-card {
    font-size: 20px;
  }
}

/* Telas muito baixas (celulares pequenos / barra de navegador expandida) */
@media (max-height: 700px) {
  h1.headline {
    font-size: 18px;
    margin: 8px 0 6px;
  }

  p.subtitle {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .image-block {
    margin-bottom: 8px;
  }

  .btn-primary {
    min-height: 46px;
    font-size: 14px;
  }

  .footer-links {
    margin-top: 6px;
  }
}
