/* ============================================================
   STUDIO UABI — welcome.css
   Pre-launch page. Single screen, centered, no scroll.
   ============================================================ */

.welcome {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.welcome-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 56px 60px;
  text-align: center;
}

/* ---------- Slogan ---------- */
.welcome-slogan {
  font-size: 70px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 940px;
  margin: 0;
  color: var(--text-main);
}

/* The slogan is typed into .typed character-by-character by JS.
   The caret blinks at the end the whole time. */
.welcome-slogan .typed { white-space: pre-wrap; }

.welcome-caret {
  display: inline-block;
  width: 6px;
  height: 0.78em;
  background: var(--uabi-red);
  margin-left: 6px;
  vertical-align: -0.06em;
  animation: welcome-caret-blink 1.1s steps(2) infinite;
}
[data-theme="dark"] .welcome-caret { background: #b4dbdc; }
@keyframes welcome-caret-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ---------- Context line ---------- */
.welcome-context {
  margin: 36px 0 0;
  font-size: 14px;
  font-style: italic;
  color: var(--text-subtle);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.welcome.is-revealed .welcome-context { opacity: 0.85; }

/* ---------- Actions (deck link, form, IG) ---------- */
.welcome-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.welcome.is-revealed .welcome-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Deck link styled as an outlined pill */
.welcome-deck-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1.5px solid var(--uabi-red);
  color: var(--uabi-red);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}
.welcome-deck-link:hover {
  background: var(--uabi-red);
  color: var(--sand);
  transform: translateX(2px);
}
[data-theme="dark"] .welcome-deck-link {
  border-color: #b4dbdc;
  color: #b4dbdc;
}
[data-theme="dark"] .welcome-deck-link:hover {
  background: #b4dbdc;
  color: var(--sand);
}

/* Email form as a pill: input + button live inside a single rounded
   container, with the button hugging the right edge. */
.welcome-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1.5px solid var(--text-subtle);
  border-radius: 999px;
  padding: 4px 4px 4px 22px;
  background: transparent;
  transition: border-color 0.2s ease;
}
.welcome-form:focus-within { border-color: var(--uabi-red); }
[data-theme="dark"] .welcome-form:focus-within { border-color: #b4dbdc; }

.welcome-form input[type="email"] {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--text-main);
  padding: 10px 0;
  width: 220px;
  font-family: inherit;
}
.welcome-form input[type="email"]::placeholder {
  color: var(--text-subtle);
  opacity: 0.8;
}
.welcome-form button {
  background: var(--uabi-red);
  color: var(--sand);
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 22px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.welcome-form button:hover { opacity: 0.85; }
[data-theme="dark"] .welcome-form button {
  background: #b4dbdc;
  color: var(--sand);
}

/* Inline thank-you replaces the input+button when submitted */
.welcome-form-thanks {
  font-size: 12px;
  font-style: italic;
  color: var(--text-subtle);
  display: none;
  padding: 8px 14px;
}
.welcome-form.is-submitted .welcome-form-thanks { display: inline-block; }
.welcome-form.is-submitted input,
.welcome-form.is-submitted button { display: none; }

/* Instagram icon */
.welcome-ig {
  color: var(--uabi-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.welcome-ig:hover { opacity: 0.7; }
.welcome-ig svg { width: 18px; height: 18px; }

/* ---------- Welcome footer: copyright + lang toggle ---------- */
.welcome-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 56px 32px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
}
.welcome-footer .copyright { opacity: 0.85; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .welcome-main { padding: 100px 22px 40px; }
  .welcome-slogan {
    font-size: 38px;
    line-height: 1;
  }
  .welcome-caret { width: 4px; }
  .welcome-context { font-size: 12px; margin-top: 24px; }
  .welcome-actions {
    flex-direction: column;
    gap: 22px;
    margin-top: 22px;
  }
  .welcome-form input[type="email"] { width: 180px; }
  .welcome-footer { padding: 16px 22px 22px; }
}
