/* The home page is one of the dark screens: night ground in both modes. */
body.home {
  --ink: #f6f3fa; --paper: #17121c; --muted: rgba(246, 243, 250, 0.66); --faint: rgba(246, 243, 250, 0.07); --glow: 0.32;
  background: var(--night); color: #ffffff;
  color-scheme: dark;
}
body.home main { gap: 28px; padding-block: 4vh 2vh; }
.stack { margin: 0; display: grid; font: 900 clamp(84px, 30vw, 136px)/0.8 var(--display); letter-spacing: -0.01em; }
.stack span { display: block; width: max-content; transform-origin: 10% 80%; }
.stack span:nth-child(1) { color: var(--lime); }
.stack span:nth-child(2) { color: var(--orange); }
.stack span:nth-child(3) { color: var(--lilac); }
.lede { margin: 0; font: 700 clamp(20px, 5.6vw, 24px)/1.3 var(--display); text-wrap: balance; }

.demo { padding-top: 18px; }
.demo .card { cursor: grab; }
.demo-name { margin: 0; font: 900 clamp(28px, 8.5vw, 36px)/1.02 var(--display); text-transform: uppercase; }

.steps { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; color: var(--muted); font-size: 16px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  font: 900 18px/1 var(--display); color: var(--night); transform: rotate(-4deg);
}
.steps li:nth-child(1)::before { background: var(--lime); }
.steps li:nth-child(2)::before { background: var(--orange); }
.steps li:nth-child(3)::before { background: var(--lilac); }
.steps b { display: block; color: #ffffff; font: 700 16px/1.35 var(--display); margin-bottom: 2px; }
.soon { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.pill { display: inline-block; background: var(--lime); color: var(--night); font: 900 12px/1 var(--display); text-transform: uppercase; padding: 7px 10px; border-radius: 6px; transform: rotate(-3deg); margin-right: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .stack span { animation: slide 700ms var(--spring) both; }
  .stack span:nth-child(2) { animation-delay: 110ms; }
  .stack span:nth-child(3) { animation-delay: 220ms; }
  @keyframes slide { from { transform: translateX(-60%) rotate(-8deg); opacity: 0; } }
  /* Every so often the three wave, one after another (home.js adds the class). */
  .stack.wave span { animation: wave 700ms var(--spring) both; }
  .stack.wave span:nth-child(2) { animation-delay: 90ms; }
  .stack.wave span:nth-child(3) { animation-delay: 180ms; }
  @keyframes wave { 40% { transform: translateY(-10px) rotate(-5deg) scale(1.04); } }
  .lede { animation-delay: 380ms; }
  .demo { animation-delay: 480ms; }
  .demo .sticker { animation-delay: 900ms; }
  .steps li:nth-child(1) { animation-delay: 760ms; }
  .steps li:nth-child(2) { animation-delay: 840ms; }
  .steps li:nth-child(3) { animation-delay: 920ms; }
  .soon { animation-delay: 1000ms; }
}
