:root {
  color-scheme: light dark;
  --surface: #fbfaff;
  --ink: #211b30;
  --secondary: #6b6577;
  --accent: #5b3cc4;
  --pollen: #ffc51a;
  --on-pollen: #211b30;
  --splash-lavender: #eeeafa;
  --splash-pollen: #fbf0d4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html {
  height: 100%;
  overflow: clip;
  overscroll-behavior: none;
}
body {
  margin: 0;
  /* Clip animated overflow without introducing a scroll container. */
  overflow: clip;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.coming-soon {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 32px;
  text-align: center;
}
.bee-stage { position: relative; width: 144px; margin: 0 auto 18px; }
.bee-splash {
  position: absolute;
  width: 280px;
  height: auto;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.splash-lavender { fill: var(--splash-lavender); }
.splash-pollen { fill: var(--splash-pollen); }
.bee-logo { position: relative; display: block; width: 100%; }
.bee-logo img { display: block; width: 100%; height: auto; }
/* The logo keeps its layout slot while the bee flies into it. */
.bee-logo[data-entering] { visibility: hidden; }
.bee-logo.is-flying {
  animation: bee-welcome 3200ms both;
  transform-origin: 50% 55%;
}
h1 {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 850;
  animation: arrive 650ms ease-out both;
}
p { margin: 12px 0 0; color: var(--secondary); line-height: 1.5; }
.release-status { font-size: 1rem; }
a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--secondary);
  text-underline-offset: 5px;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
.store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  animation: arrive 650ms 100ms ease-out both;
}
.store-links a { border-radius: 5px; transition: transform 150ms ease, opacity 150ms ease; }
.store-links a:hover { transform: translateY(-2px); }
.store-links a:active { transform: scale(.97); opacity: .75; }
.store-links img { display: block; height: 40px; width: 120px; }
footer {
  flex-shrink: 0;
  padding: 16px 24px max(20px, env(safe-area-inset-bottom));
  text-align: center;
  animation: arrive 650ms 180ms ease-out both;
}
.contact-link { padding-inline: 12px; font-size: .875rem; text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
.contact-link:hover { color: var(--accent); text-decoration: underline; }
dialog {
  width: min(380px, calc(100% - 40px));
  max-height: calc(100svh - 40px);
  padding: 32px;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
}
dialog[open] { animation: arrive 180ms ease-out both; }
dialog::backdrop { background: rgb(16 12 24 / 40%); }
dialog h2 { margin: 0; font-size: 1.75rem; letter-spacing: -.03em; }
dialog p { font-size: 1.0625rem; }
dialog button {
  width: 100%;
  min-height: 50px;
  margin-top: 28px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--pollen);
  color: var(--on-pollen);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease;
}
dialog button:hover { opacity: .85; }
dialog button:active { transform: scale(.97); }
@keyframes arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Fly in, brake with a little overshoot, backflip, then settle. */
@keyframes bee-welcome {
  0% {
    transform: translate(calc(-50vw - 100%), 28px) rotate(-16deg) scale(.9);
    animation-timing-function: cubic-bezier(.2, .65, .3, 1);
  }
  34% {
    transform: translate(12px, -10px) rotate(12deg) scale(1.03);
    animation-timing-function: ease-in-out;
  }
  45% {
    transform: translate(0, 0) rotate(-12deg);
    animation-timing-function: ease-in-out;
  }
  54% {
    transform: translate(-6px, -16px) rotate(18deg) scale(1.04, .96);
    animation-timing-function: cubic-bezier(.45, 0, .25, 1);
  }
  75% {
    transform: translate(0, -24px) rotate(-360deg);
    animation-timing-function: ease-in;
  }
  84% {
    transform: translate(0, 5px) rotate(-368deg) scale(1.06, .94);
    animation-timing-function: ease-out;
  }
  92% {
    transform: translate(0, -4px) rotate(-356deg) scale(.98, 1.02);
    animation-timing-function: ease-in-out;
  }
  100% { transform: translate(0, 0) rotate(-360deg) scale(1); }
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #17151d;
    --ink: #f5f2fa;
    --secondary: #b2aabc;
    --accent: #b9a6ff;
    --splash-lavender: #272135;
    --splash-pollen: #30291d;
  }
}
@media (prefers-contrast: more) {
  :root { --secondary: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .store-links a:hover, .store-links a:active, dialog button:active { transform: none; }
}
@media (max-height: 500px) {
  .coming-soon { padding-top: 24px; padding-bottom: 16px; }
  .bee-stage { width: 88px; margin-bottom: 12px; }
  .bee-splash { width: 190px; top: -28px; }
  .store-links { margin-top: 20px; }
  footer { padding-top: 0; }
}
