/* CONSECRATION TEASER — Minimalist waitlist page
   Inherits tokens from style.css. */

.teaser-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Atmospheric halo backdrop */
.teaser-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 169, 74, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(138, 106, 30, 0.08), transparent 60%),
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(7, 7, 10, 0.6) 90%),
    var(--color-bg);
}

.teaser-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/consecration/assets/atmosphere-halo.png');
  background-size: cover;
  background-position: center;
  opacity: 0.20;
  mix-blend-mode: screen;
}

.teaser {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-16) var(--space-6);
}

.teaser__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  animation: teaser-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Back link */
.teaser__backlink {
  display: inline-block;
  margin-bottom: var(--space-16);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.teaser__backlink:hover { color: var(--color-primary); }

/* Brand mark */
.teaser__mark {
  color: var(--color-primary);
  margin: 0 auto var(--space-8);
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 0 24px rgba(212, 169, 74, 0.25));
  animation: mark-glow 6s ease-in-out infinite;
}

.teaser__mark svg { display: block; }

@keyframes mark-glow {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(212, 169, 74, 0.25)); }
  50%      { filter: drop-shadow(0 0 40px rgba(212, 169, 74, 0.45)); }
}

/* Eyebrow */
.teaser__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-6);
}

/* Wordmark */
.teaser__wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  margin: 0;
  text-shadow: 0 0 60px rgba(212, 169, 74, 0.2);
}

/* Latin motto */
.teaser__latin {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  margin: var(--space-3) 0 var(--space-12);
}

/* Hero line */
.teaser__hero-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  color: var(--color-text);
  margin: 0 0 var(--space-8);
}

.teaser__hero-line em {
  font-style: italic;
  color: var(--color-primary);
}

/* Description */
.teaser__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 44ch;
  margin: 0 auto var(--space-12);
}

/* Form */
.teaser__form {
  margin-top: var(--space-10);
}

.teaser__form-row {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: 0 auto;
}

.teaser__input {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: rgba(19, 19, 24, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
  backdrop-filter: blur(4px);
}

.teaser__input::placeholder { color: var(--color-text-faint); }

.teaser__input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(24, 24, 32, 0.95);
  box-shadow: 0 0 0 3px rgba(212, 169, 74, 0.12);
}

.teaser__submit {
  position: relative;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-inverse);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(212, 169, 74, 0.18);
}

.teaser__submit:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(212, 169, 74, 0.28);
}

.teaser__submit:active:not(:disabled) {
  transform: translateY(0);
}

.teaser__submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.teaser__submit-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(7, 7, 10, 0.3);
  border-top-color: var(--color-text-inverse);
  border-radius: 50%;
  animation: spin 720ms linear infinite;
}

.teaser__submit[data-loading="true"] .teaser__submit-label { display: none; }
.teaser__submit[data-loading="true"] .teaser__submit-spinner { display: inline-block; }

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

.teaser__form-note {
  margin: var(--space-5) auto 0;
  max-width: 42ch;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-text-faint);
}

.teaser__form-error {
  margin: var(--space-4) 0 0;
  font-size: 0.85rem;
  color: #d97a7a;
}

/* Success state */
.teaser__success {
  margin-top: var(--space-8);
  padding: var(--space-8) var(--space-6);
  border: 1px solid rgba(212, 169, 74, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(212, 169, 74, 0.05);
  animation: success-in 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes success-in {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

.teaser__success svg {
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.teaser__success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
}

.teaser__success-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Footer */
.teaser__footer {
  margin-top: var(--space-24);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
}

.teaser__footer p { margin: 0; }

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Mobile */
@media (max-width: 560px) {
  .teaser { padding: var(--space-12) var(--space-5); }
  .teaser__backlink { margin-bottom: var(--space-12); }
  .teaser__form-row {
    flex-direction: column;
  }
  .teaser__submit { width: 100%; padding: 1rem; }
  .teaser__footer { margin-top: var(--space-16); }
}
