/* Signup page. Post-its follow the homepage note and the work site's stack. */

:root {
  --text: #17171c;
  --error: #c62828;
  --ok: #1b7f3a;
  --font: ui-sans-serif, system-ui, sans-serif;
  --note: 275px;
  --shadow: 0.25rem 0.25rem 0 rgb(0 0 0 / 0.05);
}

* { box-sizing: border-box; }

html {
  background-color: #f0f0f0;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  line-height: 1.45;
  background-color: #f0f0f0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect width='20' height='20' fill='%23fff'/%3E%3Crect width='20' height='20' fill='%23f0f0f0' fill-opacity='0.8'/%3E%3Cg stroke='%23387AEB' stroke-opacity='0.8' stroke-width='0.6' fill='none'%3E%3Cline x1='0' y1='0.3' x2='20' y2='0.3' stroke-dasharray='3.333 3.333'/%3E%3Cline x1='0.3' y1='0' x2='0.3' y2='20' stroke-dasharray='3.333 3.333'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 20px 20px;
}

.post-it {
  position: fixed;
  z-index: 5;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  color: #0f0f0f;
  font-size: 0.85rem;
  letter-spacing: normal;
  cursor: grab;
  touch-action: none;
  overflow: hidden;
  transition:
    width 0.28s ease,
    height 0.28s ease,
    top 0.28s ease,
    left 0.28s ease,
    right 0.28s ease,
    bottom 0.28s ease,
    padding 0.28s ease;
}

.post-it:not(.post-it--icon) {
  width: var(--note);
  height: var(--note);
  padding: 1rem;
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
}

.post-it-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.post-it h1,
.post-it h2,
.post-it p {
  margin: 0;
  pointer-events: none;
}

.post-it h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: normal;
  line-height: 1.15;
  text-transform: none;
}

.post-it h2 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: normal;
}

.post-it p + p,
.post-it h1 + p,
.post-it h2 + p {
  margin-top: 0.7rem;
}

.wear { color: #38B86B; }
.what { color: #387AEB; }
.when { color: #F2799A; }

.post-it--title {
  top: 7vw;
  left: 7vw;
  background: rgb(255 250 205 / 0.55);
  border-color: rgb(255 215 0 / 0.8);
}

.post-it--signup {
  right: 10vw;
  bottom: 10vw;
  background: rgb(224 255 255 / 0.55);
  border-color: royalblue;
}

.post-it--different {
  bottom: 5vw;
  left: 4vw;
  background: rgb(255 240 245 / 0.55);
  border-color: magenta;
}

.post-it--icon {
  top: 12vw;
  right: 14vw;
  flex: none;
  align-self: center;
  width: 5rem;
  height: 5rem;
  min-width: 5rem;
  min-height: 5rem;
  max-width: 5rem;
  max-height: 5rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 1.4rem;
}

.post-it--icon img {
  display: block;
  flex: none;
  width: 5rem;
  height: 5rem;
  min-width: 0;
  min-height: 0;
  max-width: 5rem;
  max-height: 5rem;
  object-fit: cover;
  pointer-events: none;
}

.post-it--works {
  top: 7vw;
  right: 4vw;
  background: rgb(152 251 152 / 0.55);
  border-color: limegreen;
}

.post-it--works a {
  color: inherit;
  pointer-events: auto;
}

.post-it--signup .post-it-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
}

.post-it-body ul {
padding-left: 1rem;
}

.thanks {
  margin: 0;
  color: #000;
  font-weight: 400;
}

.thanks a {
  color: #000;
  pointer-events: auto;
}

body.signed-up .post-it--signup .post-it-body {
  justify-content: flex-start;
}

.signup-lead {
  font-weight: 800;
}

.post-it--signup input,
.post-it--signup button {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 1rem;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: inherit;
  font: inherit;
  pointer-events: auto;
}

.post-it--signup input:focus,
.post-it--signup button:focus {
  outline: none;
}

.post-it--signup input::placeholder { color: #000; }

.post-it--signup button {
  font-weight: 700;
  cursor: pointer;
  background: royalblue;
  color: #fff;
}

.status { font-weight: 700; pointer-events: none; }
.status.ok { color: var(--ok); }
.status.error { color: var(--error); }

.post-it.dragging {
  transition: none;
  cursor: grabbing;
}

/* iPhone 18 screen is 1206×2622. Opened iPhone Duo inner screen is 2670×1878. */
.signup-slot {
  display: contents;
}

.recordings {
  --recording-h: min(72vh, 740px);
  position: fixed;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  height: var(--recording-h);
  pointer-events: none;
}

.recording {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #111;
  border: 0;
  box-shadow: 0 0 0 14px #0a0a0a, var(--shadow);
  pointer-events: auto;
  border-radius: 2.5rem;
}

.recording--phone {
  aspect-ratio: 1206 / 2622;
}

.recording--duo {
  display: none;
  aspect-ratio: 2670 / 1878;
}

.recording video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.top-links {
  position: absolute;
  z-index: 6;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.home-link,
.mail-link,
.legal-links {
  font-size: 0.85rem;
  letter-spacing: normal;
}

.home-link,
.mail-link {
  position: static;
  color: #17171c;
  pointer-events: auto;
}

.legal-links {
  position: fixed;
  z-index: 4;
  left: 1rem;
}

.legal-links {
  bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.legal-links a {
  color: #17171c;
}

.post-it-open-me {
  display: none;
}

@media (max-width: 719px) {
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1rem 2rem;
  }

  .top-links {
    order: 0;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
  }

  .home-link,
  .mail-link {
    position: static;
  }

  .post-it--title { order: 1; }
  .recordings { order: 3; }
  .post-it--different { order: 4; }
  .signup-slot { order: 5; }
  .post-it--icon { order: 6; }
  .legal-links { order: 7; }
  .post-it--works { order: 8; }

  .post-it {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    cursor: default;
    touch-action: auto;
    margin: 0;
  }

  .recordings {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(70vw, 280px);
    height: auto;
    margin: 14px 0;
    pointer-events: auto;
  }

  .recording--phone {
    width: 100%;
    height: auto;
    aspect-ratio: 1206 / 2622;
  }

  .legal-links {
    position: relative;
    bottom: auto;
    left: auto;
  }

  .signup-slot {
    display: block;
    width: var(--note);
    height: var(--note);
    margin-top: 0.5rem;
  }

  .post-it--signup:not(.is-landed) {
    position: fixed;
    z-index: 8;
    top: calc(50% - (var(--note) / 2));
    right: auto;
    bottom: auto;
    left: calc(1.35rem - var(--note));
    margin: 0;
    cursor: pointer;
  }

  .post-it--signup.is-open {
    z-index: 8;
  }

  .post-it--signup.is-landed {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    cursor: default;
  }

  .post-it--signup:not(.is-landed):not(.is-open) input,
  .post-it--signup:not(.is-landed):not(.is-open) button {
    width: calc(100% - 2.5rem);
    align-self: flex-start;
  }

  .post-it--signup:not(.is-landed):not(.is-open) .post-it-open-me {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    margin: 0;
    padding: 0.4rem 0;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    line-height: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    pointer-events: none;
  }
}
