/* Sign-in, onboarding, photos, verification and install. */

/* ------------------------------------------------------------------ Welcome */
.content.welcome {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: calc(28px + var(--safe-top));
  background: var(--dusk);
  max-width: none;
}
.content.welcome > * {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}
.welcome-brand {
  font-size: 28px;
  font-weight: 600;
  color: var(--ember);
}
.welcome-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 300px;
}
.welcome-title {
  font-size: 40px;
  line-height: 1.08;
}
.welcome-body {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 420px;
}
.welcome-art {
  position: relative;
  height: 150px;
  margin-bottom: 8px;
}
.art-circle {
  position: absolute;
  top: 10px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--ember);
  animation: drift 6s ease-in-out infinite alternate;
}
.art-circle.a {
  left: 6px;
}
.art-circle.b {
  left: 82px;
  border-color: var(--indigo);
  animation-delay: -3s;
}
.art-table {
  position: absolute;
  left: 82px;
  top: 30px;
  width: 44px;
  height: 80px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--saffron) 55%, transparent);
}
@keyframes drift {
  to {
    transform: translateX(6px);
  }
}

/* ------------------------------------------------------------------ Forms in onboarding */
.code-input {
  font-size: 28px;
  letter-spacing: 0.5em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.legal-checks {
  gap: 4px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--ember);
  flex: none;
}

/* ------------------------------------------------------------------ Photos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.photo-slot {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--cloud);
}
.photo-slot .photo {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
.photo-slot.uploading {
  display: grid;
  place-items: center;
}
.photo-main {
  position: absolute;
  left: 8px;
  top: 8px;
}
.photo-tools {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 6px;
}
.photo-tool {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgb(255 253 250 / 0.92);
  color: var(--ink);
  cursor: pointer;
}
.photo-tool .icon {
  width: 18px;
  height: 18px;
}
.photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px dashed var(--line);
  background: var(--paper);
  color: var(--ember);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* ------------------------------------------------------------------ Install */
.install-card h3 {
  font-size: 18px;
}
.install-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.install-steps .icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  color: var(--indigo);
}
