/* The waitlist page (chisel WAITLIST): the operator's design (evidence/NEXT/waitlist/design/SPEC.md), served by the
   service itself. DM Sans and Manrope are self-hosted from /fonts (SIL Open Font License 1.1, OFL-*.txt beside them),
   so the page loads nothing from anywhere else. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/DMSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/DMSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/Manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f9f8f5;
  --ink: #22231f;
  --muted: #727269;
  --line: #dcdcd4;
  --orange: #e9582c;
  --body-font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --head-font: "Manrope", "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color-scheme: light;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }

/* Layout: two equal columns, the art panel and the form. */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 28px;
  max-width: 1800px;
  margin: 0 auto;
  min-height: 100svh;
}

.art-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 640px;
  background: #ecebe5;
  border-radius: 5px;
}

.brand-logo {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 152px;
  display: block;
  color: var(--ink);
  line-height: 0;
}

.brand-logo svg { display: block; width: 100%; height: auto; }

.panel-illustration {
  width: 100%;
  max-height: 80svh;
  padding: 18px;
}

.replay-animation {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, .09);
  border-radius: 50%;
  background: transparent;
  color: #77766f;
  cursor: pointer;
}

.replay-animation svg { width: 16px; height: 16px; }

.replay-animation:hover { color: var(--ink); }

main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 10%;
}

.form-panel { width: 100%; max-width: 380px; }

h1 {
  margin: 0 0 36px;
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.4px;
}

.intro {
  margin: -17px 0 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

form { display: flex; flex-direction: column; gap: 22px; }

.field { display: flex; flex-direction: column; gap: 9px; }

label { font-size: 12px; font-weight: 550; }

input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:hover { border-color: rgb(184, 184, 172); }

input:focus {
  border-color: rgb(102, 104, 94);
  box-shadow: rgba(49, 57, 43, .035) 0 0 0 3px;
  outline: none;
}

input[aria-invalid="true"] { border-color: rgb(161, 59, 38); }

button.primary {
  height: 51px;
  margin-top: 7px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 5px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: background-color .15s ease;
}

button.primary:hover { background: rgb(63, 64, 57); }

button.primary:disabled { opacity: .65; cursor: wait; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}

.form-message {
  margin: 0;
  color: rgb(161, 59, 38);
  font-size: 12px;
  line-height: 1.5;
}

/* The answer after a send: W2's words, and the address it went to. */
.confirmation { padding: 2px 0 4px; }

.preview-message { margin: 0; font-size: 14px; line-height: 1.7; }

.confirmation-email { margin: 10px 0 0; font-weight: 600; overflow-wrap: anywhere; }

.signin-link {
  display: block;
  width: fit-content;
  margin: 26px auto 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .15s ease;
}

.signin-link:hover { color: #e9582c; }

/* The note shown when the page's script cannot run. */
.note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

/* The honeypot: out of sight and out of reach. */
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* The falling cubes: each drops in turn (its drop-N class), then the stack rests. */
.stack-cube { transform: translateY(0); opacity: 1; }

.stack-playing .stack-cube {
  animation: stack-drop .94s cubic-bezier(.45, 0, .88, .45) var(--drop-delay) 1 both;
}

@keyframes stack-drop {
  0% { transform: translateY(-650px); opacity: 0; }
  8% { opacity: 1; }
  72% { transform: translateY(0); opacity: 1; animation-timing-function: ease-out; }
  86% { transform: translateY(-9px); opacity: 1; animation-timing-function: ease-in; }
  100% { transform: translateY(0); opacity: 1; }
}

.drop-0 { --drop-delay: 0s; }
.drop-1 { --drop-delay: .16s; }
.drop-2 { --drop-delay: .32s; }
.drop-3 { --drop-delay: .48s; }
.drop-4 { --drop-delay: .64s; }
.drop-5 { --drop-delay: .8s; }
.drop-6 { --drop-delay: .96s; }
.drop-7 { --drop-delay: 1.12s; }
.drop-8 { --drop-delay: 1.28s; }
.drop-9 { --drop-delay: 1.44s; }
.drop-10 { --drop-delay: 1.6s; }
.drop-11 { --drop-delay: 1.76s; }
.drop-12 { --drop-delay: 1.92s; }
.drop-13 { --drop-delay: 2.08s; }
.drop-14 { --drop-delay: 2.24s; }
.drop-15 { --drop-delay: 2.4s; }
.drop-16 { --drop-delay: 2.56s; }
.drop-17 { --drop-delay: 2.72s; }
.drop-18 { --drop-delay: 2.88s; }
.drop-19 { --drop-delay: 3.04s; }

/* 601-800px: a narrower art column. */
@media (min-width: 601px) and (max-width: 800px) {
  .page-layout { grid-template-columns: .7fr 1fr; gap: 18px; padding: 16px; }
  main { padding: 36px 16px; }
  .panel-illustration { padding: 8px; }
  .brand-logo { left: 20px; top: 24px; width: 148px; }
  h1 { font-size: 28px; }
}

/* Up to 600px: the art panel becomes a short band above the form. */
@media (max-width: 600px) {
  .page-layout { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
  .art-panel { height: 190px; min-height: 0; }
  .panel-illustration { width: auto; height: 100%; padding: 8px; }
  main { padding: 28px 12px 40px; }
  .brand-logo { left: 18px; top: 18px; width: 136px; }
  .replay-animation { right: 12px; bottom: 12px; }
  h1 { font-size: 30px; }
}

/* 1600px and up: more room around the panel. */
@media (min-width: 1600px) {
  .page-layout { padding: 40px; }
  .art-panel { min-height: 760px; }
}

/* Reduced motion: the stack is shown at rest, nothing moves, and there is nothing to replay. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .stack-playing .stack-cube { animation: none; }
  .replay-animation { display: none; }
}
