/* ================================
   O Decreto de Getsêmani — Quiz
   Design: reverente, quente, noturno.
   Paleta: azul-noite profundo + dourado.
   ================================ */

:root {
  --bg-deep:      #0b0c12;
  --bg-panel:     #14151f;
  --bg-panel-2:   #1b1c29;
  --gold:         #cda45e;
  --gold-light:   #eccd8f;
  --gold-dim:     #8a6f3f;
  --text:         #f4efe4;
  --text-muted:   #b7b2ac;
  --text-faint:   #7d7972;
  --border:       rgba(205, 164, 94, 0.18);
  --shadow-gold:  0 0 40px rgba(205, 164, 94, 0.25);
  --radius:       18px;
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Fundo atmosférico: céu de entardecer que se funde em azul-noite */
body {
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(120, 72, 38, 0.35) 0%, rgba(120, 72, 38, 0) 55%),
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(180, 110, 50, 0.18) 0%, rgba(180, 110, 50, 0) 60%),
    linear-gradient(180deg, #1a1420 0%, #0f0f18 35%, #0b0c12 100%);
  background-attachment: fixed;
}

/* ---------- Barra de progresso ---------- */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 100;
}
.progress-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  box-shadow: 0 0 12px rgba(205, 164, 94, 0.6);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Header / logo ---------- */
.site-header {
  display: flex;
  justify-content: center;
  padding: 22px 0 4px;
}
.site-header .logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(205, 164, 94, 0.35));
}

/* ---------- Layout ---------- */
.app {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 32px;
}

.screen {
  width: 100%;
  max-width: 460px;
  animation: rise 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen--intro {
  text-align: center;
}

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

/* ---------- Etapa 1 · Entrada ---------- */
.hero-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
  box-shadow: var(--shadow-gold), 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 20%;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,12,18,0) 55%, rgba(11,12,18,0.55) 100%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.headline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.28;
  letter-spacing: 0.2px;
  color: var(--text);
  margin: 0 0 16px;
}

.sub {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 32px;
}

/* ---------- Botão principal ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #201705;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(205, 164, 94, 0.28), 0 2px 0 rgba(255,255,255,0.25) inset;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(205, 164, 94, 0.38), 0 2px 0 rgba(255,255,255,0.25) inset;
}
.btn:active {
  transform: translateY(0);
}
.btn .arrow {
  transition: transform 0.15s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

.microcopy {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 14px;
}

/* ---------- Telas de pergunta (S/P/I/N/Objeção) ---------- */
.question {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 26px;
}

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

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.25s ease, transform 0.15s ease;
}
.option:hover {
  border-color: var(--gold-dim);
  background: var(--bg-panel-2);
}
.option:active {
  transform: scale(0.99);
}

.option-radio {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  position: relative;
  transition: border-color 0.15s ease;
}
.option-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold-light);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.option.is-selected {
  border-color: var(--gold);
  background: rgba(205, 164, 94, 0.1);
  box-shadow: 0 0 0 1px var(--gold);
}
.option.is-selected .option-radio {
  border-color: var(--gold);
}
.option.is-selected .option-radio::after {
  transform: scale(1);
}

.option.is-disabled:not(.is-selected) {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Etapa 4 · Break 1 (narrativa) ---------- */
.break-card {
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  position: relative;
}

.break-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.pastor-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.pastor-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(205, 164, 94, 0.12);
}
.pastor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.pastor-name {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.pastor-role {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--text-faint);
}

.break-text {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.break-text:last-of-type {
  margin-bottom: 28px;
}
.break-text strong {
  color: var(--gold-light);
  font-weight: 600;
}

.umbelief-box {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 16px;
  margin: 22px 0 28px;
}
.umbelief-box p {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--gold-light);
  margin: 0;
}

/* ---------- Variantes do cartão de mensagem ---------- */
.break-card--diagnosis {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(205, 164, 94, 0.35), 0 24px 60px rgba(0, 0, 0, 0.5), var(--shadow-gold);
}

.diagnosis-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #201705;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.diagnosis-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0 0 18px;
}

/* ---------- Objeção: tela de reforço ---------- */
.reinforcement-card {
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.reinforcement-text {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.reinforcement-text strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* ---------- Etapa 17 · Loading ---------- */
.screen--loading {
  text-align: center;
}

.loading-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 3px solid rgba(205, 164, 94, 0.15);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 30px;
}

.loading-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.loading-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--text-faint);
  opacity: 0.4;
  transition: opacity 0.4s ease, color 0.4s ease;
}
.loading-checklist li.is-done {
  opacity: 1;
  color: var(--text);
}
.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.loading-checklist li.is-done .check-icon {
  border-color: var(--gold);
  background: var(--gold);
}
.loading-checklist li.is-done .check-icon::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #201705;
  border-bottom: 2px solid #201705;
  transform: rotate(45deg);
}

/* ---------- Etapa 18 · Resultado (diagnóstico + vídeo, sem clique entre eles) ---------- */
.video-block {
  margin-top: 32px;
  text-align: center;
}
.video-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0 0 14px;
}
.video-copy {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 26px;
}
.video-frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-gold), 0 20px 50px rgba(0, 0, 0, 0.5);
}

@media (min-width: 540px) {
  .headline { font-size: 34px; }
  .break-card { padding: 44px 40px; }
}
