:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #000000;
  --muted: #6e6e73;
  --pressed: #292929;
  --focus: #007aff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }

.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(56px, env(safe-area-inset-top)) 24px max(56px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.identity { display: flex; flex-direction: column; align-items: center; gap: 14px; }
img, svg { display: block; max-width: 100%; height: auto; }
.logo { width: 104px; }
h1 { margin: 0; line-height: 0; }
.wordmark { width: 156px; }

/* The face draws itself once, stroke by stroke, like a persons timelapse. */
.logo .stroke { stroke-dasharray: 1 2; animation: draw var(--d) cubic-bezier(.5, 0, .3, 1) var(--at) both; }
.logo .head { --at: .25s; --d: .7s; }
.logo .body { --at: 1.05s; --d: .5s; }
.logo .smile { --at: 1.95s; --d: .3s; }
.logo .eye { transform-box: fill-box; transform-origin: center; animation: dot .12s ease-out 1.65s both; }
.logo .eye.right { animation-delay: 1.78s; }
@keyframes draw { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
@keyframes dot { from { transform: scale(0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo .stroke, .logo .eye { animation: none; }
}

.description, .headline {
  margin: 0;
  font-size: clamp(30px, 6.4vw, 40px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.16;
  text-align: center;
}
.description { margin-top: 52px; }

.sponsor {
  position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 8px 12px;
  color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap;
}
.sponsor { display: inline-flex; align-items: center; gap: 6px; }
.sponsor img { width: 14px; height: 14px; transform: rotate(90deg); }
.sponsor:hover { color: var(--ink); }
.sponsor:focus-visible { outline: 3px solid var(--focus); border-radius: 8px; }

/* One idea per screen, with the same breathing room on phone and laptop. */
.commercial { text-align: center; }
.panel {
  min-height: 100vh;
  min-height: 100svh;
  padding: max(80px, 14svh) 24px;
  display: grid;
  place-items: center;
}
.beat {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(680px, 100%);
  text-align: center;
}
.commercial .headline { font-size: clamp(34px, 5vw, 60px); line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; }
.sketch { width: 80px; height: 80px; margin-bottom: 40px; flex: none; }
.introduction .sketch { width: 104px; height: 104px; }
.flower { transform: rotate(-8deg); }
.answer { margin: 0; font-size: clamp(34px, 5vw, 60px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
.body-copy { margin: 28px 0 0; max-width: 440px; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; letter-spacing: -.02em; text-wrap: balance; }
.profile-faces { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 24px); margin: 40px 0; }
.profile-faces img { width: clamp(52px, 15vw, 88px); height: auto; border-radius: 50%; }
.profile-faces img:nth-child(1) { transform: rotate(-6deg); }
.profile-faces img:nth-child(2) { transform: rotate(4deg); }
.profile-faces img:nth-child(3) { transform: rotate(-3deg); }
.profile-faces img:nth-child(4) { transform: rotate(6deg); }
.beat > .waitlist { margin-top: 36px; }
.closing { position: relative; padding-bottom: max(160px, 22svh); }
.fine-print { position: absolute; bottom: max(32px, env(safe-area-inset-bottom)); left: 24px; right: 24px; }
.fine-print p { margin: 0 auto; max-width: 440px; color: var(--muted); font-size: 11px; line-height: 1.65; text-wrap: balance; }

/* The complete line reserves its place while the ink is typed once. */
.typing-line { position: relative; display: block; margin-top: .3em; padding-right: 5px; }
.typing-ink { position: absolute; inset: 0; padding-right: 5px; }
.is-typing .typing-reserve { visibility: hidden; }
.typing-caret { display: inline-block; width: 2px; height: .86em; margin-left: 2px; vertical-align: -.07em; background: var(--ink); animation: typing-caret 1s step-end infinite; }
@keyframes typing-caret { 0%, 49%, 100% { opacity: 1; } 50%, 99% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typing-caret { display: none; } }

.signup { margin-top: 24px; width: min(400px, 100%); text-align: center; }
.signup-row { display: flex; gap: 8px; }
input, button { font: inherit; }
input[type="email"] {
  width: 100%; min-width: 0; min-height: 52px;
  padding: 15px 18px;
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 20px;
}
input::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.waitlist {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; flex: none; padding: 15px 24px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 600; line-height: 20px;
  text-decoration: none; -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.waitlist:hover, .waitlist:active { background: var(--pressed); }
.waitlist:disabled { opacity: .65; cursor: wait; }
.waitlist:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }

.signup-note, .signup-status { font-size: 12px; line-height: 1.5; }
.signup-note { margin: 14px 0 0; color: var(--muted); }
.signup-status { margin: 10px 0 0; }
.signup-status:empty { display: none; }
.signup-status[data-error] { color: #b42318; }
.honeypot, .visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

@media (max-height: 600px) {
  .landing { padding-top: 32px; padding-bottom: 32px; }
  .logo { width: 80px; }
  .identity { gap: 12px; }
  .description { margin-top: 32px; }
  .signup { margin-top: 20px; }
  .sponsor { bottom: 4px; }
}


/* A complete gesture on arrival, replayed by the same accessible button. */
.private-person, .public-person { display: block; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.private-person-art, .public-person-art { width: 100%; height: 100%; overflow: visible; }
.private-person:focus-visible, .public-person:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 12px; }
    .persons-private-left,.persons-private-right{transform-box:view-box;animation-duration:2s;animation-timing-function:ease-in-out;animation-iteration-count:1}
    .persons-private-left{transform-origin:8.1px 12.1px;animation-name:none}
    .persons-private-right{transform-origin:15.6px 12.2px;animation-name:none}
    .private-person-art.is-playing .persons-private-left{animation-name:persons-private-touch-left}
    .private-person-art.is-playing .persons-private-right{animation-name:persons-private-touch-right}
    @keyframes persons-private-touch-left{0%,6%,38%,76%,100%{transform:rotate(0deg)}20%,25%,52%,57%{transform:rotate(-14deg)}}
    @keyframes persons-private-touch-right{0%,6%,38%,76%,100%{transform:rotate(0deg)}20%,25%,52%,57%{transform:rotate(14deg)}}
    @media(prefers-reduced-motion:reduce){.persons-private-left,.persons-private-right{animation:none}}

.persons-public-hand { transform-box: view-box; transform-origin: 3.4px 9.2px; }
.public-person-art.is-playing .persons-public-hand { animation: persons-public-wave 2s ease-in-out 1; }
@keyframes persons-public-wave { 0%,8%,38%,68%,100% { transform: rotate(0deg); } 23%,53% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .public-person-art.is-playing .persons-public-hand { animation: none; } }
