:root {
  color-scheme: dark;
  --background: #0d0d0d;
  --surface: #151515;
  --surface-hover: #1c1c1c;
  --border: #2b2b2b;
  --text: #f8f7fa;
  --muted: #969299;
  --coral: #ff6b6b;
  --purple: #a855f7;
  --gradient: linear-gradient(120deg, var(--coral), var(--purple));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -5%, rgba(168, 85, 247, 0.11), transparent 26rem),
    var(--background);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
label[for] {
  -webkit-tap-highlight-color: transparent;
}

.signup-shell {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 30px 22px 46px;
}

[hidden] {
  display: none !important;
}

.beta-loading-view {
  display: flex;
  min-height: min(620px, calc(100vh - 76px));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.beta-loading-monkey {
  margin-top: 34px;
  font-size: 48px;
  line-height: 1;
  animation: beta-pulse 1.8s ease-in-out infinite;
}

.beta-loading-view p {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.beta-banner,
.waitlist-capacity {
  width: max-content;
  max-width: 100%;
  margin: 24px auto 0;
  background: var(--gradient);
  background-clip: text;
  color: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25px;
  line-height: 1.5;
  text-align: center;
}

.gender-at-capacity {
  border-color: #343036;
  color: #777279;
}

.gender-at-capacity::after {
  content: " · full";
  font-size: 9px;
}

.waitlist-view {
  min-height: min(700px, calc(100vh - 76px));
  padding-top: 10px;
}

.waitlist-header {
  padding-top: 5px;
  text-align: center;
}

.waitlist-header h1 {
  margin: 64px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 31px;
  letter-spacing: -1.25px;
  line-height: 1.15;
}

.waitlist-header > p:not(.waitlist-capacity) {
  max-width: 310px;
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

#waitlist-form {
  margin-top: 46px;
}

.waitlist-phone-field {
  margin-top: 26px;
}

.waitlist-button {
  margin-top: 25px;
}

.waitlist-note,
.waitlist-message {
  margin: 12px 0 0;
  color: #747075;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.waitlist-message {
  min-height: 17px;
  color: #c6c0c9;
}

.waitlist-back {
  display: block;
  margin: 17px auto 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #454247;
  background: transparent;
  color: #9a969c;
  cursor: pointer;
  font-size: 12px;
}

@keyframes beta-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.07); }
}

.hero {
  text-align: center;
}

.logo {
  position: relative;
  display: inline-block;
  background: var(--gradient);
  background-clip: text;
  color: transparent;
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  text-decoration: none;
}

.logo-monkey {
  position: absolute;
  top: -10px;
  left: 67%;
  z-index: 1;
  color: initial;
  font-family: system-ui, sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  transform: translateX(-50%) rotate(-7deg);
  transform-origin: center bottom;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.34));
}

.hero h1 {
  margin: 31px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(29px, 8vw, 34px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.12;
}

.hero h1 span {
  color: #aaa5ad;
}

.hero p {
  max-width: 275px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

form {
  margin-top: 36px;
}

.photo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  color: #777279;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.photo-upload {
  position: relative;
  display: grid;
  width: 128px;
  height: 128px;
  margin-top: 15px;
  place-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient) border-box;
  box-shadow: 0 18px 50px rgba(168, 85, 247, 0.13);
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.photo-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(168, 85, 247, 0.2);
}

