/* ============================================
   NODO Landing Pages — Estilos por página
   ============================================ */

/* --- Tela 0: Acolhimento --- */
.welcome {
  text-align: center;
}

.welcome__logo {
  width: 80px;
  height: auto;
  margin: 0 auto var(--space-4);
}

.welcome__headline {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
  color: var(--color-white);
}

.welcome__subheadline {
  font-size: var(--text-lg);
  color: var(--color-gray-light);
  margin-bottom: var(--space-4);
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.welcome__context {
  font-size: var(--text-sm);
  color: var(--color-gray-light);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  text-align: left;
}

/* Bloco Ritual */
.ritual {
  background-color: var(--color-gray-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
  text-align: left;
}

.ritual__title {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-white);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.ritual__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-sm);
  color: var(--color-gray-light);
  line-height: 1.5;
}

.ritual__item::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-blue);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* CTA da welcome */
.welcome__cta {
  margin-top: var(--space-4);
}

.welcome__footer {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-gray-light);
  opacity: 0.6;
}

/* --- Animação de entrada --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome > * {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.welcome > *:nth-child(1) { animation-delay: 0.1s; }
.welcome > *:nth-child(2) { animation-delay: 0.2s; }
.welcome > *:nth-child(3) { animation-delay: 0.3s; }
.welcome > *:nth-child(4) { animation-delay: 0.4s; }
.welcome > *:nth-child(5) { animation-delay: 0.5s; }
.welcome > *:nth-child(6) { animation-delay: 0.6s; }
.welcome > *:nth-child(7) { animation-delay: 0.7s; }

/* --- Form (cadastro.html) --- */
.page--form {
  justify-content: flex-start;
  padding-top: calc(var(--space-5) + 3px); /* Espaço pra progress bar */
}

.form-step {
  display: none;
  animation: fadeInUp 0.4s ease forwards;
}

.form-step.active {
  display: block;
}

.form-step__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--color-white);
}

.form-step__subtitle {
  font-size: var(--text-sm);
  color: var(--color-gray-light);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.form-step__nav {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.form-step__nav .btn {
  flex: 1;
}

.form-step__nav .btn-secondary {
  flex: 0.4;
}

/* Optional label */
.optional {
  font-size: var(--text-xs);
  color: var(--color-gray-light);
  font-weight: var(--font-regular);
}

/* Input com prefixo (R$) */
.input-with-prefix {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-light);
  font-size: var(--text-sm);
  pointer-events: none;
}

.input-with-prefix .input-field {
  padding-left: 44px;
}

/* Upload grid */
.uploads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

@media (min-width: 480px) {
  .uploads-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.upload-area__filename {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-success);
  margin-top: 8px;
  word-break: break-all;
}

/* Regras NODO (Tela 5) */
.rules-list {
  margin-bottom: var(--space-3);
}

.rules-list__title {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

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

.rules-list__items li {
  font-size: var(--text-sm);
  color: var(--color-gray-light);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.rules-list__items li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-blue);
}

/* Aceites */
.aceites {
  margin-bottom: var(--space-3);
}

/* Shake animation (erro nos aceites) */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.shake {
  animation: shake 0.5s ease;
}

/* Checkbox inline */
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gray-border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.checkbox-inline input[type="checkbox"]:checked {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
}

.checkbox-inline input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-size: 12px;
  font-weight: bold;
}

.checkbox-inline span {
  font-size: var(--text-sm);
  color: var(--color-white);
}

/* Tela 6 — Sucesso */
.success-screen {
  text-align: center;
  padding: var(--space-5) 0;
}

.success-screen__icon {
  margin-bottom: var(--space-4);
}

.success-screen__icon svg {
  margin: 0 auto;
}

/* Animação do check */
@keyframes drawCheck {
  from { stroke-dashoffset: 30; }
  to { stroke-dashoffset: 0; }
}

.check-animation {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck 0.6s ease 0.3s forwards;
}

/* Conditional blocks */
.conditional-block {
  animation: fadeInUp 0.3s ease forwards;
}

/* Calc card highlight */
.calc-card__value--highlight {
  color: var(--color-success);
}

/* --- Form 2: Financeiro --- */
.financeiro-state {
  animation: fadeInUp 0.4s ease forwards;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-gray-medium);
  border-top-color: var(--color-blue);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}

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

.error-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: var(--space-2);
}

.card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
