/* /start — self-serve sign-up. Form fields come from halo-landing.css
   (.halo-demo-simple .ds-*); this file adds the two-column layout and the
   live preview of the agent window. */

.halo-demo-simple .st-header {
  max-width: 82rem;
}

.st-main {
  display: grid;
  grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
  max-width: 82rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 6vh, 4.5rem) 1.5rem 4rem;
}

.st-form-col .ds-form {
  margin-top: 1.75rem;
}

/* Honeypot: off-screen, not display:none, so naive bots still fill it. */
.st-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.st-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(23, 21, 30, 0.56);
  font-size: 0.78rem;
}

.st-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.st-facts li::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--halo-violet, #5d51b4);
  opacity: 0.55;
}

/* ── Preview ─────────────────────────────────────────── */

.st-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border-radius: 1.5rem;
  background-color: #efedf6;
}

.st-preview .halo-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  pointer-events: none;
  animation: st-drift 20s ease-in-out infinite;
}

.st-preview .halo-blob-2 {
  animation-duration: 26s;
  animation-direction: reverse;
}

@keyframes st-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 8%) scale(1.1); }
}

.st-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(43, 38, 68, 0.1);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 60px -28px rgba(43, 38, 68, 0.35);
}

.st-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(43, 38, 68, 0.08);
}

.st-window-course {
  min-width: 0;
  overflow: hidden;
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.st-window-tag {
  flex-shrink: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--halo-wash, #efedf6);
  color: var(--halo-violet, #5d51b4);
  font-size: 0.72rem;
  font-weight: 600;
}

.st-window-body {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  min-height: 19rem;
}

.st-outline {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.1rem;
  border-right: 1px solid rgba(43, 38, 68, 0.08);
  background: #fafafa;
}

.st-outline-head {
  color: rgba(23, 21, 30, 0.5);
  font-size: 0.72rem;
  font-weight: 600;
}

.st-outline-module {
  display: grid;
  gap: 0.5rem;
}

.st-sk {
  display: block;
  height: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #e6e3f1 0%, #f3f1f9 50%, #e6e3f1 100%);
  background-size: 200% 100%;
  animation: st-shimmer 1.8s ease-in-out infinite;
}

.st-sk-sub {
  height: 0.5rem;
  margin-left: 0.75rem;
  opacity: 0.75;
}

.st-sk-40 { width: 40%; }
.st-sk-50 { width: 50%; }
.st-sk-55 { width: 55%; }
.st-sk-60 { width: 60%; }
.st-sk-70 { width: 70%; }

@keyframes st-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.st-chat {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1.1rem;
}

.st-bubble {
  max-width: 92%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.st-bubble-author {
  justify-self: end;
  border-bottom-right-radius: 0.3rem;
  background: #17151e;
  color: #fff;
  white-space: pre-line;
}

.st-bubble-agent {
  justify-self: start;
  border-bottom-left-radius: 0.3rem;
  background: #f2f1f6;
  color: #17151e;
}

.st-steps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(23, 21, 30, 0.72);
  font-size: 0.85rem;
  font-weight: 500;
}

.st-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.st-steps span {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ── Code step (after submit) ────────────────────────── */

.st-sent h1 {
  color: #000;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.st-sent > p {
  margin-top: 0.9rem;
  color: rgba(23, 21, 30, 0.6);
  font-size: 1rem;
  line-height: 1.55;
}

.st-sent .ds-form {
  margin-top: 1.75rem;
}

.st-sent .st-otp {
  letter-spacing: 0.5em;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.st-resend {
  margin-top: 1rem;
  color: rgba(23, 21, 30, 0.5);
  font-size: 0.8rem;
}

.st-resend a {
  color: var(--halo-violet, #5d51b4);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 959px) {
  .st-main {
    grid-template-columns: minmax(0, 1fr);
    max-width: 36rem;
    align-items: start;
  }

  .st-preview-col {
    order: 2;
  }

  .st-window-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .st-outline {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-preview .halo-blob,
  .st-sk {
    animation: none;
  }
}