.photo-upload:focus-within {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

.photo-preview {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.photo-upload.has-photo .plus-icon,
.photo-upload.has-photo .photo-copy {
  opacity: 0;
}

.plus-icon {
  position: relative;
  width: 24px;
  height: 24px;
  margin: auto;
  transition: opacity 160ms ease;
}

.plus-icon::before,
.plus-icon::after {
  position: absolute;
  top: 11px;
  left: 2px;
  width: 20px;
  height: 2px;
  border-radius: 10px;
  background: var(--text);
  content: "";
}

.plus-icon::after {
  transform: rotate(90deg);
}

.photo-copy {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  transition: opacity 160ms ease;
}

.form-section,
.interests-section,
.availability-section,
.budget-section {
  margin-top: 46px;
}

.phone-section {
  margin-top: 34px;
}

.field-group + .field-group,
.field-group + .choice-group,
.choice-group + .choice-group {
  margin-top: 26px;
}

.field-group label,
.choice-group legend {
  display: block;
  margin: 0 0 10px;
  color: #d7d3d9;
  font-size: 13px;
  font-weight: 600;
}

.field-group input {
  width: 100%;
  height: 58px;
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: 17px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  caret-color: var(--coral);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field-group input::placeholder {
  color: #69666b;
}

.field-group input:focus {
  border-color: rgba(255, 107, 107, 0.72);
  background: #181818;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.08);
}

.field-note {
  margin: 9px 3px 0;
  color: #747075;
  font-size: 11px;
  line-height: 1.5;
}

fieldset {
  min-width: 0;
  margin-right: 0;
  margin-left: 0;
  padding: 0;
  border: 0;
}

.pill-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choice-pill,
.interest-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: #aaa6ac;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.choice-pill {
  height: 45px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.choice-pill:hover,
.interest-pill:hover {
  border-color: #454247;
  background: var(--surface-hover);
  color: var(--text);
}

.choice-pill:active,
.interest-pill:active,
.submit-button:active {
  transform: scale(0.98);
}

.choice-pill[aria-pressed="true"] {
  border-color: rgba(255, 107, 107, 0.6);
  background: linear-gradient(120deg, rgba(255, 107, 107, 0.17), rgba(168, 85, 247, 0.17));
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.08);
  color: #fff;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin: 7px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  letter-spacing: -0.7px;
}

.counter {
  flex: 0 0 auto;
  color: #6f6b71;
  font-size: 13px;
  font-weight: 600;
}

.counter strong {
  background: var(--gradient);
  background-clip: text;
  color: transparent;
}

.interests-section > p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.availability-section > p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.day-pill {
  min-width: 0;
  height: 42px;
  padding: 0 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: #aaa6ac;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.day-pill:hover {
  border-color: #454247;
  background: var(--surface-hover);
  color: var(--text);
}

.day-pill:active {
  transform: scale(0.98);
}

.day-pill[aria-pressed="true"] {
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 7px 20px rgba(168, 85, 247, 0.16);
  color: #fff;
}

.availability-section > .availability-note {
  margin: 13px 2px 0;
  color: #747075;
  font-size: 11px;
  line-height: 1.5;
}

.availability-section > .availability-message {
  min-height: 17px;
  margin: 9px 2px 0;
  color: var(--coral);
  font-size: 11px;
}

.budget-row {
  margin-top: 17px;
}

.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 8px;
}

.interest-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  gap: 7px;
}

.interest-pill span {
  color: #d0cbd2;
  font-size: 13px;
  line-height: 1;
}

.interest-pill[aria-pressed="true"] {
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 7px 20px rgba(168, 85, 247, 0.16);
  color: #fff;
}

.interest-pill[aria-pressed="true"] span {
  color: #fff;
}

.interests-section > .interest-message {
  min-height: 18px;
  margin: 10px 2px 0;
  color: var(--coral);
  font-size: 11px;
}

.submit-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 61px;
  margin-top: 30px;
  border: 0;
  border-radius: 18px;
  background: var(--gradient);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.22);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;
  gap: 11px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.submit-button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  content: "";
  transform: translateX(-110%);
  transition: transform 500ms ease;
}

.submit-button:hover {
  box-shadow: 0 20px 46px rgba(168, 85, 247, 0.3);
}

.submit-button:hover::before {
  transform: translateX(110%);
}

.submit-button span,
.submit-button svg {
  position: relative;
}

.privacy-note {
  margin: 13px 0 0;
  color: #666268;
  font-size: 10px;
  text-align: center;
}

.returning-link {
  display: block;
  width: max-content;
  margin: 17px auto 0;
  color: #9a969c;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  text-decoration-color: #454247;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.returning-link:hover {
  color: #f0ecf2;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  max-width: 350px;
  margin: auto;
  padding: 14px 17px;
  border: 1px solid #3a353d;
  border-radius: 14px;
  background: rgba(29, 27, 30, 0.95);
  box-shadow: 0 15px 40px rgba(0,0,0,0.42);
  color: #eee9ef;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 620px) {
  .signup-shell {
    margin-block: 34px;
    padding: 36px 30px 50px;
    border: 1px solid #1e1e1e;
    border-radius: 34px;
    background: rgba(13, 13, 13, 0.7);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
