@font-face {
  font-family: "PRJCT-Helvetica-Roman";
  src: url("./fonts/HelveticaNeueRoman.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "PRJCT-Helvetica-Bold";
  src: url("./fonts/HelveticaNeueBold.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "PRJCT-Helvetica-Medium";
  src: url("./fonts/HelveticaNeueMedium.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "PRJCT-Helvetica-Black";
  src: url("./fonts/HelveticaNeueBlack.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "PRJCT-Editorial-Ultralight";
  src: url("./fonts/PPEditorialNew-Ultralight-BF644b21500d0c0.otf") format("opentype");
  font-display: swap;
}

:root {
  --line: rgba(255, 255, 255, 0.3);
  --muted: rgba(255, 255, 255, 0.66);
  --danger: rgba(255, 110, 110, 0.95);
}

* { box-sizing: border-box; }
html {
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  width: 100%;
  font-family: "PRJCT-Helvetica-Roman", "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background: #000;
}

.page {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.onboarding-shell {
  flex: 1;
  min-height: 0;
  width: 100%;
  position: relative;
  padding: 18px 22px 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 35% 20%, #303030 0%, #0a0a0a 60%);
}

.top-row {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 31px;
  font-family: "PRJCT-Helvetica-Black", "Helvetica Neue", sans-serif;
  letter-spacing: 1px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  letter-spacing: 1.2px;
  font-family: "PRJCT-Helvetica-Medium", "Helvetica Neue", sans-serif;
}

.progress-wrap {
  margin-top: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-bar {
  height: 100%;
  width: 0;
  background: #fff;
  transition: width .15s ease;
}

.content {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.field-label {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-family: "PRJCT-Editorial-Ultralight", "Times New Roman", serif;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}

.field-label--grow {
  flex: 1;
  min-width: 0;
}

.label-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
}

.label-divider {
  margin-top: 0;
  margin-bottom: 8px;
  height: 1px;
  width: 100%;
  background: #fff;
  align-self: stretch;
}

.hint {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-family: "PRJCT-Helvetica-Roman", "Helvetica Neue", sans-serif;
}

.error {
  margin-top: 10px;
  color: var(--danger);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

label {
  display: block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "PRJCT-Helvetica-Medium", "Helvetica Neue", sans-serif;
}

.form {
  margin-top: 0;
  width: 100%;
}

.phone-field-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.country-code-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 10px 8px 10px 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-family: "PRJCT-Helvetica-Medium", "Helvetica Neue", sans-serif;
  cursor: pointer;
}

.country-code-dial {
  min-width: 40px;
  text-align: left;
}

.country-code-chevron {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
}

.phone-national-input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  border-radius: 0;
}

.country-picker {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.country-picker[hidden] {
  display: none !important;
}

.country-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.country-picker-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  max-height: min(72vh, 520px);
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.country-picker-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.country-picker-title {
  font-family: "PRJCT-Helvetica-Bold", "Helvetica Neue", sans-serif;
  letter-spacing: 1.2px;
  font-size: 13px;
}

.country-picker-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.country-picker-search {
  margin: 10px 12px 8px;
  width: calc(100% - 24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
}

.country-picker-list {
  list-style: none;
  margin: 0;
  padding: 0 4px 10px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.country-picker-list li {
  margin: 0;
  padding: 0;
}

.country-picker-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  font-family: "PRJCT-Helvetica-Roman", "Helvetica Neue", sans-serif;
}

.country-picker-row:hover,
.country-picker-row:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.country-picker-row.is-selected {
  background: rgba(255, 255, 255, 0.12);
}

.country-picker-name {
  flex: 1;
  min-width: 0;
}

.country-picker-meta {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-family: "PRJCT-Helvetica-Medium", "Helvetica Neue", sans-serif;
}

.input-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  isolation: isolate;
}

.input-row--top {
  align-items: flex-start;
}

.input-grow {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}

input, select {
  width: 100%;
  background: transparent;
  color: #fff;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  padding: 10px 2px;
  font-size: 16px;
  outline: none;
  font-family: "PRJCT-Helvetica-Roman", "Helvetica Neue", sans-serif;
  touch-action: manipulation;
  -webkit-user-select: text;
  user-select: text;
}

.input-row .input-grow input,
.input-row > input {
  width: 100%;
}

.input-email-underline {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

input[type="date"] { color-scheme: dark; }
input[type="file"] { border: 1px dashed rgba(255,255,255,0.3); border-radius: 10px; padding: 11px; }

.row { display: grid; grid-template-columns: 1fr; gap: 10px; }

.chip-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0; }
.chip {
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.25);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  padding: 10px 14px;
  cursor: pointer;
  font-family: "PRJCT-Helvetica-Medium", "Helvetica Neue", sans-serif;
  font-size: 14px;
}
.chip.active {
  border-color: #fff;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-family: "PRJCT-Helvetica-Bold", "Helvetica Neue", sans-serif;
}

.photos-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.photo-tile {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }

.arrow-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.arrow-btn .arrow-icon {
  font-size: 22px;
  line-height: 1;
  font-family: "PRJCT-Helvetica-Roman", system-ui, sans-serif;
}

.nav-back .arrow-icon {
  color: rgba(255, 255, 255, 0.4);
}

.nav-next .arrow-icon {
  color: #fff;
}

.arrow-btn.is-disabled,
.arrow-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.arrow-spacer {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.photos-nav {
  margin-top: 20px;
}

.btn {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.btn-main {
  border: 1px solid #fff;
  width: auto;
  height: auto;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-family: "PRJCT-Helvetica-Bold", "Helvetica Neue", sans-serif;
}

.btn-ghost {
  color: rgba(255,255,255,0.5);
  font-family: "PRJCT-Helvetica-Medium", "Helvetica Neue", sans-serif;
}

.btn:disabled { opacity: .45; cursor: not-allowed; }

.connect-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.6px;
  font-family: "PRJCT-Helvetica-Medium", "Helvetica Neue", sans-serif;
  cursor: pointer;
}

.gender-other-input {
  margin-top: 12px;
  width: 100%;
}

.welcome-active .onboarding-shell {
  padding: 0;
  overflow: hidden;
}
.welcome-active .onboarding-shell > .top-row,
.welcome-active .onboarding-shell > .progress-wrap {
  display: none;
}

.welcome-active .content {
  position: relative;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}

.welcome-active .welcome-content {
  min-height: 100%;
  height: 100%;
}

.welcome-media {
  position: absolute;
  inset: 0;
  background: #000;
}

.welcome-video,
.welcome-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.welcome-video::-webkit-media-controls {
  display: none !important;
}

.welcome-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.welcome-content {
  position: relative;
  min-height: 100vh;
  padding: 18px 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.welcome-top {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-wordmark {
  color: #fff;
  font-size: 28px;
  letter-spacing: 3.5px;
  font-family: "PRJCT-Helvetica-Black", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}

.welcome-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-headline {
  margin: 0;
  color: #fff;
  font-size: 44px;
  line-height: 50px;
  letter-spacing: 1.5px;
  font-family: "PRJCT-Editorial-Ultralight", "Times New Roman", serif;
  text-transform: uppercase;
  text-shadow: 0 3px 10px rgba(0,0,0,0.8);
}

.welcome-rule {
  margin-top: 14px;
  margin-bottom: 12px;
  height: 1px;
  width: 56px;
  background-color: rgba(255,255,255,0.6);
}

.welcome-tagline {
  margin: 0;
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  letter-spacing: 1.1px;
  font-family: "PRJCT-Editorial-Ultralight", "Times New Roman", serif;
  text-transform: uppercase;
}

.welcome-bottom {
  display: grid;
}

.welcome-enter {
  width: 100%;
  border-width: 1.5px;
  border-radius: 12px;
  font-family: "PRJCT-Helvetica-Bold", "Helvetica Neue", sans-serif;
  letter-spacing: 1.8px;
}

#submittedDone {
  width: 100%;
  margin-top: 20px;
}

.location-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-family: "PRJCT-Helvetica-Bold", "Helvetica Neue", sans-serif;
  cursor: pointer;
  text-align: left;
}

.location-toggle-box {
  width: 18px;
  height: 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

.location-toggle-box.on {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}
