/* CaterPro.ai login splash — the automated catering application.
   Wireframe language (tokens.css) + pure-CSS motion: staggered entrance,
   a lifecycle spine that lights up stage by stage, and an overnight
   automation feed that cycles. No JavaScript on the auth surface. */

.splash-body {
  font-family: var(--wsp-sans);
  background: var(--wsp-paper);
  color: var(--wsp-ink);
  margin: 0;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 700px 500px at 78% 18%, rgba(47, 74, 60, 0.08), transparent),
    radial-gradient(var(--wsp-line) 1px, transparent 1px);
  background-size: auto, 26px 26px;
}

.splash-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 28px;
  box-sizing: border-box;
}
@media (max-width: 920px) {
  .splash-frame { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
}

/* --- Left: the story -------------------------------------------------------- */
.splash-story > * {
  opacity: 0;
  transform: translateY(14px);
  animation: splashRise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.splash-story > *:nth-child(1) { animation-delay: 0.05s; }
.splash-story > *:nth-child(2) { animation-delay: 0.18s; }
.splash-story > *:nth-child(3) { animation-delay: 0.32s; }
.splash-story > *:nth-child(4) { animation-delay: 0.48s; }
.splash-story > *:nth-child(5) { animation-delay: 0.62s; }
.splash-story > *:nth-child(6) { animation-delay: 0.76s; }
@keyframes splashRise { to { opacity: 1; transform: none; } }

.splash-logo {
  font-family: var(--wsp-serif);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.splash-logo span { color: var(--wsp-copper); }
.splash-tag {
  display: block;
  font-family: var(--wsp-mono);
  font-size: 0.66rem;
  font-weight: 400;
  color: var(--wsp-pine);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 3px;
}

.splash-h1 {
  font-family: var(--wsp-serif);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02;
  margin: 26px 0 10px;
}
.splash-sub {
  font-size: 1rem;
  line-height: 1.55;
  color: #5b564a;
  max-width: 460px;
  margin: 0 0 26px;
}

/* The lifecycle spine — stages light up in sequence, forever. */
.splash-spine { margin-bottom: 18px; }
.splash-spine-label {
  display: block;
  font-family: var(--wsp-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wsp-copper);
  margin-bottom: 8px;
}
.splash-chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 560px; }
.splash-chips span {
  font-family: var(--wsp-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid var(--wsp-line);
  background: var(--wsp-card);
  border-radius: 99px;
  padding: 5px 11px;
  animation: chipPulse 12s infinite;
  animation-delay: calc(var(--i) * 1.2s);
}
@keyframes chipPulse {
  0%, 7%, 100% { border-color: var(--wsp-line); background: var(--wsp-card); color: var(--wsp-ink); box-shadow: none; }
  2.5%, 4.5% { border-color: var(--wsp-copper); background: var(--wsp-copper); color: #fff; box-shadow: 2px 2px 0 var(--wsp-ink); }
}

/* The overnight feed — one receipt at a time, cycling. */
.splash-feed {
  background: var(--wsp-pine);
  color: #e9efe9;
  border-radius: 10px;
  padding: 14px 18px;
  max-width: 560px;
  box-shadow: 5px 5px 0 var(--wsp-ink);
  margin-bottom: 18px;
}
.splash-feed b {
  display: block;
  font-family: var(--wsp-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #d8b07a;
  margin-bottom: 8px;
}
.splash-feed-lines { position: relative; height: 2.6em; overflow: hidden; }
.splash-feed-lines span {
  position: absolute;
  inset: 0;
  font-family: var(--wsp-mono);
  font-size: 0.74rem;
  line-height: 1.45;
  opacity: 0;
  animation: feedCycle 20s infinite;
  animation-delay: calc(var(--i) * 4s);
}
@keyframes feedCycle {
  0%, 20%, 100% { opacity: 0; transform: translateY(8px); }
  2%, 16% { opacity: 1; transform: none; }
  19% { opacity: 0; transform: translateY(-8px); }
}

.splash-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.splash-stats div {
  background: var(--wsp-card);
  border: 2px solid var(--wsp-ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--wsp-ink);
  padding: 10px 16px;
  min-width: 120px;
}
.splash-stats b {
  display: block;
  font-family: var(--wsp-serif);
  font-weight: 900;
  font-size: 1.4rem;
}
.splash-stats span {
  font-family: var(--wsp-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b564a;
}

/* --- Right: the gate --------------------------------------------------------- */
.splash-gate {
  opacity: 0;
  transform: translateX(18px);
  animation: splashSlide 0.7s 0.4s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes splashSlide { to { opacity: 1; transform: none; } }

.splash-card {
  background: var(--wsp-card);
  border: 2px solid var(--wsp-ink);
  border-radius: 12px;
  box-shadow: 7px 7px 0 var(--wsp-ink);
  padding: 28px 26px;
}
.splash-kicker {
  font-family: var(--wsp-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wsp-copper);
}
.splash-card h2 {
  font-family: var(--wsp-serif);
  font-weight: 900;
  font-size: 1.9rem;
  margin: 6px 0 6px;
}
.splash-card-sub { font-size: 0.85rem; color: #5b564a; line-height: 1.5; margin: 0 0 18px; }

.splash-error {
  font-family: var(--wsp-mono);
  font-size: 0.72rem;
  border: 2px solid var(--wsp-severity-critical);
  background: var(--wsp-copper-soft);
  color: var(--wsp-severity-critical);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 14px;
}

.splash-card form { display: grid; gap: 6px; }
.splash-card label {
  font-family: var(--wsp-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wsp-pine);
  margin-top: 8px;
}
.splash-card input[type="text"],
.splash-card input[type="password"] {
  font: inherit;
  font-size: 0.95rem;
  border: 1.5px solid var(--wsp-line);
  border-radius: 8px;
  background: var(--wsp-paper);
  color: var(--wsp-ink);
  padding: 11px 12px;
}
.splash-card input:focus {
  outline: none;
  border-color: var(--wsp-pine);
  box-shadow: 2px 2px 0 var(--wsp-pine-soft);
}
.splash-card button[type="submit"] {
  margin-top: 16px;
  font-family: var(--wsp-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--wsp-ink);
  border-radius: 8px;
  background: var(--wsp-copper);
  color: #fff;
  padding: 13px 12px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--wsp-ink);
}
.splash-card button[type="submit"]:hover { background: var(--wsp-pine); }
.splash-card button[type="submit"]:active { transform: translate(2px, 2px); box-shadow: 0 0 0; }
.splash-card-foot {
  font-size: 0.74rem;
  color: #5b564a;
  margin: 16px 0 0;
  line-height: 1.5;
}
.splash-foot {
  font-family: var(--wsp-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999180;
  text-align: center;
  margin-top: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .splash-story > *, .splash-gate { animation: none; opacity: 1; transform: none; }
  .splash-chips span, .splash-feed-lines span { animation: none; }
  .splash-feed-lines span { position: static; opacity: 1; }
  .splash-feed-lines { height: auto; }
}
