/* The public "Coming soon" page (docs/coming-soon.md): its own small stylesheet, dark only (midnight), logical properties,
   system fonts. Notes after a sign-up are shown with :target, so the page needs no script. Motion: one fade-in at load,
   none with prefers-reduced-motion. */

:root {
  color-scheme: dark;
  --bg: #04061a;
  --text: #eef1ff;
  --muted: #a7b0d6;
  --line: rgb(170 185 255 / 24%);
  --glass: rgb(8 12 40 / 62%);
  --link: #9fe2ff;
  --btn-bg: #f4f6ff;
  --btn-text: #070b1f;
  --ok: #8be9b0;
  --bad: #ff9a90;
  --focus: #9fe2ff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-block-size: 100vh;
  min-block-size: 100dvh;
  color: var(--text);
  font: 1rem/1.55 var(--font);
  display: grid;
  place-items: center;
}

/* The blurred picture (nothing in it is readable) under a night sky and a moon glow. */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(34rem 20rem at 50% 8%, rgb(139 124 246 / 30%), transparent 70%),
    radial-gradient(28rem 18rem at 15% 90%, rgb(79 107 216 / 26%), transparent 70%),
    linear-gradient(180deg, rgb(4 6 26 / 10%), rgb(4 6 26 / 72%)),
    url("/assets/img/coming-soon.jpg") center / cover no-repeat;
}

main {
  inline-size: min(34rem, 100% - 2rem);
  margin-block: 2.5rem;
  text-align: center;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.logo {
  display: block;
  margin: 0 auto 1.25rem;
  inline-size: 6rem;
  block-size: 6rem;
  filter: drop-shadow(0 0 2.2rem rgb(139 124 246 / 55%));
}

h1 {
  margin: 0 0 0.35rem;
  font: 750 clamp(2.4rem, 1.6rem + 4vw, 3.6rem) / 1.08 var(--display);
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 0.9rem;
  font: 650 1.15rem/1.25 var(--display);
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 0 0.6rem;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  line-height: 1.3;
  text-wrap: balance;
}

.soon {
  margin: 0 0 2rem;
  color: var(--muted);
  text-wrap: balance;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.signup {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.signup-form {
  display: grid;
  gap: 0.9rem;
  text-align: start;
}

.field input {
  inline-size: 100%;
  min-block-size: 3rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 7%);
  color: var(--text);
  font: inherit;
}

.field input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.92rem;
  color: var(--muted);
}

.check input {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: #b8a8ff;
}

.button {
  min-block-size: 3rem;
  padding: 0.6rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font: 650 1rem/1 var(--font);
  cursor: pointer;
}

.button:hover:enabled {
  background: #fff;
}

/* While the bot check runs (website/src/assets/js/coming-soon.js disables the button): the same shape, dimmed, with text
   that still reads clearly. No animation, so nothing changes for Reduce Motion. */
.button:disabled {
  background: rgb(244 246 255 / 22%);
  color: #e4e8ff;
  cursor: progress;
}

/* The line under the form fields about the bot check: read aloud always, shown only when it has something to say. */
.check-status {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.check-status.show {
  position: static;
  inline-size: auto;
  block-size: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

/* A field only bots fill in: off screen, not hidden with display, so simple bots still see it. */
.trap {
  position: absolute;
  inset-inline-start: -10000px;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Notes after the form was sent: the address of the page ends in #sent, #invalid, #consent, #busy or #error. */
.notice {
  display: none;
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid currentcolor;
  border-radius: 0.8rem;
  font-weight: 600;
  text-align: start;
}

.notice:target {
  display: block;
}

.notice.ok {
  color: var(--ok);
}

.notice.bad {
  color: var(--bad);
}

.notice.bad a {
  color: inherit;
}

/* Shown only without JavaScript (inside <noscript>): the bot check needs it. */
.notice.noscript {
  display: block;
}

/* Cloudflare Turnstile's widget. With data-appearance="interaction-only" it has no height for most visitors and shows a
   small box only when Cloudflare wants a click. Its contents live in a shadow root, so CSS cannot tell the two apart:
   the negative margin takes back most of the grid gap the invisible widget would add, and still leaves a little room
   above the button when the box is shown. */
.bot-check {
  margin-block-end: -0.6rem;
}

body:has(#sent:target) .signup-form,
body:has(#sent:target) #notify-title {
  display: none;
}

.contact {
  margin: 1.6rem 0 2.2rem;
  color: var(--muted);
}

.privacy {
  padding-block-start: 1.6rem;
  border-block-start: 1px solid var(--line);
  text-align: start;
  font-size: 0.88rem;
  color: var(--muted);
}

.privacy h2 {
  font-size: 1rem;
  color: var(--text);
}

.privacy ul {
  margin: 0;
  padding-inline-start: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}

@media (min-width: 40rem) {
  .signup {
    padding: 1.75rem 1.75rem;
  }
}
