/* Muse waitlist. Black and warm-paper sections in turn: a black hero, a light intro and how-it-works, then
   black again for features, the question and the form. Inter Tight for everything, with an Instrument Serif
   italic for the turn of a headline. One 1024px column. */

:root {
  --black: #0a0a0a;
  --chip: #1c1c1b;
  --white: #f5f3ee;
  --paper: #f4f2ed;
  --card: #fbfaf7;
  --ink: #111110;
  --ink-2: rgba(17, 17, 16, 0.72);
  --ink-3: rgba(17, 17, 16, 0.56);
  --on-dark-2: rgba(245, 243, 238, 0.72);
  --on-dark-3: rgba(245, 243, 238, 0.56);
  --line-dark: rgba(245, 243, 238, 0.16);
  --tile: #e7e4de;
  --error: #f2726a;
  --sans: 'Inter Tight', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --col: 1024px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* the hero phone's width; the intro below makes room for the part that hangs over */
  /* three quarters of the phone it was (400 px / 88vw) */
  --hero-w: min(300px, 66vw);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
::selection {
  background: var(--white);
  color: var(--black);
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
}
.center {
  text-align: center;
}
.muted {
  color: var(--on-dark-3);
}
.sr-only,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
.eyebrow {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.light .eyebrow {
  color: var(--ink-3);
}
.section-title {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 500 18px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background 0.2s,
    color 0.2s,
    opacity 0.15s;
}
.btn:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.btn-light {
  background: var(--white);
  color: var(--black);
}
.btn-outline {
  border-color: var(--white);
  background: transparent;
  color: var(--white);
}
@media (hover: hover) {
  .btn-light:hover {
    background: #fff;
  }
  .btn-outline:hover {
    background: rgba(245, 243, 238, 0.08);
  }
  .goal-chips button:hover {
    background: #262625;
  }
  .goal-chips button[aria-pressed='true']:hover {
    background: #fff;
  }
  .footer a:hover {
    opacity: 0.7;
  }
}

/* Nav: a floating glass pill. */
.nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 12px 12px 0;
  pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--col);
  height: 60px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  background: rgba(20, 20, 19, 0.5);
  border: 1px solid rgba(245, 243, 238, 0.1);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.nav.scrolled .nav-bar {
  background: rgba(20, 20, 19, 0.72);
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.6);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav-logo img {
  height: 20px;
  width: auto;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  padding: 136px 20px 0;
  background: var(--black);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tag {
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(50px, 10vw, 100px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-size: 1.08em;
}
.hero-sub {
  margin-bottom: 40px;
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 450;
  color: var(--on-dark-2);
}
.hero-ctas {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}
.hero-phone {
  display: flex;
  justify-content: center;
  margin-top: 64px;
  /* The whole phone shows: about 40% of it hangs over the hero's edge into the light section. */
  margin-bottom: calc(var(--hero-w) * -0.88);
}
.device.device-hero {
  --w: var(--hero-w);
}

/* Fields */
.field {
  position: relative;
}
.field input {
  width: 100%;
  height: 60px;
  padding: 22px 24px 0;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--chip);
  color: var(--white);
  font: 400 16px var(--sans); /* 16px keeps iOS from zooming in */
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field label {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
  color: rgba(245, 243, 238, 0.5);
  font-size: 16px;
  pointer-events: none;
  transition:
    transform 0.22s var(--ease),
    color 0.22s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  transform: translateY(-112%) scale(0.76);
  color: var(--on-dark-3);
}
.field input:focus {
  outline: none;
  border-color: rgba(245, 243, 238, 0.6);
  box-shadow: 0 0 0 4px rgba(245, 243, 238, 0.07);
}
.field input[aria-invalid='true'] {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(242, 114, 106, 0.12);
}
.form-msg {
  font-size: 14px;
  font-weight: 500;
}
.form-msg:empty {
  display: none;
}
.form-msg.error {
  color: var(--error);
}
.fine {
  font-size: 14px;
  color: var(--on-dark-3);
}

/* Phones: an iPhone drawn in CSS. Every size comes from --w, the phone's width. */
.device {
  --w: min(400px, 88vw);
  position: relative;
  flex: none;
  width: var(--w);
  aspect-ratio: 9 / 19.5;
  padding: calc(var(--w) * 0.011);
  border-radius: calc(var(--w) * 0.165);
  /* the polished metal band around the edge */
  background: linear-gradient(140deg, #a7a7aa 0%, #4b4b4e 22%, #d6d6d8 48%, #3f3f42 74%, #9b9b9e 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 50px 90px -40px rgba(0, 0, 0, 0.55);
}
/* side buttons: action and volume on the left, power on the right */
.device::before,
.device::after {
  content: '';
  position: absolute;
  width: calc(var(--w) * 0.012);
  border-radius: 2px;
  background: linear-gradient(90deg, #5c5c5f, #b5b5b8);
}
.device::before {
  left: calc(var(--w) * -0.009);
  top: 17%;
  height: 4.2%;
  box-shadow:
    0 calc(var(--w) * 0.16) 0 0 #8a8a8d,
    0 calc(var(--w) * 0.32) 0 0 #8a8a8d;
}
.device::after {
  right: calc(var(--w) * -0.009);
  top: 26%;
  height: 10%;
}
.device-bezel {
  height: 100%;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.155);
  background: #050505;
}
.device-screen {
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.125);
  background: #f8f7f4;
}
.device-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.device-island {
  position: absolute;
  z-index: 2;
  top: calc(var(--w) * 0.068);
  left: 50%;
  width: calc(var(--w) * 0.3);
  height: calc(var(--w) * 0.088);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

/* Videos play on their own: no play button if a browser holds autoplay back for a moment. */
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none;
}

/* Intro */
.light {
  background: var(--paper);
  color: var(--ink);
}
.intro {
  padding: calc(var(--hero-w) * 0.88 + 96px) 20px 88px;
}
.statement {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.intro .body {
  margin-top: 16px;
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
}
.strip {
  margin: 72px -20px 0;
}
.strip-window {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.strip-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: drift 90s linear infinite;
}
.tile {
  flex: none;
  width: 168px;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  background: var(--tile);
  overflow: hidden;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.strip-note {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}

/* How it works */
.how {
  padding: 16px 16px 96px;
}
.how .eyebrow {
  padding-left: 4px;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 40px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(17, 17, 16, 0.04);
}
.card-text {
  padding: 0 40px;
}
.card h2 {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.card p {
  margin-top: 8px;
  color: var(--ink-2);
  line-height: 1.4;
}
.card-media {
  display: flex;
  justify-content: center;
  margin: 32px 16px 0;
  margin-top: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding-top: 36px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #ece9e3, #e2ded6);
}
.card-text + .card-media {
  margin-top: 32px;
}
/* The phone runs off the bottom of the card. */
.device-card {
  --w: min(300px, 62vw);
  height: fit-content;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 30px 60px -30px rgba(0, 0, 0, 0.45);
}

/* Explore */
.explore {
  padding: 80px 16px 24px;
}
.explore .section-title {
  margin-bottom: 56px;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 20px;
}
.feature-media {
  flex: none;
  width: 225px;
  height: 225px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-video {
  background: #e2ded6;
}
.feature-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 66%;
}
.feature h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.2;
}
.feature p {
  margin-top: 8px;
  color: var(--on-dark-2);
}

/* The question */
.goals-section {
  padding: 96px 16px 40px;
}
.goals-section .muted {
  margin-top: 10px;
}
.goal-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: var(--col);
  margin: 32px auto 0;
  padding: 0;
  border: 0;
}
.goal-chips button {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--white);
  font: 500 clamp(16px, 1.8vw, 19px) / 1 var(--sans);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.2s var(--ease);
}
.goal-chips button:active {
  transform: scale(0.97);
}
.goal-chips button[aria-pressed='true'] {
  background: var(--white);
  color: var(--black);
}

/* The join card a goal chip opens (it shares the joined card's frame and motion). */
.join-card {
  text-align: left;
  justify-items: stretch;
}
.join-card .eyebrow,
.join-card h2,
.join-card .join-goal {
  text-align: center;
}
.join-goal {
  font-weight: 500;
  color: var(--white) !important;
}
.join-goal:empty {
  display: none;
}
.join-card-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.join-card-form .btn {
  margin-top: 4px !important;
}
.join-card-form .fine {
  margin-top: 0 !important;
  text-align: center;
  font-size: 13px;
}
.fine a {
  color: inherit;
}

/* The form */
.cta {
  padding: 72px 16px 112px;
}
.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.cta-title + .muted {
  margin-top: 14px;
  font-size: clamp(16px, 1.8vw, 18px);
}
.cta-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin: 36px auto 0;
  text-align: center;
}
.cta-form .form-msg {
  text-align: left;
  padding-left: 24px;
}

/* Footer */
.footer {
  padding: 72px 16px 24px;
  color: var(--white);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(245, 243, 238, 0.4);
}
.footer-logo {
  align-self: flex-start;
  height: 26px;
  width: auto;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-col p {
  margin-bottom: 8px;
  color: var(--on-dark-3);
}
.footer-col a {
  text-decoration: none;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 13px;
}
.footer-bottom nav {
  display: flex;
  gap: 8px;
}
.footer-bottom nav a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
.footer-bottom svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Floating button (phones, when no form is on screen) */
.float-cta {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  min-height: 56px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s var(--ease),
    opacity 0.3s;
}
.float-cta.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.float-cta.show:active {
  transform: translate(-50%, 0) scale(0.97);
}
@media (min-width: 961px) {
  .float-cta {
    display: none;
  }
}

/* Joined card */
.done {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade 0.2s ease;
}
.done[hidden] {
  display: none;
}
.done-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: min(440px, 100%);
  padding: 48px 28px 28px;
  border-radius: 32px;
  border: 1px solid var(--line-dark);
  background: var(--chip);
  text-align: center;
  transform-origin: var(--from-x, 50%) var(--from-y, 100%);
  animation: pop 0.45s var(--ease);
}
.done-card h2 {
  font-size: 34px;
  letter-spacing: -0.02em;
}
.done-card p {
  margin-top: 8px;
  color: var(--on-dark-2);
}
.done-card .eyebrow {
  margin: 0 0 6px;
}
.done-card .btn {
  margin-top: 22px;
  width: 100%;
}
.done-place {
  font-weight: 500;
  color: var(--white) !important;
}
.done-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 243, 238, 0.08);
  cursor: pointer;
}
.done-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.done.closing {
  animation: fade-out 0.2s ease forwards;
}
.done.closing .done-card {
  animation: pop-out 0.2s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
@keyframes pop-out {
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Tablet and down */
@media (max-width: 860px) {
  .cards,
  .features {
    grid-template-columns: 1fr;
  }
  .cards {
    gap: 16px;
  }
}

/* Phones */
@media (max-width: 767px) {
  .nav {
    padding: 8px 8px 0;
  }
  .nav-bar {
    height: 56px;
    padding-left: 18px;
  }
  .nav-logo img {
    height: 17px;
  }
  .nav-cta {
    padding: 0 16px;
    font-size: 14px;
  }
  .hero {
    padding-top: 112px;
  }
  .hero-sub {
    margin-bottom: 28px;
  }
  .intro {
    padding: calc(var(--hero-w) * 0.88 + 64px) 16px 64px;
  }
  .strip {
    margin: 56px -16px 0;
  }
  .tile {
    width: 132px;
  }
  .card {
    padding-top: 24px;
  }
  .card-text {
    padding: 0 24px;
  }
  .card-text + .card-media {
    margin: 24px 0 0;
    border-radius: 0;
  }
  .explore {
    padding-top: 56px;
  }
  .explore .section-title {
    margin-bottom: 40px;
  }
  .feature {
    gap: 16px;
  }
  .feature-media {
    width: 150px;
    height: 150px;
  }
  .goal-chips button {
    min-height: 52px;
    padding: 0 22px;
  }
  .footer-top {
    flex-direction: column;
    gap: 24px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav-bar,
  .nav.scrolled .nav-bar {
    background: var(--chip);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .done {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  :root {
    --on-dark-2: rgba(245, 243, 238, 0.9);
    --on-dark-3: rgba(245, 243, 238, 0.8);
    --ink-2: rgba(17, 17, 16, 0.9);
    --ink-3: rgba(17, 17, 16, 0.8);
    --line-dark: rgba(245, 243, 238, 0.5);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .strip-track {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float-cta,
  .field label,
  .nav-bar {
    transition: opacity 0.2s;
  }
  .done,
  .done-card {
    animation: none;
  }
  .done.closing,
  .done.closing .done-card {
    animation: fade-out 0.15s ease forwards;
  }
}

/* Legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 20px 80px;
}
.legal h1 {
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.legal-date {
  margin-top: 12px;
  color: var(--on-dark-3);
}
.legal h2 {
  margin: 44px 0 12px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.legal h3 {
  margin: 20px 0 8px;
  font-size: 17px;
}
.legal p,
.legal li {
  color: var(--on-dark-2);
  line-height: 1.65;
}
.legal p + p {
  margin-top: 12px;
}
.legal > p:first-of-type + p {
  margin-top: 28px;
}
.legal ul {
  margin: 10px 0;
  padding-left: 20px;
}
.legal li + li {
  margin-top: 6px;
}
.legal strong {
  color: var(--white);
  font-weight: 500;
}
.legal a {
  color: var(--white);
}
